From a5732a3067320073cebbab111db3701bf6a133ea Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Fri, 30 Sep 1994 22:53:36 +0000 Subject: [PATCH] * lynx-nat.c (child_wait): Use status.w_status, not status, in arithmetic. status is a `union wait'. --- gdb/ChangeLog | 5 ++++- gdb/lynx-nat.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 57638de2e4b..a04ae9961f7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,4 +1,7 @@ -Fri Sep 30 06:42:42 1994 Jim Kingdon (kingdon@lioth.cygnus.com) +Fri Sep 30 06:42:42 1994 Ian Lance Taylor (ian@cygnus.com) + + * lynx-nat.c (child_wait): Use status.w_status, not status, in + arithmetic. status is a `union wait'. * config/nm-lynx.h (PTRACE_ARG3_TYPE): Define to int, not char *. 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; -- 2.30.2