]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* server.c (main): Don't report dll events on the initial
authorPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:38:09 +0000 (01:38 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:38:09 +0000 (01:38 +0000)
connection on attaches.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 0114466d1b520d170fb80ee23204a14de075c3c7..f502138990691f055527a1361b4181c6e3353c6e 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * server.c (main): Don't report dll events on the initial
+       connection on attaches.
+
 2007-12-03  Pedro Alves  <pedro_alves@portugalmail.pt>
 
        * server.c (main): Relax numerical bases supported for the pid of
index b445faa5deea85fb84707bd17c61003fa74ac68b..3905e9abe76aded5d736123cbfc290cd3880c07f 100644 (file)
@@ -908,10 +908,6 @@ main (int argc, char *argv[])
       /* We are now (hopefully) stopped at the first instruction of
         the target process.  This assumes that the target process was
         successfully created.  */
-
-      /* Don't report shared library events on the initial connection,
-        even if some libraries are preloaded.  */
-      dlls_changed = 0;
     }
   else
     {
@@ -926,6 +922,11 @@ main (int argc, char *argv[])
        }
     }
 
+  /* Don't report shared library events on the initial connection,
+     even if some libraries are preloaded.  Avoids the "stopped by
+     shared library event" notice on gdb side.  */
+  dlls_changed = 0;
+
   if (setjmp (toplevel))
     {
       fprintf (stderr, "Killing inferior\n");