From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: Multiple breakpoint locations
Date: Tue, 13 Nov 2007 20:09:00 -0000 [thread overview]
Message-ID: <18234.1121.556841.49775@kahikatea.snap.net.nz> (raw)
In-Reply-To: <fhctsf$94f$1@ger.gmane.org>
> > (gdb) d 1.1
> > warning: bad breakpoint number at or near '1.1'
>
> Well, you can't really delete a location -- if breakpoint expression
> corresponds to 20 addresses, that's the way it is -- you cannot delete
> some of those addresses from the program ;-)
It's not immediately obvious, at least to me, so I think this should be
documented. Also I think error should be used for the message instead of
warning as the requested task is not performed. The message could be more
helpful too:
(gdb) d 1.1
This breakpoint cannot be deleted on its own.
> > 2) I can enable/disable 1 and this appears to enable/disable all the
> > locations.
> > Perhap this could be documented in the manual.
>
> Well yes. Patches welcome ;-)
I don't want to detract from the fact that you have contributed a major
patch but I think you should document your own changes. This is also a
good idea because you understand the changes best.
> > 3) I created this breakpoint by specifying the line but if I do:
> >
> > b foo<int>()
> >
> > or any variant I can think of, I just get a pending breakpoint as GDB
> > doesn't recognise the location. Can such locations be specified on the
> > command line by name?
>
> Does
>
> b 'void foo<int>()'
>
> work better?
Yes, thanks. It seems strange to me that the return type needs to be
specified. I thought with overloading, people talked about signature which
is determined by the name and arguments but not the return type.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2007-11-13 20:09 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 19:15 Nick Roberts
2007-11-13 19:28 ` Vladimir Prus
2007-11-13 19:59 ` Daniel Jacobowitz
2007-11-13 20:09 ` Nick Roberts [this message]
2007-11-13 20:14 ` Daniel Jacobowitz
2007-11-13 20:18 ` Bob Rossi
2007-11-13 20:19 ` Vladimir Prus
2007-11-13 22:03 ` Andreas Schwab
2007-11-14 6:20 ` Vladimir Prus
2007-11-14 10:12 ` Andreas Schwab
2007-11-14 21:26 ` Jim Blandy
2007-11-14 21:34 ` Vladimir Prus
2007-11-14 22:08 ` Andreas Schwab
2007-11-15 4:08 ` Eli Zaretskii
2007-11-15 13:37 ` Daniel Jacobowitz
2007-11-15 16:50 ` Jim Blandy
2007-11-13 22:18 ` Eli Zaretskii
2007-11-13 23:39 ` Douglas Evans
2007-11-14 4:17 ` Eli Zaretskii
2007-11-14 5:02 ` Joel Brobecker
2007-11-14 6:13 ` Vladimir Prus
2007-11-14 18:54 ` Eli Zaretskii
2007-11-14 19:00 ` Vladimir Prus
2007-11-17 11:55 ` Eli Zaretskii
2007-11-17 12:07 ` Eli Zaretskii
2007-11-17 14:14 ` Vladimir Prus
2007-11-17 15:36 ` Eli Zaretskii
2007-11-18 1:32 ` Nick Roberts
2007-11-18 2:26 ` Daniel Jacobowitz
2007-11-18 8:47 ` Nick Roberts
2007-11-19 12:57 ` 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=18234.1121.556841.49775@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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).