Solved

What is debugging information?

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

810 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