Message ID | cover.1666884855.git.aburgess@redhat.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C35BE394843A for <patchwork@sourceware.org>; Thu, 27 Oct 2022 15:38:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C35BE394843A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666885115; bh=JLKNicTF5ZyfYYTvzIU4/zHBCXpsi5weie0S4680VCc=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Y4ADbFdE6l9qgaPcuGihwGCkEGuolUeIlOtT+WteMM+mgQE7A0Eq9/eEs+MPMLtMm Zm23KhwMvlMJpkU0sxeULwmyCI+1Y1tgu98K8szWubmtej02v+ZHZFjlngo7PzVlwQ 7ooqYiU6KCKNScmaUoey9shuPwI6i2ZC5jQ3XuBI= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id EA01738A817A for <gdb-patches@sourceware.org>; Thu, 27 Oct 2022 15:38:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA01738A817A Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-586-w1KcdXufPDuqbQrxLGhwGA-1; Thu, 27 Oct 2022 11:38:08 -0400 X-MC-Unique: w1KcdXufPDuqbQrxLGhwGA-1 Received: by mail-wr1-f69.google.com with SMTP id e21-20020adfa455000000b002365c221b59so557542wra.22 for <gdb-patches@sourceware.org>; Thu, 27 Oct 2022 08:38:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JLKNicTF5ZyfYYTvzIU4/zHBCXpsi5weie0S4680VCc=; b=Etcl0B4ruRWkBlIx7YB6vv7nGyc05gZdTClDtkJB1BRWdOa7XYgLuSAsOXjOnnzKPs 9GdtRpFdMoCJ1vB00lVNfLQaln/NA883Fi3Fv6zCtTYj7orV50+2I7ZoNGOlxToDVA1m eBzESXY84dpdNbohKdqDV1au2iz/ZUvf0hpkVvXu/c6INIbOVPpc1z214RpfMptzsG6t 9o64eV8rDnp5VwJ2Pgs8PZQXMcs9p29cP3pJBpv2dszZv5S67oTj+5mbH/uLbRSje1VC I+kDiLN4QXXtjDj/cWisdBUakg/ghdtZiYdDzelsoQbmDiMmDfraGIX1jh3M+/j4n3Ou crWw== X-Gm-Message-State: ACrzQf1KEhU9c5uaA8D+IUXMilsvnJKnyMpZ7TlPPoJofcll9qDkrF7q F2mz9ETPflIgv83eXQtr8qd/0XkwqrH8k+DtAgOPcSySDzMMm99a4yZ18Kdr2d01pA5L6hgUBZ3 pzTfeiqmm0JRuM4JU51hdhGdnXbw/OucV74SonfgAXI/u1kGwiTXoh26Nnyt0gbiMrU2wTb5Opw == X-Received: by 2002:adf:db92:0:b0:236:9d4a:476f with SMTP id u18-20020adfdb92000000b002369d4a476fmr690340wri.654.1666885086982; Thu, 27 Oct 2022 08:38:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5LCqzIJCR5J0SPz6F1FlIertc5zDaJq2DtqFkdKpU0Yg9zOEzTMFqF4mip4/DH+A3KcBI7mg== X-Received: by 2002:adf:db92:0:b0:236:9d4a:476f with SMTP id u18-20020adfdb92000000b002369d4a476fmr690324wri.654.1666885086679; Thu, 27 Oct 2022 08:38:06 -0700 (PDT) Received: from localhost ([31.111.84.238]) by smtp.gmail.com with ESMTPSA id d5-20020a05600c34c500b003cf568a736csm934411wmq.20.2022.10.27.08.38.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 08:38:05 -0700 (PDT) To: gdb-patches@sourceware.org Subject: [PATCHv2 0/3] gdb/python: avoid throwing an exception over libopcodes code Date: Thu, 27 Oct 2022 16:38:00 +0100 Message-Id: <cover.1666884855.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20221024125016.2823862-1-aburgess@redhat.com> References: <20221024125016.2823862-1-aburgess@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Andrew Burgess via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Andrew Burgess <aburgess@redhat.com> Cc: Simon Marchi <simark@simark.ca> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
gdb/python: avoid throwing an exception over libopcodes code
|
|
Message
Andrew Burgess
Oct. 27, 2022, 3:38 p.m. UTC
Newest version of this series, bringing everything together into a nice V2 series. Changes since v1: - Patch #1 is largely unchanged. I'm still in discussion with Simon as to whether this is the correct solution or not. - Patch #2 has grown a little since the first version I posted, I found a few extra callbacks which can be marked as noexcept. - Patch #3 is new, this adds the noexcept keyword to the typedefs used to handle the libopcode callbacks, but only when we compile for C++17 or later. --- Andrew Burgess (3): gdb/python: avoid throwing an exception over libopcodes code gdb/disasm: mark functions passed to the disassembler noexcept gdb: mark disassembler function callback types as noexcept gdb/disasm-selftests.c | 5 ++- gdb/disasm.c | 25 ++++++------ gdb/disasm.h | 48 ++++++++++++++++------ gdb/guile/scm-disasm.c | 2 +- gdb/python/py-disasm.c | 91 ++++++++++++++++++++++++++++++++---------- 5 files changed, 121 insertions(+), 50 deletions(-)