Executable's debug format

Eli Zaretskii eliz@elta.co.il
Fri Feb 13 09:11:00 GMT 2004


> Date: Thu, 12 Feb 2004 19:54:32 -0500
> From: Bob Rossi <bob@brasko.net>
> 
> Is there a way to find out what debug format the debugging info in the
> executable is in?
> 
> Or is it more complicated? Can a single executable be composed of object
> files which each have there debugging info in a different format?

Yes, it can.

The command "info source" will show you the debug info with which the
current source file (the one where the program counter is now) was
compiled.  For example, to see the debug info format for the source
file where your `main' function lives, type these commands:

     (gdb) break main
     (gdb) run
     (gdb) info source



More information about the Gdb mailing list