Message ID | 20240828082047.17174-4-tdevries@suse.de |
---|---|
State | Committed |
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 2E8AD3860772 for <patchwork@sourceware.org>; Wed, 28 Aug 2024 08:21:18 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) by sourceware.org (Postfix) with ESMTPS id 032853860760 for <gdb-patches@sourceware.org>; Wed, 28 Aug 2024 08:19:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 032853860760 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 032853860760 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a07:de40:b251:101:10:150:64:1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724833188; cv=none; b=CliAfeYVxfGS2hTxk+f1+6malGYxGU8NsAgHLzLp3i/+NkMTx4D+HYtSoQwllLGiynjQ7MPx2j1RmhHJCGSzzd7Ppy3AQ0PEhCbAdqvb8vGnl+bPKCRKeZIkANfFmeeNBnGFv/O526s4d7DuoHB7+EQ8pfuQWXBPMHSZqFahq0o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724833188; c=relaxed/simple; bh=KW/pfc87u3ygpMKI31BYk/EKqjI4aZBpHrnIkXzzAvU=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-Id:MIME-Version; b=qZDOmCibvbk3ZEEX3BjYS0iRieLCWqqyIQVBqU3h04/JwrokIpRRl4Gap7OltCBB5N3PH8l6LryY8fjToGESrNBmOBw1SK3P1ocOoTbGQG4cwV2JLrnpU7XXKloOGFc2TDs2nmD+lP+GHtpt6siuMwyNpe3MUdZ8ODDU2M7Sdks= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 07A6A21B4E for <gdb-patches@sourceware.org>; Wed, 28 Aug 2024 08:19:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724833180; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fatqlOe5X5fhNiv8LLJ1X2qXh38+s+o8YLCLhrTOHF0=; b=L+XXC37b6olv+i3VHXwrnnuCI5Cp3qglR1W3le2Y6r8MT7rXs6aseaHX7cyKOjipl1oqay GxitDEvvUUVxcLS06vT4K1vdNow+Knt1DCvSvYea6YtwGmpq7neKfGoIt1UD+hv9UTx2xr PJ3FD+6nXYae2gFwYGfmQ3sbCHpcQm4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724833180; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fatqlOe5X5fhNiv8LLJ1X2qXh38+s+o8YLCLhrTOHF0=; b=8SVaMU1/Y0iwCBG/AGQpLmvhH78+q9bNHGb3iny/F/lzJCFavUHUtRyMrtLrklAKQIMtBc +dvb5PP6M4vUVlAg== Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=L+XXC37b; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b="8SVaMU1/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1724833180; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fatqlOe5X5fhNiv8LLJ1X2qXh38+s+o8YLCLhrTOHF0=; b=L+XXC37b6olv+i3VHXwrnnuCI5Cp3qglR1W3le2Y6r8MT7rXs6aseaHX7cyKOjipl1oqay GxitDEvvUUVxcLS06vT4K1vdNow+Knt1DCvSvYea6YtwGmpq7neKfGoIt1UD+hv9UTx2xr PJ3FD+6nXYae2gFwYGfmQ3sbCHpcQm4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1724833180; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fatqlOe5X5fhNiv8LLJ1X2qXh38+s+o8YLCLhrTOHF0=; b=8SVaMU1/Y0iwCBG/AGQpLmvhH78+q9bNHGb3iny/F/lzJCFavUHUtRyMrtLrklAKQIMtBc +dvb5PP6M4vUVlAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E3CD213AF1 for <gdb-patches@sourceware.org>; Wed, 28 Aug 2024 08:19:39 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id SOBfNpvdzmarPwAAD6G6ig (envelope-from <tdevries@suse.de>) for <gdb-patches@sourceware.org>; Wed, 28 Aug 2024 08:19:39 +0000 From: Tom de Vries <tdevries@suse.de> To: gdb-patches@sourceware.org Subject: [PATCH v2 4/4] [gdb/python] Use gdbpy_handle_gdb_exception in valpy_assign_core Date: Wed, 28 Aug 2024 10:20:47 +0200 Message-Id: <20240828082047.17174-4-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240828082047.17174-1-tdevries@suse.de> References: <20240828082047.17174-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 07A6A21B4E X-Spam-Score: -5.01 X-Rspamd-Action: no action X-Spamd-Result: default: False [-5.01 / 50.00]; BAYES_HAM(-3.00)[99.99%]; DWL_DNSWL_MED(-2.00)[suse.de:dkim]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; FROM_EQ_ENVFROM(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,suse.de:dkim,imap1.dmz-prg2.suse.org:rdns,imap1.dmz-prg2.suse.org:helo]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[suse.de:+] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.30 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> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
[v2,1/4,gdb/python] Add gdbpy_handle_gdb_exception
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_gdb_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 | success | Test passed |
Commit Message
Tom de Vries
Aug. 28, 2024, 8:20 a.m. UTC
In valpy_assign_core we have: ... catch (const gdb_exception &except) { gdbpy_convert_exception (except); return false; } ... Use instead: ... catch (const gdb_exception &except) { return gdbpy_handle_gdb_exception (false, except); } ... No functional changes. Tested on x86_64-linux. --- gdb/python/py-value.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c index 5cce43b7400..615269d742a 100644 --- a/gdb/python/py-value.c +++ b/gdb/python/py-value.c @@ -921,8 +921,7 @@ valpy_assign_core (value_object *self, struct value *new_value) } catch (const gdb_exception &except) { - gdbpy_convert_exception (except); - return false; + return gdbpy_handle_gdb_exception (false, except); } return true;