aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-05-08 16:08:10 +0000
committerDaniel Jacobowitz <drow@false.org>2008-05-08 16:08:10 +0000
commit45280a5259f209ba74ed8255674a3fd345307a55 (patch)
tree00cee8f73e2bdbfd683f377e29f8d6768221648e /gdb/remote.c
parent227e86ad156220a5c97a789da0ddf1b0f8ee79fd (diff)
downloadgdb-45280a5259f209ba74ed8255674a3fd345307a55.zip
gdb-45280a5259f209ba74ed8255674a3fd345307a55.tar.gz
gdb-45280a5259f209ba74ed8255674a3fd345307a55.tar.bz2
* remote.c (extended_remote_create_inferior_1): Clean up
before marking the target running.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 616fa13..b82d59c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -5458,6 +5458,12 @@ extended_remote_create_inferior_1 (char *exec_file, char *args,
extended_remote_restart ();
}
+ /* Clean up from the last time we ran, before we mark the target
+ running again. This will mark breakpoints uninserted, and
+ get_offsets may insert breakpoints. */
+ init_thread_list ();
+ init_wait_for_inferior ();
+
/* Now mark the inferior as running before we do anything else. */
attach_flag = 0;
inferior_ptid = pid_to_ptid (MAGIC_NULL_PID);
@@ -5468,10 +5474,6 @@ extended_remote_create_inferior_1 (char *exec_file, char *args,
/* Get updated offsets, if the stub uses qOffsets. */
get_offsets ();
-
- /* Clean up from the last time we were running. */
- init_thread_list ();
- init_wait_for_inferior ();
}
static void