From: Daniel Jacobowitz <drow@false.org>
To: gdb@sourceware.org
Subject: Re: Stepping over longjmp presumably broken for glibc
Date: Sat, 24 Dec 2005 16:23:00 -0000 [thread overview]
Message-ID: <20051224162302.GA11929@nevyn.them.org> (raw)
In-Reply-To: <uek43iu5a.fsf@gnu.org>
On Fri, Dec 23, 2005 at 07:46:09PM +0200, Eli Zaretskii wrote:
> > Date: Fri, 23 Dec 2005 12:09:13 -0500
> > From: Daniel Jacobowitz <drow@false.org>
> >
> > with the added downside of greater coordination between the
> > debugger and runtime (additional points of failure).
>
> We already have this downside (in many parts of GDB, not only in this
> particular situation), so continuing with that won't be a change for
> the worse.
Sorry, but I think it will. The only two places that come to mind for
glibc are the shared library list and libthread_db; both are constant
sources of bugs and aggrevation. Not so much for the native case, but
I work with a lot of people who use remote debugging, and answer many
questions about it on gdb@.
Also, as a general principle, I aim to keep the debugger as fully
isolated from the debuggee as possible. I spend a lot of time
debugging the C runtime, and the bits where GDB tries to "cooperate"
with it are extremely frustrating in that case. When I have some more
time for it, I'll be further reducing our dependence on glibc for
threads.
> If glibc maintainers actively fight the debugger's ability to debug
> their code, we will never succeed in catching up with them. So I'd
> rather they stopped with that attitude and started cooperating with
> us. I can ask RMS to try to influence the glibc team, if you think
> this will help.
I'm not sure where you're going with this. It's not greater _human_
coordination that I'm objecting to, it's greater _machine_
coordination; version skew between glibc and gdb, support for old and
new versions, et cetera. The hooks would not get a lot of use, and
would be very complicated - I can say the former based on the fact that
no one's noticed the problem yet (I found it by code inspection), and
the latter based on studying the implementation. Complicated means
fragile.
I think that a solution which does not rely on support from the runtime
being debugged is inherently superior to one which does.
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-12-24 16:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 21:17 Daniel Jacobowitz
2005-12-23 3:32 ` Jim Blandy
2005-12-23 8:25 ` Eli Zaretskii
2005-12-23 13:20 ` Daniel Jacobowitz
2005-12-23 15:16 ` Eli Zaretskii
2005-12-23 15:20 ` Daniel Jacobowitz
2005-12-23 17:07 ` Eli Zaretskii
2005-12-23 17:09 ` Daniel Jacobowitz
2005-12-23 17:46 ` Eli Zaretskii
2005-12-23 18:01 ` Simon Richter
2005-12-24 11:59 ` Eli Zaretskii
2005-12-24 16:23 ` Daniel Jacobowitz [this message]
2005-12-24 16:36 ` Eli Zaretskii
2005-12-24 16:59 ` Daniel Jacobowitz
2005-12-26 4:06 ` Jim Blandy
2005-12-26 5:19 ` Eli Zaretskii
2005-12-27 4:24 ` Jim Blandy
2005-12-30 2:38 ` Daniel Jacobowitz
2005-12-30 9:32 ` Mark Kettenis
2005-12-30 16:25 ` Daniel Jacobowitz
2006-01-02 5:25 ` Jim Blandy
2006-01-06 19:43 ` Daniel Jacobowitz
2006-01-06 20:28 ` Jim Blandy
2006-01-06 20:36 ` Daniel Jacobowitz
2006-01-06 20:53 ` Jim Blandy
2006-01-06 21:27 ` Mark Kettenis
2006-01-06 21:28 ` 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=20051224162302.GA11929@nevyn.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.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