Solved

What is debugging information?

Posted on 2007-11-19
3
1,225 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
 
LVL 1

Author Closing Comment

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

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

In our personal lives, we have well-designed consumer apps to delight us and make even the most complex transactions simple. Many enterprise applications, however, are a bit behind the times. For an enterprise app to be successful in today's tech wo…
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

730 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