From: Richard Guenther <rguenther@suse.de>
To: gdb@sourceware.org
Cc: brobecker@adacore.com
Subject: Re: Pending breakpoints on lines that don't exist
Date: Wed, 04 Jan 2012 14:28:00 -0000 [thread overview]
Message-ID: <alpine.LNX.2.00.1201041524310.4999@zhemvz.fhfr.qr> (raw)
[sorry for breaking threading, I'm not subscribed]
<quote>
> Not to me, FWIW. At the very least, we should have asked a different
> question than we ask in the "normal" pending-breakpoint use case.
...
I kind of like the idea. But in this case, I think it would be
too verbose. Currently, we have:
(gdb) b foo.c:100
No line 100 in file "foo.c".
Make breakpoint pending on future shared library load? (y or [n]) n
I find that the error message is precise and complete. But I do not
want to remove the option of making the breakpoint pending, because
some users might have, in fact, meant what they were doing. And if
the user made an error, do you think they would not understand what
error they made that triggered the question?
</quote>
OTOH what mostly happens to me is:
> gdb ./cc1
GNU gdb (GDB) SUSE (7.3-98.1)
...
(gdb) b expr.c:10850
No line 10850 in file "/space/rguenther/src/svn/trunk/libcpp/expr.c".
because I meant /space/rguenther/src/svn/trunk/gcc/expr.c! Now
getting the pending breakpoing seems to be even worse. I'd
expect sth like
(gdb) b expr.c:10850
No line 10850 in file "/space/rguenther/src/svn/trunk/libcpp/expr.c"
Use alternate source file /space/rguenther/src/svn/trunk/gcc/expr.c? (y or
[n])
it's especially bad that gdb does not recognize
(gdb) b gcc/expr.c:10850
but requires a full path (bah).
No idea if this improved for gdb 7.4 though.
Richard.
next reply other threads:[~2012-01-04 14:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-04 14:28 Richard Guenther [this message]
2012-01-04 14:29 ` Richard Guenther
2012-01-04 20:42 ` Tom Tromey
-- strict thread matches above, loose matches on Subject: below --
2012-01-03 21:30 Marc Khouzam
2012-01-04 3:52 ` Joel Brobecker
2012-01-04 5:07 ` Eli Zaretskii
2012-01-04 7:17 ` Joel Brobecker
2012-01-04 8:08 ` Eli Zaretskii
2012-01-04 9:13 ` Joel Brobecker
2012-01-06 2:30 ` Marc Khouzam
2012-01-04 20:49 ` Tom Tromey
2012-01-05 12:56 ` Pedro Alves
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=alpine.LNX.2.00.1201041524310.4999@zhemvz.fhfr.qr \
--to=rguenther@suse.de \
--cc=brobecker@adacore.com \
--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