Solved

What is debugging information?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
If your app took Google’s lash recently, here are the 5 most likely reasons.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

705 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

16 Experts available now in Live!

Get 1:1 Help Now