forked from Imagelibrary/binutils-gdb
* lynx-nat.c (child_wait): Use status.w_status, not status, in
arithmetic. status is a `union wait'.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user