* lynx-nat.c (child_wait): Use status.w_status, not status, in
arithmetic. status is a `union wait'.
This commit is contained in:
parent
10ff87e954
commit
a5732a3067
2 changed files with 5 additions and 2 deletions
|
@ -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 *.
|
* config/nm-lynx.h (PTRACE_ARG3_TYPE): Define to int, not char *.
|
||||||
|
|
||||||
|
|
|
@ -608,7 +608,7 @@ child_wait (pid, ourstatus)
|
||||||
pid = wait (&status);
|
pid = wait (&status);
|
||||||
#ifdef SPARC
|
#ifdef SPARC
|
||||||
/* Swap halves of status so that the rest of GDB can understand it */
|
/* 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
|
#endif
|
||||||
|
|
||||||
save_errno = errno;
|
save_errno = errno;
|
||||||
|
|
Loading…
Reference in a new issue