Sun Workshop C/C++ Debugging Formats

Sun Workshop C/C++ Debugging Formats

Post by Saurabh Jan » Wed, 24 Nov 1999 04:00:00


We use Sun Workshop C/C++ 4.2 on Solaris 2.6 (Ultra E3000 platforms) and
have run into several problems where dbx will not be able to read core
files generated properly, even though the executables were built with
Sun CC/C++ 4.2.

Gdb also seems to have some problems with executables built with Sun CC/C++ 4.2
and core files genereated from them.

If it helps, the problems are quite often involved with core dumps in statically
linked libraries.

What is the debugging format used by Sun S/C++ in Solaris 2.6 ELF
executables? Would gdb have a problem with this?


Protect privacy, boycott Intel:


1. Sun Workshop 4.2 C++ Compiler - debug symbol format not understood by debuggers

The Sun Workshop C++ Compiler (4.2) seems to generate object files
with debug symbols that are not understood by some debuggers,
namely GDB (even the latest 4.16 version for Solaris) and older
DBXs. I don't have the latest DBX debugger, it's quite expensive.
The UPS debugger seems to understand the debug symbols,
but it doesn't handle C++ templates properly.

Has anybody else also encountered this problem ?

Is there some way (eg. compiler/linker flag etc. to generate old
format etc.) in order to  use GDB to properly debug C++ programs
compiled with the Sun Workshop C++ Compiler ? I've tried numerous
flag settings, nothing fixes the problem. Anybody know of a
debugger other than those mentioned that will work for me ?

Any help appreciated.

Greg Nancarrow

2. OSR5 support HP Netserver w/hotswap

3. Visual C++ Workshop debug message

4. Minutes for December Community Conference Call

5. Anyone used workshop for debugging C++ code on Solaris?

6. Can't partition disk

7. Performance problems in reading shared libraries in Sun Workshop debug (dbx) V5.0

8. Dump/restore from Solaris to IRIX?

9. debug memory leaks with Sun workshop tool

10. Sell me your C++ Workshop or Visual Workshop

11. Sun C++ Workshop 4.2, bool and mutable

12. Wish to buy Sun Sparcworks/Workshop for C++

13. undefined symbol ::__vtbl with Sun WorkShop 6 update 1 C++ Compiler (5.2)