* [gdbserver] (10/11) Don't report dll events on first attach when --attach'ing
@ 2007-11-12 2:08 Pedro Alves
2007-12-01 19:02 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2007-11-12 2:08 UTC (permalink / raw)
To: gdb-patches, Lerele
[-- Attachment #1: Type: text/plain, Size: 283 bytes --]
Hi,
When attaching to a process, we're reporting the loaded dlls on
the first target remote attach, thus gdb will print:
"Stopped due to shared library event"
This was already handled for the normal run case. The patch
simple makes the fix unconditional.
Cheers,
Pedro Alves
[-- Attachment #2: gdbserver_attach_no_dllevent.diff --]
[-- Type: text/x-diff, Size: 1214 bytes --]
2007-11-12 Pedro Alves <pedro_alves@portugalmail.pt>
* 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");
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [gdbserver] (10/11) Don't report dll events on first attach when --attach'ing
2007-11-12 2:08 [gdbserver] (10/11) Don't report dll events on first attach when --attach'ing Pedro Alves
@ 2007-12-01 19:02 ` Daniel Jacobowitz
2007-12-03 3:54 ` Pedro Alves
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2007-12-01 19:02 UTC (permalink / raw)
To: Pedro Alves; +Cc: gdb-patches, Lerele
On Mon, Nov 12, 2007 at 02:08:55AM +0000, Pedro Alves wrote:
> 2007-11-12 Pedro Alves <pedro_alves@portugalmail.pt>
>
> * server.c (main): Don't report dll events on the initial
> connection on attaches.
OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gdbserver] (10/11) Don't report dll events on first attach when --attach'ing
2007-12-01 19:02 ` Daniel Jacobowitz
@ 2007-12-03 3:54 ` Pedro Alves
0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2007-12-03 3:54 UTC (permalink / raw)
To: gdb-patches, Lerele
Daniel Jacobowitz wrote:
> On Mon, Nov 12, 2007 at 02:08:55AM +0000, Pedro Alves wrote:
>> 2007-11-12 Pedro Alves <pedro_alves@portugalmail.pt>
>>
>> * server.c (main): Don't report dll events on the initial
>> connection on attaches.
>
> OK.
>
Thanks, checked in.
--
Pedro Alves
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-03 3:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 2:08 [gdbserver] (10/11) Don't report dll events on first attach when --attach'ing Pedro Alves
2007-12-01 19:02 ` Daniel Jacobowitz
2007-12-03 3:54 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox