From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id diLKMTKoz2oNwQkAWB0awg (envelope-from ) for ; Wed, 14 Oct 2026 12:05:06 -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=QsHPHe3E; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id AAE701E050; Wed, 14 Oct 2026 12:05:06 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 D1C9B1E04E for ; Wed, 14 Oct 2026 12:05:05 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 27DC54BA23CD for ; Wed, 14 Oct 2026 16:05:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 27DC54BA23CD 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=QsHPHe3E Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id D1BC44BA2E0C for ; Wed, 14 Oct 2026 16:04:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D1BC44BA2E0C 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 D1BC44BA2E0C Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791993878; cv=none; b=DGbzRXsAVIAgE4DJfrCnJyvk5Cp70CriZXjqb43tXO6YkkmkaYbc/Fm2JkT0enUKFViE98QJCftVIg46hZenPGnsK1xIodISiDKmVYJWpUKwZvuynMPWW5/i5iHuCWuXWa7XezUYhAIWxSS/rSfWvoEdND1UeGe5pET9DrAefKM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791993878; c=relaxed/simple; bh=zAcMerdMUjghWLwb2OnQ6lMHEmGScYwL1ptPzmK31QY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gztj6QUrBLxE7po7lnybmaDDTpZHf2cTH6B+qdr7fBehoM+M+fhDihn2lV8QA4faKrJ9UiLf7+rb/MxRKaS2vMcQkI13cQxamQquXiVeoAZAGoNk1Vc9sXHhxhUccdpFQLVMakqRtbcD9nSMz7dqQFzVu8Pt2VIwvTk6yiDA/IE= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=QsHPHe3E reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1BC44BA2E0C Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id Gsy4xYUJGJFmFH1T4xc7Wu; Wed, 14 Oct 2026 16:04:38 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id H1SyxfSyLRC6eH1SyxpKJ5; Wed, 14 Oct 2026 16:04:32 +0000 X-Authority-Analysis: v=2.4 cv=FvsF/3rq c=1 sm=1 tr=0 ts=6acfa816 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=660iZSQnnn4A:10 a=ItBw4LHWJt0A:10 a=i0EeH86SAAAA:8 a=EdrDnc4OH_M8ua0YbcIA:9 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iXCa1zMA072odJLuCXFK5Urt6O3wT2lPbn55ZoBa1Qo=; b=QsHPHe3EyFt86CVRj2mHKf9cy7 2wPmNQFuCOpooR2HdcMuqTwHLpN5/ZwnZh2MCsle1JAhGipScEXSMt1c901wlPZeqq7h2ii8aL+FB jgi8J8XQGNm1F5qJn48qgU+Pl; Received: from 97-122-110-129.hlrn.qwest.net ([97.122.110.129]:57056 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xH1Sy-00000003BTX-17MB; Wed, 14 Oct 2026 10:04:32 -0600 From: Tom Tromey To: "Dmitry Ivanov (A)" Cc: "gdb-patches@sourceware.org" Subject: Re: [PATCH] gdb/python: Handle unnamed frames in caller-matching functions In-Reply-To: (Dmitry Ivanov's message of "Tue, 13 Oct 2026 11:35:16 +0000") References: X-Attribution: Tom Date: Wed, 14 Oct 2026 10:04:31 -0600 Message-ID: <8733u846b4.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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: 97.122.110.129 X-Source-L: No X-Exim-ID: 1xH1Sy-00000003BTX-17MB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-129.hlrn.qwest.net (bapiya) [97.122.110.129]:57056 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfHTpb3XjV0KsUxN5X7gsRoCn51mDAONwfzaBZRH/TqhTluBal0xBN9oUH2X4C2JWv7hKMQsA5F1WZtWSTk5p6FQXt8LBjLdBQI4YOUEq9hNskwQ0qeZq VD8SZYUCSfOZk/ymN4atkwvo7+0aSD0UyWjLL/eumW48G+0I+BqsJPfnewhxRusNgNguAHDy1q/yczDltiu7tJ8DdtgYTADaeF8= 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 >>>>> Dmitry Ivanov (A) writes: > This is my first GDB contribution. Hi. However you sent this, the mail got pretty mangled somewhere. There are a lot of extra newlines. So it can't be applied as-is. > + frame_name = frame.name() > + return frame_name is not None and re.match(name.string(), frame_name) is not None I wonder if instead the None case should be turned into an empty string here, so a user of $_caller_matches could match against "^$" to detect nameless frames. I think this would be as easy as frame_name = frame.name() or "" In this case perhaps the documentation could be updated a bit as well. > +# Prepend an unnamed frame to the current stack without depending on > +# missing symbols in the host's runtime libraries. Cool technique. Tom