From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kRUAHp6oHmq7lS8AWB0awg (envelope-from ) for ; Tue, 02 Jun 2026 05:55:42 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BdmIEuBR; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 703701E062; Tue, 02 Jun 2026 05:55: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=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 DF0A51E062 for ; Tue, 02 Jun 2026 05:55:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6846D4BA23D8 for ; Tue, 2 Jun 2026 09:55:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6846D4BA23D8 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BdmIEuBR Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 9F7A24BA2E1B for ; Tue, 2 Jun 2026 09:54:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F7A24BA2E1B Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F7A24BA2E1B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780394085; cv=none; b=X6IgR/T8wqBGEnC2R2qfZe1WMQ1jfzZnOtPk8ZBcwklqyMECaJyxtOXOGFIrYgfiaQ2MzbiQH1g7sJE141Bs4ePHLa0nUSHqiw7JORNY7beHuSn4y7r/uPQHC6SzAN8QVNRtGrvArrICw9EN7mEBkQKCCoIFMt+pUWgfp/bPi2Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780394085; c=relaxed/simple; bh=nT5qbjrF8uOssQ35CiyzQpzodhcP4jZSuQYaPlvSCzE=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=tqpkTkQOEajxmR7kdvXzlh01C9CuMEGdHL2eluVUt48mshIMyNyKjDlWLgf5cIJZBlojLLP7RqqN6vz0gF8+LRYXwm5VEP/MRm5ANnfTt1dRAH1bLQgL7s5/lJVump+bk6Y0NTU7sxj54eZRJKHXRV9gpZY6ce2Ubt6y/djmqAY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=BdmIEuBR DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F7A24BA2E1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780394085; 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; bh=lkrWBuSXW/cXTuWY4k6mpnnunPlbcDVS8deByncC4PU=; b=BdmIEuBRlT0Z+tpfPwZm1dgcZcj7mP7sz8h6sBfG4dlHIh6RJt+AwL/v40G0KRe5dZMRLd MX1ofBzn8+QeGyjxUIWckzyoFq7WN7yIls1z3LcIgeettXqXW/tMsgHDOEj+4qmrbx53/u ldk6M2otAGx45SzVBTlNvusLqdYDfJE= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-275-HMdJBuwFMQe5Ub3q5ZsfUQ-1; Tue, 02 Jun 2026 05:54:43 -0400 X-MC-Unique: HMdJBuwFMQe5Ub3q5ZsfUQ-1 X-Mimecast-MFC-AGG-ID: HMdJBuwFMQe5Ub3q5ZsfUQ_1780394082 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4904ee02e72so87653155e9.1 for ; Tue, 02 Jun 2026 02:54:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780394082; x=1780998882; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lkrWBuSXW/cXTuWY4k6mpnnunPlbcDVS8deByncC4PU=; b=Rk6bT59AGMRzeXoWkI7VHe3VFV6KV87tdM10zMDUZyMlzjkY1wbEZt76kN8n43eIyU lqgDyXtKVR5NBj23j3s67YHadICc/fnaKqMS6cUnPuBpNGnDERuvv2G9RZizts9zAYh7 Hc643Eni37C1fFmdTK1qt/d0C2o+wGKOEevRi/MKJ2YrgG1+IRBcmfMgWXBNnHePB3Fv 321rs61AN0sq7R3g0hfPsePwIJiSYoxMI6/3kmWkC/97gaiZvmx7kPdXLLmcf6dF6JiJ OUwkIWVv10SWHmTXx0pbouEg/2X9sR0ryBe1Efxn47Na5Nem6ApLu00KR0sxuI6uMomo KRCQ== X-Gm-Message-State: AOJu0YwKADSCc4InXb6xXyta2DL8idZn1Oqy8TjupEV8BHFENRLNDqfx iU7vSzA++E0VLiRzWsSu3UhjqE76lDvpaXUa6/ijkF9Ws6yuIldU5c19JU5Gf5d8KNNFTX66es5 NNtz5V7zqFcySHqZK63B/f7qYgXRxsLj1wL5aLaghqpmX4HE0SvkKNJPGy8EIfAFAk94YSpIceE AshkvR5bJXCjjByR5cZBsxxABovm7o90qhtx6Ag+dz8hUzb4Y= X-Gm-Gg: Acq92OG9L68o3C2Ujd4oKEgz81MZWNV6dCIdhkzWRkVYyk2iPV2GwkagCrC1IosHCzp +99/ZpwBVgeTLnxEG04S2Z9NVaeJWVCQ5Vpt9TkIMMwTw06vp0q+hqmQeeKBQvf8kp0kF5vuSvF iskzIL+iMTnthUX7SfRgOff1Lwf2DktioPjbOj93nf4itMpO9YvmBk+JVe7Oa/0vskQn+cPDc3b BaP0Nmx56hBczTU6qpdNDhxHOY6LDYMUBMaEXgWd83+V55EElsvAfgq5B9LOVONrChtQJyTaJpt F7Kr37kC0rd9kZE1E6aiZrB5WGuNpIv5CF6tuCCvGSYzxowQ8/MrLCwmv4P/PSKgx/KmtkHQz0w RASTSSB7QXpQm2gOaf+79nWqjow== X-Received: by 2002:a05:600c:4f8a:b0:490:afc5:f95d with SMTP id 5b1f17b1804b1-490afc5fb2amr76805655e9.29.1780394082475; Tue, 02 Jun 2026 02:54:42 -0700 (PDT) X-Received: by 2002:a05:600c:4f8a:b0:490:afc5:f95d with SMTP id 5b1f17b1804b1-490afc5fb2amr76805135e9.29.1780394081956; Tue, 02 Jun 2026 02:54:41 -0700 (PDT) Received: from localhost ([213.31.44.43]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-490b29f49b8sm26988065e9.15.2026.06.02.02.54.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2026 02:54:41 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] Cleanup in Python frame_object Date: Tue, 2 Jun 2026 10:54:37 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Ug2HCB2eoRMFNAq2J1IAqtAjjDHlEaT4OcXBc14hsTo_1780394082 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 While working on another patch I ran into an issue with Python's frame handling, this got me looking at how Python holds a frame's id. GDB's frame-id handling has evolved since the Python frame related code was added, and I think we can now clean up the Python code, and fix a small bug in the process. Patch #1 is a small testsuite cleanup. Patch #2 is the actual change to the Python code, updates to the expected output for a couple of tests, and a new test that exposes the bug. Thanks, Andrew --- Andrew Burgess (2): gdb/testsuite: don't overwrite test executable in py-frame.exp gdb/python: remove frame_object::frame_id_is_next as unnecessary gdb/python/py-frame.c | 33 +--- gdb/testsuite/gdb.python/py-frame.exp | 36 +++- gdb/testsuite/gdb.python/py-frame.py | 187 ++++++++++++++++++ .../gdb.python/py-pending-frame-level.exp | 2 +- gdb/testsuite/gdb.python/py-unwind.exp | 4 +- 5 files changed, 227 insertions(+), 35 deletions(-) create mode 100644 gdb/testsuite/gdb.python/py-frame.py base-commit: f577746edb4ca2678f69feb5e5848a646d5cd856 -- 2.25.4