From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; Thu, 27 Oct 2022 15:38:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA01738A817A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666885089; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=JLKNicTF5ZyfYYTvzIU4/zHBCXpsi5weie0S4680VCc=; b=SS2WPb4l80+G/F5rwtOcCd/NVmz3aXIBcNuTLPk/GCglm1/RWtFFDaKgfrOPOkOSGHWGqS H4wEG/NXaI/99iNSJ2NyL3FBx+Hx7kivS69XpPiGmsqcxHkhzlS27k5CDxA+YbgfEZYBTU BigE+9zoSMXHZz19um3k7SgJWJq1jgQ= 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 ; 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) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Simon Marchi , Andrew Burgess Subject: [PATCHv2 0/3] gdb/python: avoid throwing an exception over libopcodes code Date: Thu, 27 Oct 2022 16:38:00 +0100 Message-Id: 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 List-Id: 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(-) -- 2.25.4