aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/low-sparc.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2001-07-11 17:33:24 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2001-07-11 17:33:24 +0000
commitcf30a8e15b5ad7145914ee613d37760554ea606c (patch)
tree5859f8e7cd66780b7840452b390265a8e710483d /gdb/gdbserver/low-sparc.c
parent84c6c83cbc7569a373a6bb7d4ed588ef06aaf9a3 (diff)
downloadgdb-cf30a8e15b5ad7145914ee613d37760554ea606c.zip
gdb-cf30a8e15b5ad7145914ee613d37760554ea606c.tar.gz
gdb-cf30a8e15b5ad7145914ee613d37760554ea606c.tar.bz2
* gdbserver/remote-utils.c (remote_open): Set gdbserver as "owner"
of SIGIO. (input_interrupt): Don't block on read, in case we got redundant SIGIO. Don't gripe about redundant SIGIO. * gdbserver/low-hppabsd.c (mywait): Use waitpid(). Enable SIGIO handler while waiting. * gdbserver/low-linux.c (mywait): Likewise. * gdbserver/low-nbsd.c (mywait): Likewise. * gdbserver/low-sparc.c (mywait): Likewise.
Diffstat (limited to 'gdb/gdbserver/low-sparc.c')
-rw-r--r--gdb/gdbserver/low-sparc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c
index fda52ae..d2eb113 100644
--- a/gdb/gdbserver/low-sparc.c
+++ b/gdb/gdbserver/low-sparc.c
@@ -102,7 +102,9 @@ mywait (char *status)
int pid;
union wait w;
- pid = wait (&w);
+ enable_async_io ();
+ pid = waitpid (inferior_pid, &w, 0);
+ disable_async_io ();
if (pid != inferior_pid)
perror_with_name ("wait");