public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10333] New: anonymous namespace + rbreak => error: "foobar" is not a function
@ 2009-06-25 17:54 ppluzhnikov at google dot com
2010-02-05 16:11 ` [Bug c++/10333] " tromey at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: ppluzhnikov at google dot com @ 2009-06-25 17:54 UTC (permalink / raw)
To: gdb-prs
Minimal test case:
namespace {
struct foobar {
foobar() { }
} x;
}
int main() { return 0; }
gdb -ex 'rbreak foo' ./a.out
GNU gdb (GDB) 6.8.50.20090625-cvs
Copyright (C) 2009 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 "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"foobar" is not a function
(gdb) info break
No breakpoints or watchpoints.
Breakpoint is not set. If the file had other 'foo.*' functions, breakpoints on
them may or may not be set (processing error()s half way through) -- very annoying.
--
Summary: anonymous namespace + rbreak => error: "foobar" is not a
function
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at sourceware dot org
ReportedBy: ppluzhnikov at google dot com
CC: gdb-prs at sourceware dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=10333
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/10333] anonymous namespace + rbreak => error: "foobar" is not a function
2009-06-25 17:54 [Bug c++/10333] New: anonymous namespace + rbreak => error: "foobar" is not a function ppluzhnikov at google dot com
@ 2010-02-05 16:11 ` tromey at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2010-02-05 16:11 UTC (permalink / raw)
To: gdb-prs
------- Additional Comments From tromey at redhat dot com 2010-02-05 16:11 -------
This seems to work now. I suspect the name canonicalization patch fixed
it, but I did not check.
With CVS gdb:
[...]
Reading symbols from /home/tromey/gnu/PRS/gdb10333/pr...done.
Breakpoint 1 at 0x8048447: file pr.cc, line 3.
static void foobar((anonymous namespace)::foobar * const);
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|6.8 |7.1
http://sourceware.org/bugzilla/show_bug.cgi?id=10333
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-05 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-25 17:54 [Bug c++/10333] New: anonymous namespace + rbreak => error: "foobar" is not a function ppluzhnikov at google dot com
2010-02-05 16:11 ` [Bug c++/10333] " tromey at redhat dot com
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).