2007-11-12 Pedro Alves * server.c (main): Don't report dll events on the initial connection on attaches. --- gdb/gdbserver/server.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) Index: src/gdb/gdbserver/server.c =================================================================== --- src.orig/gdb/gdbserver/server.c 2007-11-11 23:16:20.000000000 +0000 +++ src/gdb/gdbserver/server.c 2007-11-11 23:16:30.000000000 +0000 @@ -903,10 +903,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 { @@ -921,6 +917,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");