sun compiler and gdb
736153May 10 2012 — edited May 21 2012I would like to debug a Sun Studio 12.2 compiled program using gdb. gdb folks say [1] this should be theoretically possible. However I got two problems depending on gdb version:
1. Relevant part of dwarfdump:
<1><80697> DW_TAG_imported_declaration
DW_AT_import <0>
Is this correct? I mean this <0> is somewhat suspicious to me.
2. Sun Studio 12.2 seems to use several dwarf extensions, eg. DW_AT_SUN_part_link_name. Is there any way (command line switch?) to turn off those extensions?
[1] http://comments.gmane.org/gmane.comp.gdb.devel/32092