This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug exp/15109] file::object syntax doesn't work if current languageis c++


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]