This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/15109] file::object syntax doesn't work if current languageis c++
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 07 Feb 2013 00:18:32 +0000
- Subject: [Bug exp/15109] file::object syntax doesn't work if current languageis c++
- Auto-submitted: auto-generated
- References: <bug-15109-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15109
--- Comment #1 from dje at google dot com 2013-02-07 00:18:32 UTC ---
Repro:
foo.cc:
int foo;
int main () { return 0; }
bash$ g++ -g foo.cc
bash$ gdb a.out
(gdb) start
(gdb) disas 'foo.cc'::main
[... disassembly output ...]
(gdb) p 'foo.cc'::foo
A syntax error in expression, near `'.
(gdb) set lang c
Warning: the current language does not match this frame.
(gdb) p 'foo.cc'::foo
$1 = 0
(gdb)
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.