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: "markus at trippelsdorf dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 13 Aug 2015 06:54:23 +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
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #7974|0 |1
is obsolete| |
--- Comment #10 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Created attachment 8515
--> https://sourceware.org/bugzilla/attachment.cgi?id=8515&action=edit
updated patch
I've updated Patrick's patch for gdb trunk.
It works fine:
Example from comment0:
% gdb ./a.out
Reading symbols from ./a.out...done.
(gdb) b fo<tab>
Breakpoint 1 at 0x40058a: file anon_namesp.cpp, line 1.
(gdb) run
Starting program: /home/markus/a.out
Breakpoint 1, (anonymous namespace)::foo () at anon_namesp.cpp:1
Example from comment8:
Reading symbols from ./a.out...done.
(gdb) b fo<tab><tab>
foo() foo2()
(gdb) b foo2()
Breakpoint 1 at 0x4005b3: file t2.cpp, line 1.
(gdb) run
Starting program: /home/markus/a.out
Breakpoint 1, (anonymous namespace)::foo2 () at t2.cpp:1
1 namespace { int foo2 (void) { return 1; } }
Any chance to move this issue forward?
--
You are receiving this mail because:
You are on the CC list for the bug.