+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
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);
/* 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