From: "Douglas Evans" <dje@google.com>
To: "Vladimir Prus" <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: template breakpoints
Date: Tue, 09 Oct 2007 17:44:00 -0000 [thread overview]
Message-ID: <e394668d0710091044v10dfee5m17d30eaa263917ca@mail.gmail.com> (raw)
In-Reply-To: <200710090856.29427.ghost@cs.msu.su>
On 10/8/07, Vladimir Prus <ghost@cs.msu.su> wrote:
> On Tuesday 09 October 2007 02:35:35 Douglas Evans wrote:
> > Hi. I downloaded and tried the new support. Nice. I noticed that
> > while enable/disable work with the new "multiple breakpoints",
> > condition/ignore/commands don't (currently) work. Is there a plan to
> > support these with the new breakpoints as well?
>
> They are supposed to work. Can you provide a self-contained (source) program,
> and a set of gdb commands that reproduce the problem?
Appended is the session log. The testcase is testsuite/gdb.cp/mb-templates.cc.
Note that in breakpoints.cc {enable,disable}_command do a strchr
(args, '.') to watch for a.b spelled breakpoints where as
{commands,ignore,condition}_command just call get_number. And
delete_command calls get_number_or_range via map_breakpoint_numbers.
[Assuming I'm reading the code correctly ...]
Also, note that by "support" I mean one can, for example, set a
condition on individual breakpoints within the multi-breakpoint(sp?).
[Just making sure we're on the same page ...] Allowing the deletion of
individual multi-breakpoints may be dubious (dunno) but the others
seem useful.
---
dje@ruffy:~/fsf/sourceware/head/obj/gdb/testsuite/gdb.cp$ ../../gdb mb-template\
s
GNU gdb 6.7.50-20071009-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-linux"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) b mb-templates.cc:8
Breakpoint 1 at 0x8048652: file ../../../src/gdb/testsuite/gdb.cp/mb-templates.\
cc, line 8. (2 locations)
(gdb) i b
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 y 0x08048652 in void foo<int>(int)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
1.2 y 0x0804867a in void foo<double>(double)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
(gdb) disable 1.1
(gdb) i b
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 n 0x08048652 in void foo<int>(int)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
1.2 y 0x0804867a in void foo<double>(double)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
(gdb) enable 1.1
(gdb) i b
Num Type Disp Enb Address What
1 breakpoint keep y <MULTIPLE>
1.1 y 0x08048652 in void foo<int>(int)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
1.2 y 0x0804867a in void foo<double>(double)
at ../../../src/gdb/testsuite/gdb.cp/mb-\
templates.cc:8
(gdb) commands 1.1
No breakpoint number 0.
(gdb) ignore 1.1 3
bad breakpoint number: '1.1 3'
(gdb) cond 1.1
Bad breakpoint argument: '1.1'
(gdb) delete 1.1
warning: bad breakpoint number at or near '1.1'
(gdb)
next prev parent reply other threads:[~2007-10-09 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-06 5:10 Douglas Evans
2007-10-06 10:43 ` Vladimir Prus
2007-10-06 18:09 ` Douglas Evans
2007-10-08 22:35 ` Douglas Evans
2007-10-09 4:57 ` Vladimir Prus
2007-10-09 17:44 ` Douglas Evans [this message]
2007-10-09 17:57 ` Vladimir Prus
2007-10-09 20:17 ` Douglas Evans
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=e394668d0710091044v10dfee5m17d30eaa263917ca@mail.gmail.com \
--to=dje@google.com \
--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