Hello,
I try to use gdb-4.16 to debugging C++ code compiled with SPARCompiler C++
4.1. The sample source code shows me, that gdb can't demangle the symbols?
I have compiled the gdb, but the result is the same. What's going wrong?
The machine I'm working on is a Sparc Ultra-Enterprise 5000 with Solaris
2.5.1, SunOS 5.5.1. The source code is compiled with "CC -g hello.cpp".
Any idea is welcome!
Thanks in advance,
Thomas
___________________________________________________________________________ #include <iostream.h> class toout a.say_hello(); return 0; Breakpoint 1, main (argc=1, argv=0xeffff764) at hello.cpp:18
{
public:
void say_hello();
void toout::say_hello()
{
cout << "Hello world." << endl;
int main(int argc, char** argv)
{
toout a;
GDB 4.16 (sparc-sun-solaris2.5), Copyright 1996 Free Software Foundation,
Inc...
(gdb) break main
Breakpoint 1 at 0x10bac: file hello.cpp, line 18.
(gdb) run
Starting program: a.out
18 a.say_hello();
(gdb) step
__0fFtooutJsay_hellov (this=0xeffff6fb) at hello.cpp:11
11 cout << "Hello world." << endl;
(gdb) where
#0 __0fFtooutJsay_hellov (this=0xeffff6fb) at hello.cpp:11
#1 0x10bbc in main (argc=1, argv=0xeffff764) at hello.cpp:18
(gdb) quit