This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Executable's debug format
- From: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: Bob Rossi <bob at brasko dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 13 Feb 2004 11:12:12 +0200
- Subject: Re: Executable's debug format
- References: <20040213005432.GA4476@white>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> 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