From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id yyRjIdcm4GjBER4AWB0awg (envelope-from ) for ; Fri, 03 Oct 2025 15:41:11 -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=v2Zt9g1J; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 733F11E0B6; Fri, 03 Oct 2025 15:41:11 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.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,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 8EE561E04C for ; Fri, 03 Oct 2025 15:41:10 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 26432385780D for ; Fri, 3 Oct 2025 19:41:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26432385780D 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=v2Zt9g1J Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id 702653857C7A for ; Fri, 3 Oct 2025 19:40:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 702653857C7A 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 702653857C7A Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520420; cv=none; b=a6VRiYeEdrAEJt9YeqRHt42LpfI/HzzHupxfkrPD/lj4OSTvV2FI88cCRV/alozUtOTtVAIcHOwZ/O8thYnjyvFOH8kZpodDB9Kp7KumAaOrLI5byVfnO03VR/CgGMAlIyOvZaDAe2QapCyNWfTYHZtPQcaQw38573HC+w7cHvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759520420; c=relaxed/simple; bh=O+2Xfd7uUrKGccR3mmugzqh1HFsJV06FifNdPWf6woA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=h1jHPxDjGeEMjqzt8gvFB8m8xiNQCWbAlDE1RqoTZ4dZR9xBoNxj4WI8/QbjtoyMBvRX2v8Kl6WH/qvvA14+nHzN9FXdZ3Z00CGhPRaykS+97kvZPuc8ST20rK4erzfhIxQrsRsj4hjBlvzjbh6URp1qb4vbzguSqsXfadkIXKE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 702653857C7A Received: from eig-obgw-5005b.ext.cloudfilter.net ([10.0.29.189]) by cmsmtp with ESMTPS id 4QmzvsqIMaPqL4ldbvsSFF; Fri, 03 Oct 2025 19:40:19 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 4ldavlfvDfjrX4ldavfYx9; Fri, 03 Oct 2025 19:40:19 +0000 X-Authority-Analysis: v=2.4 cv=ItcecK/g c=1 sm=1 tr=0 ts=68e026a3 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=x6icFKpwvdMA:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=YYgIsFakRT20Frs-_TcA:9 a=ul9cdbp4aOFLsgKbc677:22 a=VS4QxaUSPT0UtbFnIvSC: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-Subscribe: List-Post:List-Owner:List-Archive; bh=wXHIJ2HVLeJgjTVtBREuyik3fPBovc5NtMbz/sgd/YI=; b=v2Zt9g1JiUNZpVyQ8wyFF3z1vK Iq8evaAkPPquje8c3DrXt55hFCizT4GsBsbDb3lj78OGUnPARIiNv6yNsWTBXCW6lcVP8/IQjsoFX EJERVDCFoVRp4N2WH0B0qMQS+; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:59582 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1v4lda-00000000m6G-0yS2; Fri, 03 Oct 2025 13:40:18 -0600 From: Tom Tromey To: Andrew Burgess via Gdb Cc: Simon Sobisch , Andrew Burgess Subject: Re: python API to trigger a "select-frame" like event with a given location In-Reply-To: <87cy78dklf.fsf@redhat.com> (Andrew Burgess via Gdb's message of "Tue, 30 Sep 2025 16:30:04 +0100") References: <35f6cb30-6118-4c3d-9c5a-2f819e6b7c6c@gnu.org> <87cy78dklf.fsf@redhat.com> X-Attribution: Tom Date: Fri, 03 Oct 2025 13:40:17 -0600 Message-ID: <874isf7p0e.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.68 X-Source-L: No X-Exim-ID: 1v4lda-00000000m6G-0yS2 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net (bapiya) [97.122.110.68]:59582 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKWVqZeLOMJExw//Zf3RIv3CkgCK701to4Hio5VtNtdpCl1sQ6OAhqcMQapZJL3re6+fuUlUaxBcCbvCnrxFS0uYso7v0AOk7fLvhrRfTejSDWsaE9o0 rU/cPw4JOz695yvYynCOb0L9lou85iRl3yHzUCIQAANrJQzL91O3c7UjXhsMeKd6EsvYkAmcn1SRDw== X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> "Andrew" == Andrew Burgess via Gdb writes: >> If not: could there be an extension to "select-frame level" >> >> select-frame level LOCATION >> >> select-frame level -- Select a stack frame by level and show LOCATION in >> the UI >> >> or a new command >> >> show-location LOCATION >> >> that executes what select-frame does, but _without_ selecting anything >> (calling interps_notify() with the location as "selection")? Andrew> If I understand what you need, then you are looking for way to implement Andrew> your 'myup' and 'mydown' commands such that GDB will appear to move Andrew> though the artificial frames (e.g. 0.0, 0.1, 0.2, 0.3, etc). To do this Andrew> you need to select the real frame (#0), but then want some way such that Andrew> GDB will notify the various UI's to indicate that their focus should Andrew> shift to the source locations corresponding to the artificial frames, Andrew> right? Andrew> You mention, but seem to dismiss, using 'list'. Can you expand on why Andrew> this doesn't meet your needs? Andrew> Which UIs in particular is it that you are interested in seeing update? Andrew> I ask because I'm wondering which events it is that would need to be Andrew> emitted. Could you expand with some user stories, which UI is the user Andrew> looking at, what actions do they perform, and what is updated as a Andrew> consequence. FWIW there was some discussion of some related ideas in https://sourceware.org/bugzilla/show_bug.cgi?id=18567 My view is that it would be good to have more features in this area, and that the main barrier is just implementing them, with maybe the main secondary problem being having convenient ways to turn them off. thanks, Tom