From: palves Date: Mon, 3 Dec 2007 01:38:09 +0000 (+0000) Subject: * server.c (main): Don't report dll events on the initial X-Git-Tag: EOL_registry_mounts~1458 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=537d0f1c0d4be26010d6ba2bef8061c70dc2473c;p=pf3gnuchains%2Fpf3gnuchains4x.git * server.c (main): Don't report dll events on the initial connection on attaches. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0114466d1b..f502138990 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2007-12-03 Pedro Alves + * server.c (main): Don't report dll events on the initial + connection on attaches. + +2007-12-03 Pedro Alves + * server.c (main): Relax numerical bases supported for the pid of the --attach command line argument. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index b445faa5de..3905e9abe7 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -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");