From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iXLyF1aB2WmVTBEAWB0awg (envelope-from ) for ; Fri, 10 Apr 2026 19:01:42 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=t0jf7VDk; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5CEF71E04F; Fri, 10 Apr 2026 19:01:42 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C14431E04F for ; Fri, 10 Apr 2026 19:01:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 8A7104BA23C0 for ; Fri, 10 Apr 2026 23:01:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A7104BA23C0 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=t0jf7VDk Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id C19074BA2E18 for ; Fri, 10 Apr 2026 22:59:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C19074BA2E18 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C19074BA2E18 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775861983; cv=none; b=peJcEKS/jhfaUKHksGzH+Liy90uuYREooVoXotn+Sy+NkE/NpcZ79uzwQZmntgbNnFECbzQp8yMy3Z4psGkLy6v0Eeu3zli7vAcXTZJdVxfRtbDXxP4XUpi819UGIBCQvxnLY6EdHMArqRW73Ragf73QTSA/hxz99y7ES22AkIo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775861983; c=relaxed/simple; bh=OBMuQD3SrAt28bNS9JAmh6z7HqtiVqc/CeO8jDj6/ow=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=dspAuq84Vzwxs0BOx8uGQWGrwuLSPtRBqY7iyKXKxV5wn2fJoSd3gNivezsEg2H6oS6Uksyxf+NT1yCKvDsizU99cr2YUzb34csSqu2z0hrlr49itBwsMGqjeI0x2kRTbFOq6hkS+VX8l5ROSG6zxeBusTGd14Z1O5aw1kNapLI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C19074BA2E18 Received: from eig-obgw-5003b.ext.cloudfilter.net ([10.0.29.155]) by cmsmtp with ESMTPS id B8ehwgMEwjw8YBKpBwcygO; Fri, 10 Apr 2026 22:59:41 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id BKpAwPjPJOPYdBKpAwlKEN; Fri, 10 Apr 2026 22:59:40 +0000 X-Authority-Analysis: v=2.4 cv=QbNmvtbv c=1 sm=1 tr=0 ts=69d980dc a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=SW4idARLu88Jv8rLYT4A:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=MKJEki7g+dIJPkP3uZChGu2laptZ7sGBgeIqTcdf2ik=; b=t0jf7VDkWs2Dv77AEeLyFf7Vad Liw5c0h3UhnaDE37vHWVTlDtTRc3/W0JD641c4a/vH58i6wP2mIrwmOICI6XqesE0hf6qwk5nsk8k 1HMIRb433U12mhyA0bKz6tqR5; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:49954 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wBKp9-00000001tnB-49jj; Fri, 10 Apr 2026 16:59:40 -0600 From: Tom Tromey Subject: [PATCH 0/5] Allow throw_* functions to style message Date: Fri, 10 Apr 2026 16:59:40 -0600 Message-Id: <20260410-unify-exceptions-v1-0-ea64dae971a8@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANyA2WkC/x3MQQ6CQAyF4auQrm0cBtHEqxgXnbEDXTiQFg2Gc Heryy9579/AWIUNrs0Gym8xmaqjPTSQR6oDozzcEEM8h1Mb8FWlfJDXzPPiW8NCKeZL6bvU9eC 3WbnI+k/e7u5ExpiUah5/oUllkHp8ki2ssO9few/DlIIAAAA= X-Change-ID: 20260410-unify-exceptions-fab2c7f53b35 To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wBKp9-00000001tnB-49jj X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net ([192.168.122.1]) [75.166.225.82]:49954 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfFtSbJSA2qn9zpEXpeOTjCwpCGy7s2WLQAaTOXgrDc9DFOgwIvcFGTjxUI9wttMT3iJN3jpHq4y3z9n4hfCGmsRwkaeTDNsaAO+7ROjx++Lbi4kFfHai kZ9vhXkhdt3j0juuYwxwqrzbeL3oocZcfSM+3QWDHgTs8ZuAVpHC+cRoHLbv376xWz1aB2M3aqqp6ttHrji7fNcimfneKo/WBbI= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Like the earlier series to style error messages, this series adds styling to various throw_* calls in gdb. This required a small change enable this in gdbsupport. Regression tested on x86-64 Fedora 40 Signed-off-by: Tom Tromey --- Tom Tromey (5): Allow styling when using throw_* functions Use file- and line-styling with throw_error Use command style with throw_error Use function style with throw_error Use address style with throw_error gdb/cli/cli-script.c | 7 +++++-- gdb/displaced-stepping.c | 7 +++++-- gdb/infcall.c | 1 + gdb/linespec.c | 38 +++++++++++++++++++++++++------------- gdb/utils.c | 10 ++++++++++ gdb/valarith.c | 7 +++++-- gdbserver/utils.cc | 12 ++++++++++++ gdbsupport/common-exceptions.h | 7 ++++++- 8 files changed, 69 insertions(+), 20 deletions(-) --- base-commit: b90e5339140ee1ff0ff454098c882bf7dcf9bbf9 change-id: 20260410-unify-exceptions-fab2c7f53b35 Best regards, -- Tom Tromey