summaryrefslogtreecommitdiffstats
path: root/gdb/gdbserver/linux-low.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-29 16:47:15 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-29 16:47:15 +0000
commit62ea82f508b97190fce6018ef3545dff79de43cb (patch)
treeb5fda15057810c0c8a1774c878ec0a4553a6572a /gdb/gdbserver/linux-low.c
parent6910d122aca0a6e1e9e81b6d74a9ef3215f34137 (diff)
downloadppe42-binutils-62ea82f508b97190fce6018ef3545dff79de43cb.tar.gz
ppe42-binutils-62ea82f508b97190fce6018ef3545dff79de43cb.zip
* linux-low.c (linux_wait): Unblock async I/O.
(linux_resume): Block and enable async I/O. * remote-utils.c (block_async_io, unblock_async_io): New functions. * server.h (block_async_io, unblock_async_io): Add prototypes.
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r--gdb/gdbserver/linux-low.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index 90efd01ebe..ea155160e3 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -662,6 +662,7 @@ retry:
}
enable_async_io ();
+ unblock_async_io ();
w = linux_wait_for_event (child);
stop_all_processes ();
disable_async_io ();
@@ -1017,7 +1018,11 @@ linux_resume (struct thread_resume *resume_info)
if (pending_flag)
for_each_inferior (&all_threads, linux_queue_one_thread);
else
- for_each_inferior (&all_threads, linux_continue_one_thread);
+ {
+ block_async_io ();
+ enable_async_io ();
+ for_each_inferior (&all_threads, linux_continue_one_thread);
+ }
}
#ifdef HAVE_LINUX_USRREGS
OpenPOWER on IntegriCloud