From: Bernie Innocenti <bernie@codewiz.org>
To: rms@gnu.org
Cc: dclark <dclark@gnu.org>, gdb@sourceware.org, xorg-devel@lists.x.org
Subject: Debugging X with GDB
Date: Mon, 11 Jan 2010 00:42:00 -0000 [thread overview]
Message-ID: <1263170536.29695.86.camel@giskard> (raw)
In-Reply-To: <E1NSMSM-0000oT-51@fencepost.gnu.org>
Cc'ing the gdb and xorg lists, in case someone knows better.
On Tue, 2010-01-05 at 22:21 -0500, Richard Stallman wrote:
> The version of GDB installed is 6.8, so I guess that is rather old.
> It is important for MIPS gNewSense to have a version of GDB
> which is well maintained for the MIPS.
I asked on #xorg-devel about our issue with ^C not working in gdb.
So, we seems to have encountered a long-standing problem, not related to
MIPS or a specific version of GDB:
<bernie> is it still to be expected that gdb can't stop the X server with ^C ?
<bernie> I'm debugging on a mips platform... it may very well be a platform bug
<bernie> ajax, airlied: maybe one of you knows?
<airlied> bernie: I'm not sure its ever worked for me, I generally kill -INT `pidof Xorg`
<whot> it works if you attach to a running server, not if you start through gdb
<bernie> whot: indeed, I just discovered it
<bernie> I wonder if it's a bug in gdb
<bernie> airlied: thanks for the suggestion, I thought it was just me :)
<airlied> I think X might change TTY state and piss gdb off
<bernie> airlied: oh, good point (although I'm debugging over ssh, it would be a bug for X to attempt changing that tty rather than the actual console)
<bernie> xf86DrvMsg(pScrn->scrnIndex, from, "Using %sware Cursor\n",
<bernie> lol
<nwnk> ^c'ing a running server is expected to work, regardless of how you attached gdb.
<nwnk> if it doesn't it's a bug in gdb or in the kernel's signal delivery code
<bernie> nwnk: I have "NoTrapSignals", but it doesn't help
<bernie> nwnk: I suspect a bug in gdb...
<nwnk> wouldn't be the first
<bernie> nwnk: as a matter of fact, X is resilient to ^C even when running standalone
<whot> really? that'd be news to me
<jcristau> ^c in gdb doesn't send sigint to the traced process though, it sends sigint to gdb
<bernie> whot: only when it's sort of crashed :-)
<bernie> whot: or maybe it's because of the NoTrapSignals
<nwnk> jcristau: right; gdb should then handle it according to whatever you set for 'signal SIGINT', which defaults to 'stop'
<nwnk> excuse me, 'handle SIGINT'
<nwnk> but what often seems to happen is the signal just gets ignored by both
--
// Bernie Innocenti - http://codewiz.org/
\X/ Sugar Labs - http://sugarlabs.org/
next parent reply other threads:[~2010-01-11 0:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1NSMSM-0000oT-51@fencepost.gnu.org>
2010-01-11 0:42 ` Bernie Innocenti [this message]
2010-01-11 14:02 ` Daniel Jacobowitz
2010-01-11 14:29 ` Jonathan Morton
2010-01-11 15:22 ` Adam Jackson
2010-01-12 10:03 ` Richard Stallman
2010-01-11 20:26 ` [SOLVED] " Bernie Innocenti
[not found] ` <E1NUPod-00026Y-78@fencepost.gnu.org>
[not found] ` <1263243923.2695.72.camel@giskard>
2010-01-12 23:19 ` Richard Stallman
2010-01-14 22:46 ` Bernie Innocenti
2010-01-15 1:48 ` Tom Tromey
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=1263170536.29695.86.camel@giskard \
--to=bernie@codewiz.org \
--cc=dclark@gnu.org \
--cc=gdb@sourceware.org \
--cc=rms@gnu.org \
--cc=xorg-devel@lists.x.org \
/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