summaryrefslogtreecommitdiff
path: root/gdb/lynx-nat.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-14 19:57:50 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-14 19:57:50 +0000
commit2919ae5a6ada61013bd6589dc4227ea2800499ec (patch)
treefb43525ee0909f6678a3459ba47fd85a27ec03b3 /gdb/lynx-nat.c
parente70f2bde6f7c829b936727150a55c105bb8be9f4 (diff)
downloadbinutils-gdb-2919ae5a6ada61013bd6589dc4227ea2800499ec.tar.gz
* lynx-nat.c (child_wait): Fix thinkos in struct target_waitstatus
changes (status -> ourstatus; declare status, etc.). * config/nm-lynx.h: Fix child_wait prototype and include target.h.
Diffstat (limited to 'gdb/lynx-nat.c')
-rw-r--r--gdb/lynx-nat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c
index 28bb9767ac0..0c4e1caa019 100644
--- a/gdb/lynx-nat.c
+++ b/gdb/lynx-nat.c
@@ -216,12 +216,13 @@ store_inferior_registers (regno)
of error; store status through argument pointer OURSTATUS. */
int
-child_wait (pid, status)
+child_wait (pid, ourstatus)
int pid;
struct target_waitstatus *ourstatus;
{
int save_errno;
int thread;
+ int status;
while (1)
{
@@ -251,8 +252,8 @@ child_wait (pid, status)
if (pid != PIDGET (inferior_pid)) /* Some other process?!? */
continue;
-/* thread = WIFTID (*status);*/
- thread = *status >> 16;
+/* thread = WIFTID (status);*/
+ thread = status >> 16;
/* Initial thread value can only be acquired via wait, so we have to
resort to this hack. */