diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-07 23:00:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-07 23:00:11 +0000 |
commit | aeba519e767eb0b73004254e10cf873b7065dc7d (patch) | |
tree | 806683751bc9c7b66f7f411df5221e783e842ac6 /gdb | |
parent | 3c3185ac88fb76e53625ea3e7b0da486f94b238d (diff) | |
download | gdb-aeba519e767eb0b73004254e10cf873b7065dc7d.zip gdb-aeba519e767eb0b73004254e10cf873b7065dc7d.tar.gz gdb-aeba519e767eb0b73004254e10cf873b7065dc7d.tar.bz2 |
* server.c (handle_v_attach): Inhibit reporting dll changes.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 7492be0..105413c 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2008-07-07 Pedro Alves <pedro@codesourcery.com> + + * server.c (handle_v_attach): Inhibit reporting dll changes. + 2008-06-27 Pedro Alves <pedro@codesourcery.com> * remote-utils.c (prepare_resume_reply): If requested, don't diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index da2ec7a..da9d83c 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -1024,6 +1024,11 @@ handle_v_attach (char *own_buf, char *status, int *signal) pid = strtol (own_buf + 8, NULL, 16); if (pid != 0 && attach_inferior (pid, status, signal) == 0) { + /* Don't report shared library events after attaching, even if + some libraries are preloaded. GDB will always poll the + library list. Avoids the "stopped by shared library event" + notice on the GDB side. */ + dlls_changed = 0; prepare_resume_reply (own_buf, *status, *signal); return 1; } |