2

I recently read that GCC annotates the source-code into the debug symbols it produces, although I haven't found any examples on how to retrieve this.

If this is true, how can I view the data in the debug symbols, mainly the code annotations.

What would be the steps I need to complete starting with a gcc compiled dll with debug symbols.

1

Use either readelf utility with -w (or --debug-dump) command line switch or nm utility with -a command line switch.

| improve this answer | |
  • Thanks for the reply. I have been testing readelf, is there any way how to save the data into a file so I can actually view the the output? – user1632018 Jan 31 '14 at 21:44
  • output redirection. Example: readelf -w {your binary name} >> required.log.file.name – w s Jan 31 '14 at 22:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.