On Thu, Feb 14, 2013 at 8:21 AM, Tristan Gingold <ging...@adacore.com> wrote: > > On Feb 14, 2013, at 12:26 PM, Steven Bosscher wrote: > >> On Wed, Feb 13, 2013 at 10:33 PM, David Edelsohn wrote: >>> The AIX system supports DWARF debugging, but GCC does not generate it >>> on AIX and GDB does not consume it on AIX. >> >> Is there a description for what has to be done in GCC to enable DWARF >> with AIX as/ld? E.g. is it required to support the ".dwsect" pseudo? >> Is there already a plan from someone to make GCC produce DWARF on >> AIX7? > > Yes, you need to support the .dwsect pseudo (which is basically a dedicated > pseudo like .section, but also includes section length). > > But note that .dwsect only allows a subset of all dwarf sections.
AIX 6 and maybe even AIX 5.3 support DWARF. Because AIX uses XCOFF file format, not ELF, it had to fit DWARF support into the XCOFF design. >> AFAICT, for gcc+gas it should already work with binutils that include >> the AdaCore patch for DWARF support. But this has apparently not been >> tested with AIX ld, and there are AdaCore local patches pending. >> http://sourceware.org/ml/binutils/2011-04/msg00250.html >> http://www.sourceware.org/ml/gdb/2013-01/msg00030.html > > Yes. What is the status of merging Adacore's patches for DWARF support on AIX? Thanks, David