C++ demagling on Solaris

Christopher Currie christopher@currie.com
Mon Apr 2 15:36:00 GMT 2001


Hello all,

I'm having a hard time figuring out what I'm doing wrong with gdb on solaris
2.6. We've got an old copy of Sun CC (the c++ compiler) version 4.2, because
it's required by the application we're trying to work with. I've gotten as
far as compiling with the -xs flag to put the symbols in the executable, but
I can't get gdb to properly demangle the function names, so I can set
breakpoints to anything other than main without rooting around to find how
Sun CC mangled the name.

Any ideas?

My gdb version is 4.17 sparc-sun-solaris2.6, and CC -V reports:

CC: WorkShop Compilers 4.2 30 Oct 1996 C++ 4.2

Thanks in advance for your assistance.

Christopher Currie




More information about the Gdb mailing list