From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48285 invoked by alias); 13 Feb 2017 15:02:39 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 48266 invoked by uid 89); 13 Feb 2017 15:02:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*MI:sk:CAGWvny, sk:pedrop, pedro@palves.net, sk:pedro@p X-HELO: mail-qk0-f182.google.com Received: from mail-qk0-f182.google.com (HELO mail-qk0-f182.google.com) (209.85.220.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 13 Feb 2017 15:02:37 +0000 Received: by mail-qk0-f182.google.com with SMTP id 11so95312785qkl.3 for ; Mon, 13 Feb 2017 07:02:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vZdCWCd1yizR62OXuN41eF07nnSbJOPVjU5FtjAHTy0=; b=SoM5TWI0WYs78UXOoRKUbvotk329cTxfjem4ErMqu1tmXmSQUWHHb3oKSZJ8pmJDQF xG3l77eOXZMIo51Yo5ZlquD5xOq1EesBGAWb9yrRlkOKKuDOQrjMzF5Lk5IVDldqs1/R WPmqZkVjz141AmtYIg4HN1FiwCXzwjmpByDJ1zWM1s5oWuscUnHAQvlSUOweuo/1Tby/ XHwjxlZvNkjVKYMFV1q2+J10wDPQnprP+JKbmCRjuJft+/BeqRbsIGUFPVl0SjuG1SLl TIr8VKoveotpHqQ9E/gLwxG86umIbk0D5IEF8wPtk0PUkMOMkuOUKSlUooKpHU0Utw5i 5zoA== X-Gm-Message-State: AMke39mfasR0jFdp6SLKCiJ3HCHxD9ih9WCwUrTfP2T35vctYC02H1JyPgI86YLbh3hePP8wBw01uUq1Y2FNaQ== X-Received: by 10.55.25.147 with SMTP id 19mr8742323qkz.147.1486998156040; Mon, 13 Feb 2017 07:02:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.181.202 with HTTP; Mon, 13 Feb 2017 07:02:35 -0800 (PST) In-Reply-To: <5967c781-4f67-06f2-db34-f4cb3818d603@palves.net> References: <331a72d9-050c-7cd7-adc2-78e5f1ed6f85@redhat.com> <57147db4-83c3-2a8f-0c74-0efc6a94e9f5@redhat.com> <5967c781-4f67-06f2-db34-f4cb3818d603@palves.net> From: David Edelsohn Date: Mon, 13 Feb 2017 15:02:00 -0000 Message-ID: Subject: Re: Issue with Latest GDB on AIX with GCC-6.12 To: Pedro Alves Cc: Nitish Kumar Mishra , "gdb@sourceware.org" , Yao Qi Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-02/txt/msg00029.txt.bz2 On Sun, Feb 12, 2017 at 6:52 PM, Pedro Alves 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