aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-12-03 01:38:09 +0000
committerPedro Alves <palves@redhat.com>2007-12-03 01:38:09 +0000
commit311de423583467dedb68fc24fc114440f51197a6 (patch)
tree2f6f7aa7bb2176d8103a048293f783216f8b973c /gdb/gdbserver/server.c
parent6c2d16d2d37c2207624bc040b4705ee87f8a3c72 (diff)
downloadgdb-311de423583467dedb68fc24fc114440f51197a6.zip
gdb-311de423583467dedb68fc24fc114440f51197a6.tar.gz
gdb-311de423583467dedb68fc24fc114440f51197a6.tar.bz2
* server.c (main): Don't report dll events on the initial
connection on attaches.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r--gdb/gdbserver/server.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index b445faa..3905e9a 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");