diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-12-07 01:41:29 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-12-07 01:41:29 +0000 |
commit | a20d5e98e51d91b66dfccc205d4d27e8850238b2 (patch) | |
tree | 74c39f25072ce5bc284e1d286a43598144a1d56b /gdb/gdbserver/linux-low.c | |
parent | 542f8b941d534409cb25016e4817a9d84289b7b0 (diff) | |
download | gdb-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/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index c88c0c3..b5a0567 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -897,11 +897,8 @@ retry: } } - enable_async_io (); - unblock_async_io (); w = linux_wait_for_event (child); stop_all_processes (); - disable_async_io (); if (must_set_ptrace_flags) { @@ -1313,11 +1310,7 @@ linux_resume (struct thread_resume *resume_info) if (pending_flag) for_each_inferior (&all_threads, linux_queue_one_thread); else - { - block_async_io (); - enable_async_io (); - for_each_inferior (&all_threads, linux_continue_one_thread); - } + for_each_inferior (&all_threads, linux_continue_one_thread); } #ifdef HAVE_LINUX_USRREGS |