This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: stab strings on AIX
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Perry Smith <pedz at easesoftware dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 14 Jan 2006 14:20:28 -0500
- Subject: Re: stab strings on AIX
- References: <0456FB68-21B0-4F8F-8824-E4C540B1523B@easesoftware.net>
>>>>> Perry Smith writes:
Perry> I have a tool that I use to look at AIX dumps. It understands stab
Perry> strings that xlc (the IBM compiler) produces. I feed it a file
Perry> produced by gcc/g++ and it complains. The same thing happens with
Perry> dbx (IBM's debugger). Of course, gdb understands it fine.
Perry> Has gcc/g++ extended the stab strings or is my tool (and dbx) just
Perry> incomplete? If there has been an extension to the stab strings, can
Perry> someone point me to where it is documented (even if it is in the
Perry> source). I *thought* I had a complete implementation as documented
Perry> in the AIX pubs but they may be incomplete. So, another possibility
Perry> is maybe I just need a pointer to the complete stab string
Perry> specification.
Yes, GCC produces extended stabx debugging information by default.
See the "Options for Debugging Your Program" in the GCC manual,
specifically the -gxcoff and -gxcoff+ options. GCC generates -gxcoff+ by
default when "-g" commandline optio is used. If you want the subset that
works with AIX tools, explicitly use -gxcoff.
David