aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/spu-low.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-12-07 01:41:29 +0000
committerDaniel Jacobowitz <drow@false.org>2007-12-07 01:41:29 +0000
commita20d5e98e51d91b66dfccc205d4d27e8850238b2 (patch)
tree74c39f25072ce5bc284e1d286a43598144a1d56b /gdb/gdbserver/spu-low.c
parent542f8b941d534409cb25016e4817a9d84289b7b0 (diff)
downloadgdb-a20d5e98e51d91b66dfccc205d4d27e8850238b2.zip
gdb-a20d5e98e51d91b66dfccc205d4d27e8850238b2.tar.gz
gdb-a20d5e98e51d91b66dfccc205d4d27e8850238b2.tar.bz2
* linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
* remote-utils.c (remote_open): Do not call disable_async_io. (block_async_io): Delete. (unblock_async_io): Make static. (initialize_async_io): New. * server.c (handle_v_cont): Handle async I/O here. (myresume): Likewise. Move other common resume tasks here... (main): ... from here. Call initialize_async_io. Disable async I/O before the main loop. * server.h (initialize_async_io): Declare. (block_async_io, unblock_async_io): Delete prototypes. * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
Diffstat (limited to 'gdb/gdbserver/spu-low.c')
-rw-r--r--gdb/gdbserver/spu-low.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index a8f7df3..f5f1d20 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -348,9 +348,6 @@ spu_resume (struct thread_resume *resume_info)
&& resume_info->thread != current_tid)
resume_info++;
- block_async_io ();
- enable_async_io ();
-
if (resume_info->leave_stopped)
return;
@@ -375,9 +372,6 @@ spu_wait (char *status)
int w;
int ret;
- enable_async_io ();
- unblock_async_io ();
-
while (1)
{
ret = waitpid (tid, &w, WNOHANG | __WALL | __WNOTHREAD);
@@ -407,8 +401,6 @@ spu_wait (char *status)
}
}
- disable_async_io ();
-
if (WIFEXITED (w))
{
fprintf (stderr, "\nChild exited with retcode = %x \n", WEXITSTATUS (w));