Solved

What is debugging information?

Posted on 2007-11-19
3
1,217 Views
Last Modified: 2013-12-13
I work on PowerPC based Embedded Systems.  Programming language is C.  Cross compiler is Diab 4.2b.  FYI, Windriver has purchased Diab.  Along with the compiler comes a utility called ddump.  This utility has the following syntax.

ddump [command] file

I invoke this utility as follows:

ddump -D filename.elf
I believe .elf stands for executable linking format.  Anyways, this command means to dump the DWARF debugging information in each object file.  I think when this utitliy is run it generates bunch of paths to the source code.  These source paths are loaded into the debugger.  Then, we type some command in debugger to load symbols.  Then, somehow source code that matches the binary image in our target hardware appears in the debugger.  How does all this work?  What is DWARF?

Thanks,
0
Comment
Question by:naseeam
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 20315154
Debugging information is all the symbol information a debugger needs to interpret the macjine code and associate it with the source code, i.e. the function and variable names etc.
0
 
LVL 86

Expert Comment

by:jkr
ID: 20315161
BTW, regarding DWARF: See http://www.tachyonsoft.com/dwarf.pdf 

DWARF (Debug With Arbitrary Record Format) is a more recent format for debugging information for ELF files.
0
 

Author Closing Comment

by:naseeam
ID: 31410002
Amazing job in answering what was asked.  
Excellent information on the DWARF.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Disk Wipe Utility 6 83
Problem to file 3 67
How to build c program using make in mingw environment? 9 54
Denali Software 2 44
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now