This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/10333] New: anonymous namespace + rbreak => error: "foobar" is not a function
- From: "ppluzhnikov at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 25 Jun 2009 17:54:13 -0000
- Subject: [Bug c++/10333] New: anonymous namespace + rbreak => error: "foobar" is not a function
- Reply-to: sourceware-bugzilla at sourceware dot org
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.