diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-09-14 02:27:02 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-09-14 02:27:02 +0000 |
commit | 4aea54ac94a2b105ff6d48208636ab4c47403ce2 (patch) | |
tree | 5aa6521f92de2ef605c0ce43755a7c8ae134f098 | |
parent | cd8f80dc7f1488184d8968b1adb71986027402b5 (diff) | |
download | fsf-binutils-gdb-4aea54ac94a2b105ff6d48208636ab4c47403ce2.zip fsf-binutils-gdb-4aea54ac94a2b105ff6d48208636ab4c47403ce2.tar.gz fsf-binutils-gdb-4aea54ac94a2b105ff6d48208636ab4c47403ce2.tar.bz2 |
(i386_linux_resume): Move async stuff for
i386_linux_resume into linux_nat_resume in linux-nat.c. This
file is now the same as for mainline.
-rw-r--r-- | gdb/i386-linux-nat.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index eccdadb..5302282 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -26,8 +26,6 @@ #include "regcache.h" #include "target.h" #include "linux-nat.h" -#include "inf-loop.h" -#include "async-nat-inferior.h" #include "gdb_assert.h" #include "gdb_string.h" @@ -765,8 +763,6 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) int request = PTRACE_CONT; - struct target_waitstatus status; - if (pid == -1) /* Resume all threads. */ /* I think this only gets used in the non-threaded case, where "resume @@ -817,23 +813,6 @@ i386_linux_resume (ptid_t ptid, int step, enum target_signal signal) if (ptrace (request, pid, 0, target_signal_to_host (signal)) == -1) perror_with_name (("ptrace")); - - status.kind = TARGET_WAITKIND_SPURIOUS; - gdb_process_events (gdb_status, &status, 0, 0); - - if (gdb_post_pending_event ()) - { - /* QUESTION: Do I need to lie about target_executing here? */ - if (target_is_async_p ()) - target_executing = 1; - return; - } - - if (target_can_async_p ()) - target_async (inferior_event_handler, 0); - - if (target_is_async_p ()) - target_executing = 1; } static void (*super_post_startup_inferior) (ptid_t ptid); |