This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/16874] Setting a breakpoint on function in anonymous namespace is unnecessarily awkward
- From: "patrick at parcs dot ath.cx" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 19 Sep 2014 15:26:47 +0000
- Subject: [Bug c++/16874] Setting a breakpoint on function in anonymous namespace is unnecessarily awkward
- Auto-submitted: auto-generated
- References: <bug-16874-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16874
--- Comment #7 from patrick at parcs dot ath.cx ---
(In reply to Markus Trippelsdorf from comment #6)
> (In reply to patrick from comment #5)
> > You can do
> >
> > gdb> break *foo
> No symbol "foo" in current context.
>
> markus@x4 ~ % gdb -v
> GNU gdb (GDB) 7.8.50.20140729-cvs
The program has to be running for "break *" to work, it seems.
Try:
gdb> break main
gdb> run
gdb> break *foo
--
You are receiving this mail because:
You are on the CC list for the bug.