From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93063 invoked by alias); 28 Jan 2017 23:56:26 -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 93053 invoked by uid 89); 28 Jan 2017 23:56:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=incantation, *rl, 60939, gcc-6.12 X-HELO: mail-qt0-f169.google.com Received: from mail-qt0-f169.google.com (HELO mail-qt0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Jan 2017 23:56:14 +0000 Received: by mail-qt0-f169.google.com with SMTP id v23so176958592qtb.0 for ; Sat, 28 Jan 2017 15:56:14 -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:from:date:message-id:subject:to:cc; bh=/C43Nsx4MESlw9/9jK1lXwqAAnc3H7QVi267AREztKk=; b=M9X9hMTKVbJebhIgCbcl+41yBZR9KDL1TdYDGcKmYUlhyM1ueZGTDSulXFQSsNNRM6 T5xjlaD5E27W46i6kUbDhkwYeVJ6mKH8CfYSGvdSpZTwxRkKS97uHBK3UnJp2EdFI7/Z h+fI97iqFIGo8G75+h2vYa5j44HJjEk9vmCkgFoIsJCGeJR2tJ3FiS630xQTVzle+LDB 0Jr2OJ6dnwK9JIB6OOHo/l7bkForHWKIxqiXq1kiJVvO+XxX6jq3ZKl0gx2khwFp/tVs /6XJjj+efZEX0bZtN5M4oMcQTdOdMhcLHybS3JpSSPuUVM66sMMYRFM6dNiMyWZKW7q6 0L8Q== X-Gm-Message-State: AIkVDXKRnQCkKd9bYlmVX96Nem7FKlmANRGIJD7e2ZowhI3alXoyBjTCVT/cqO4zle5rN8f54wQok9mCXgUuSQ== X-Received: by 10.200.45.5 with SMTP id n5mr13921522qta.174.1485647773251; Sat, 28 Jan 2017 15:56:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.181.202 with HTTP; Sat, 28 Jan 2017 15:56:12 -0800 (PST) From: David Edelsohn Date: Sat, 28 Jan 2017 23:56:00 -0000 Message-ID: Subject: Re: Issue with Latest GDB on AIX with GCC-6.12 To: Pedro Alves , Nitish Kumar Mishra Cc: "gdb@sourceware.org" , Yao Qi Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2017-01/txt/msg00052.txt.bz2 >>>>> Pedro Alves writes: > Sounds like a manifestation of: > > Bug 60939 - AIX: exceptions not caught when calling function via pointer > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60939 > > since ui->input_handler is a function pointer here: > > static void > gdb_rl_callback_handler (char *rl) noexcept > { > struct gdb_exception gdb_rl_expt = exception_none; > struct ui *ui = current_ui; > > TRY > { > ui->input_handler (rl); > } > CATCH (ex, RETURN_MASK_ALL) > { > gdb_rl_expt = ex; > } > END_CATCH If the problem is throwing an exception through a function called via pointer, then the solution should be to follow the suggestion in comment #8 and add an appropriate incantation of -Wl,-bkeepfile: to the link step for GDB, something like gdb/config/powerpc/aix.mh MH_LDFLAGS = -Wl,-bkeepfile:event-top.o Thanks, David