* server.c (main): Don't report dll events on the initial
[deliverable/binutils-gdb.git] / gdb / gdbserver / server.c
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");
This page took 0.022502 seconds and 4 git commands to generate.