Re: Issue with Latest GDB on AIX with GCC-6.12

David Edelsohn <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAGWvnymCQL62BDZCX_ftf11sbqxrhPgbKoYZ4iQkFW8-2Tk-Ag@mail.gmail.com>
On Sun, Feb 12, 2017 at 6:52 PM, Pedro Alves <[email protected]> wrote:
> On 02/12/2017 09:05 PM, David Edelsohn wrote:
>
>> Investigating the exception handling problem with another non-IBM AIX
>> developer, the problem appears to be that statically linking libgcc
>> and libstdc++ create two, separate and distinct copies of the unwind
>> tables.  These tables are not merged and the unwinder cannot find the
>> EH catcher.  It's not immediately clear why this worked in GCC 4.8 and
>> not in GCC 4.9 and later.
>>
>> GDB with exception handling should work if libgcc and libstdc++ are
>> linked as shared libraries.  The linking error with GCC 6.1 is cockpit
>> error.
>>
>> Can we disable -static-libgcc and -static-libstdc++ for AIX?
>
> Works for me.  Those are added by the top level configure.  They were
> originally added for gcc, we just inherited it.  Ideally adding
> those would be controllable with a configure option, IMO.

We shouldn't disable static-libgcc and static-libstdc++ for GCC.  And
static would be better.  But linking GDB dynamically could be helpful
as an interim work-around.

Thanks, David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.