diff options
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; |