Do the target-waiting within do_initial_child_stuff on Windows.
[deliverable/binutils-gdb.git] / gdb / gdbserver / target.c
index d4a2a98721a9bfa2ee2cc092c66d3fe32ea21e52..d2299334f9fe6dcf7fee37af1005e10eaf3406de 100644 (file)
@@ -82,6 +82,11 @@ mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options,
 
   ret = (*the_target->wait) (ptid, ourstatus, options);
 
+  /* We don't expose _LOADED events to gdbserver core.  See the
+     `dlls_changed' global.  */
+  if (ourstatus->kind == TARGET_WAITKIND_LOADED)
+    ourstatus->kind = TARGET_WAITKIND_STOPPED;
+
   /* If GDB is connected through TCP/serial, then GDBserver will most
      probably be running on its own terminal/console, so it's nice to
      print there why is GDBserver exiting.  If however, GDB is
This page took 0.02431 seconds and 4 git commands to generate.