Re: Default debug format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 26, 2019 at 07:42:38AM +0200, Florian Doersch wrote:
> on my AIX gcc, there are multiple "-g" variants available.

Are you referring to -gxcoff vs -gxcoff+ or are you referring to other
debug formats?

>
> The problem is, that only "-gxcoff" creates proper (with AIX debugger
> dbx) debuggable binaries.

By default, GCC generates "xcoff+", which is an extended format
understood by GNU GDB.  The default AIX XCOFF format cannot represent
some data structures properly.

>
> How can I tell the gcc (i.e while building the gcc itself) that it
> should use xcoff as the default? I havent found anything working about it.
>
> I already tried to set PREFERRED_DEBUGGING_TYPE in
> gcc/config/rs6000/aix72.h to XCOFF_DEBUG, but it did not make any
> difference?

XCOFF_DEBUG is the default for AIX. GCC generates the extended format.
Limiting GCC to the more restrictive format by default requires more
invasive changes.

Thanks, David



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux