Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sun compiler and gdb

736153May 10 2012 — edited May 21 2012
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 18 2012
Added on May 10 2012
7 comments
447 views