bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ demangling in gdb?


From: Ron Lancaster
Subject: g++ demangling in gdb?
Date: Mon, 16 Jun 2003 09:54:37 -0400

Has anyone gotten gdb 5.0 to demangle names with g++ version 3.0 or later?  I 
can't get this to work on Solaris 8.  I've tried all of the demangling options 
in gdb with no success.

Here's an example that demonstrates the problem.  I'm using gcc 3.2.3.

voyager 5>gdb jc
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) break Scanner::nextToken
Breakpoint 1 at 0x1717c: file scanner.cpp, line 68.
(gdb) break Emitter::emit
[0] cancel
[1] all
[2] _ZN7Emitter4emitEss at emitter.cpp:218
[3] _ZN7Emitter4emitE10OpcodeTypei at emitter.cpp:195
[4] _ZN7Emitter4emitE10OpcodeTypeh at emitter.cpp:178
[5] _ZN7Emitter4emitE10OpcodeType at emitter.cpp:162
> 2
Breakpoint 2 at 0x1b46c: file emitter.cpp, line 218.
(gdb) run s0.j
Starting program: /home/classes/rlancast/proj/jc s0.j

Breakpoint 1, _ZN7Scanner9nextTokenEv (this=<incomplete type>)
    at scanner.cpp:68
68         string token;  // the next token as a string
(gdb) where
#0  _ZN7Scanner9nextTokenEv (this=<incomplete type>) at scanner.cpp:68
#1  0x1d248 in _ZN6Parser7advanceEv (this=<incomplete type>) at parser.cpp:60
#2  0x1d9cc in _ZN6Parser19compileDeclarationsEv (this=<incomplete type>)
    at parser.cpp:192
#3  0x1d72c in _ZN6Parser7compileERKSs (this=<incomplete type>,
    address@hidden) at parser.cpp:126
#4  0x165d0 in main (argc=2, argv=0xffbefc54) at jc.cpp:47 
---------------------------------------------
Ron Lancaster
Department of Computer Science
Bowling Green State University
Bowling Green, Ohio 43403-0214   
419-372-8697, FAX 419-372-8061
http://www.cs.bgsu.edu/rlancast/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]