Browse Source

* remote.c (extended_remote_create_inferior_1): Clean up

before marking the target running.
msnyder-reverse-20080609-branch
Daniel Jacobowitz 19 years ago
parent
commit
45280a5259
  1. 5
      gdb/ChangeLog
  2. 10
      gdb/remote.c

5
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

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…
Cancel
Save