* remote.c (extended_remote_create_inferior_1): Clean up
authorDaniel Jacobowitz <drow@false.org>
Thu, 8 May 2008 16:08:10 +0000 (16:08 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 8 May 2008 16:08:10 +0000 (16:08 +0000)
before marking the target running.

gdb/ChangeLog
gdb/remote.c

index 399fee958a491f5905757938c6b42b2fde2d9cf9..2cb3db0bdeace3e76e4666aa2375a7e8f82bb5f6 100644 (file)
@@ -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
index 616fa134debb9845e3506a7879979c4bf8a5233b..b82d59c00915510237683339a89b4e7ac4e5faf3 100644 (file)
@@ -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
This page took 0.286537 seconds and 4 git commands to generate.