From: Marc Khouzam <marc.khouzam@ericsson.com>
To: "'gdb@sourceware.org'" <gdb@sourceware.org>
Subject: Pending breakpoints on lines that don't exist
Date: Tue, 03 Jan 2012 21:30:00 -0000 [thread overview]
Message-ID: <F7CE05678329534C957159168FA70DEC578D18D642@EUSAACMS0703.eamcs.ericsson.se> (raw)
Hi,
I grabbed the 7.4 branch to make sure Eclipse was ready
for it. After no longer using the removed command
'maint set python print-stack on'
all our JUnit tests now pass with the new GDB except
one, which attempts to set a breakpoint on an invalid line.
GDB 7.4 now sets a pending breakpoint on lines that don't
exist. Is this a regression or a wanted change?
I didn't want to update my tests if this was a regression.
The change is illustrated in the two short sessions below.
Note that this also happens using line 0 (which is what
my JUnit test does).
Thanks
Marc
> gdb.7.3 a.out
GNU gdb (GDB) 7.3.1
(gdb) l
1 int main() { return 0; }
(gdb) l
Line number 2 out of range; a.cc has 1 lines.
(gdb) b 2
No line 2 in file "a.cc".
(gdb) info b
No breakpoints or watchpoints.
> gdb.7.4 a.out
GNU gdb (GDB) 7.3.91.20120103-cvs
(gdb) l
1 int main() { return 0; }
(gdb) l
Line number 2 out of range; a.cc has 1 lines.
(gdb) b 2
No line 2 in the current file.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (2) pending.
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y <PENDING> 2
next reply other threads:[~2012-01-03 21:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-03 21:30 Marc Khouzam [this message]
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
2012-01-04 14:28 Richard Guenther
2012-01-04 14:29 ` Richard Guenther
2012-01-04 20:42 ` 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=F7CE05678329534C957159168FA70DEC578D18D642@EUSAACMS0703.eamcs.ericsson.se \
--to=marc.khouzam@ericsson.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).