diff options
author | Daniel Jacobowitz <dan@debian.org> | 2008-05-08 16:08:10 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2008-05-08 16:08:10 +0000 |
commit | 4470315700cb3000d62a38cf15def0d34633d17a (patch) | |
tree | 6d058d8193da1d41e09b5e3055e8db811ce56772 | |
parent | 4a54f6e3b3fab656021f55a07d98f858fbf06d29 (diff) | |
download | gdb-4470315700cb3000d62a38cf15def0d34633d17a.tar.gz |
* remote.c (extended_remote_create_inferior_1): Clean up
before marking the target running.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 399fee958a4..2cb3db0bdea 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-08 Daniel Jacobowitz <dan@codesourcery.com> + + * remote.c (extended_remote_create_inferior_1): Clean up + before marking the target running. + 2008-05-08 Joel Brobecker <brobecker@adacore.com> * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder diff --git a/gdb/remote.c b/gdb/remote.c index 616fa134deb..b82d59c0091 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 |