From: Nick Roberts Date: Thu, 14 Sep 2006 02:27:02 +0000 (+0000) Subject: (i386_linux_resume): Move async stuff for X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4aea54ac94a2b105ff6d48208636ab4c47403ce2;p=thirdparty%2Fbinutils-gdb.git (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. --- diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index eccdadbef4d..53022823450 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);