This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Executable's debug format


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]