From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [gdbserver] Fix attaching notices
Date: Mon, 07 Jul 2008 17:55:00 -0000 [thread overview]
Message-ID: <20080707175510.GB1778@caradoc.them.org> (raw)
In-Reply-To: <200806280011.12868.pedro@codesourcery.com>
On Sat, Jun 28, 2008 at 12:11:12AM +0100, Pedro Alves wrote:
> Hi,
>
> This patch fixes several issues I noticed with attaching
> to processes with gdbserver's --multi support, on several
> host/target combinations:
>
> Linux host -> Linux gdbserver
>
> There's code in gdbserver to pretend the initial SIGSTOP
> was a SIGTRAP, that's been put there so
> "gdbserver --attach PID"; "target remote", doesn't see
> the SIGSTOP. This smudging should not be done when
> handling a vAttach, otherwise, the user is presented
> with:
>
> (gdb) tar extended-remote :9999
> Remote debugging using :9999
> (gdb) attach 32762
> Attached to Thread 32762
> [New Thread 32762]
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x00007fc30f5d0b30 in ?? ()
>
> ... a bogus SIGTRAP.
Did you reproduce this with an unmodified GDB or a patched one? I
can't reproduce it - I was curious since I did test vAttach and I
don't remember seeing these SIGTRAPs.
Actually, wait... trying another GDB I see that this problem has
appeared on the GDB side between 6.8 and HEAD. 6.8 doesn't print out
the message about a SIGTRAP.
> [Switching to Thread 2232]
> Stopped due to shared library event
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This part looks fine.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-07-07 17:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 23:26 Pedro Alves
2008-07-07 17:55 ` Daniel Jacobowitz [this message]
2008-07-07 23:52 ` Pedro Alves
2008-07-08 1:59 ` Pedro Alves
2008-07-11 14:13 ` Daniel Jacobowitz
2008-07-11 17:12 ` Pedro Alves
2008-07-11 17:37 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080707175510.GB1778@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox