summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2006-09-14 02:27:02 +0000
committerNick Roberts <nickrob@snap.net.nz>2006-09-14 02:27:02 +0000
commit8a504335e660be2ef2d74a11368340949a1a6eca (patch)
treeee5bf4efbbb72a99a14f936f765506e253cab229
parent3f7b9951f256ff1ea799fa6135df63a3152c67dd (diff)
downloadgdb-8a504335e660be2ef2d74a11368340949a1a6eca.tar.gz
(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.c21
1 files changed, 0 insertions, 21 deletions
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);