aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-20 22:58:57 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-20 22:58:57 +0000
commite5f1222d6b4da41406c7853e76a183e41db7d06f (patch)
tree43f37827c2b7742295e132f8b36535f4f1d83c4a /gdb
parent75c9abc6201617cc8b941f0e1af7382e6488b177 (diff)
downloadgdb-e5f1222d6b4da41406c7853e76a183e41db7d06f.zip
gdb-e5f1222d6b4da41406c7853e76a183e41db7d06f.tar.gz
gdb-e5f1222d6b4da41406c7853e76a183e41db7d06f.tar.bz2
2002-02-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-low.c (mywait): Change argument to waitpid to be an integer instead of a `union wait'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-low.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8d2fcd7..295c0e1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2002-02-20 Daniel Jacobowitz <drow@mvista.com>
+ * gdbserver/linux-low.c (mywait): Change argument to waitpid
+ to be an integer instead of a `union wait'.
+
+2002-02-20 Daniel Jacobowitz <drow@mvista.com>
+
* mips-linux-nat.c: Call the operating system GNU/Linux.
* mips-linux-tdep.c: Likewise.
* mips-tdep.c: Likewise.
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 4c29316..f9152c7 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -109,10 +109,10 @@ unsigned char
mywait (char *status)
{
int pid;
- union wait w;
+ int w;
enable_async_io ();
- pid = waitpid (inferior_pid, (int *)&w, 0);
+ pid = waitpid (inferior_pid, &w, 0);
disable_async_io ();
if (pid != inferior_pid)
perror_with_name ("wait");