Re: Executable's debug format

Eli Zaretskii
2004-02-13T09:11:48Z

> 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