3

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 Answer 1

1

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

2
  • 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? Commented Jan 31, 2014 at 21:44
  • output redirection. Example: readelf -w {your binary name} >> required.log.file.name
    – w s
    Commented Jan 31, 2014 at 22:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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