* remote.c (extended_remote_create_inferior_1): Clean up
before marking the target running.
This commit is contained in:
parent
227e86ad15
commit
45280a5259
@ -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
|
||||
|
10
gdb/remote.c
10
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
|
||||
|
Loading…
Reference in New Issue
Block a user