diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-09-30 22:53:36 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-09-30 22:53:36 +0000 |
commit | a5732a3067320073cebbab111db3701bf6a133ea (patch) | |
tree | 9523dc7783535b96d884dc401fb80165b3258f52 /gdb/lynx-nat.c | |
parent | 10ff87e954779f00260def05c1f29845e5468add (diff) | |
download | gdb-a5732a3067320073cebbab111db3701bf6a133ea.zip gdb-a5732a3067320073cebbab111db3701bf6a133ea.tar.gz gdb-a5732a3067320073cebbab111db3701bf6a133ea.tar.bz2 |
* lynx-nat.c (child_wait): Use status.w_status, not status, in
arithmetic. status is a `union wait'.
Diffstat (limited to 'gdb/lynx-nat.c')
-rw-r--r-- | gdb/lynx-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c index b7bc824..ea224f0 100644 --- a/gdb/lynx-nat.c +++ b/gdb/lynx-nat.c @@ -608,7 +608,7 @@ child_wait (pid, ourstatus) pid = wait (&status); #ifdef SPARC /* Swap halves of status so that the rest of GDB can understand it */ - status = (status << 16) | ((unsigned)status >> 16); + status.w_status = ((unsigned)status.w_status << 16) | ((unsigned)status.w_status >> 16); #endif save_errno = errno; |