summaryrefslogtreecommitdiff
path: root/gdb/lynx-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/lynx-nat.c')
-rw-r--r--gdb/lynx-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c
index b7bc8245998..ea224f07e54 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;