From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Et5JGTmtdGnbwRIAWB0awg (envelope-from ) for ; Sat, 24 Jan 2026 06:30:01 -0500 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=h6G/5GL0; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 493CE1E08D; Sat, 24 Jan 2026 06:30:01 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.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,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 7CE231E08D for ; Sat, 24 Jan 2026 06:30:00 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id E687A4BA9016 for ; Sat, 24 Jan 2026 11:29:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E687A4BA9016 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=h6G/5GL0 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 4336B4BA9002 for ; Sat, 24 Jan 2026 11:29:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4336B4BA9002 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 4336B4BA9002 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769254165; cv=none; b=ZSASBU9FVeTIw8KqHwTpIG6MKyZSib2upjaQ86zsskMq6uzExKt/KEypE7/o3oq97mWq2YFASz3GLejz1O2wYiiBq8Hg34GCSGAWBq/Xp/vdrUouTPQM40MTc2AG9EjE4i1nHDqNEgzwXUvP+KvgMDMcigPBjreAExUU8XfTbqU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769254165; c=relaxed/simple; bh=enUn2WSqkIQUtQQ1F3sENuRTfqrl3JaT22TGLeqhE/c=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=F8tpxWNghQzkrpuzlhn51HUaPnnyqpXtQi6tEWAeDeTB23i31O5OzyVB1IAFaNsBmZVXiK4BktXs+61hd04PJyFa748+f4N3+5wc0f8oryq9rU9WId5T3UEfEzT44OsFsSawNRL6JtBAcQo5tRQxmZ4D5S3Pfp/jzsLSadnT3gA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4336B4BA9002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769254164; 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=SChKr9Fc4VATAHlRC2zvEZiYVz0jH7c9b3+DKpxHQl4=; b=h6G/5GL0mgBARRDbWV1z3rSNBlvWqQa9BYxbL177iuZFbzmQzeznTeh9UBDTIOzjHIR7Id JF468+4KHRKEgjOIg9ynfVsLcaahyQ6aDLm3kZJVGDQJEzY9qMhsrEQAXWl1RdF0Qw2XJ5 9dvf7pc4xGeXVsC32u95QYtABVKaFnQ= 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-643-KsdYtkCcPN-uJpWKfRsquQ-1; Sat, 24 Jan 2026 06:29:23 -0500 X-MC-Unique: KsdYtkCcPN-uJpWKfRsquQ-1 X-Mimecast-MFC-AGG-ID: KsdYtkCcPN-uJpWKfRsquQ_1769254162 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4803a72daaeso23811615e9.0 for ; Sat, 24 Jan 2026 03:29:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769254162; x=1769858962; 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=SChKr9Fc4VATAHlRC2zvEZiYVz0jH7c9b3+DKpxHQl4=; b=u391pE0wKhptnXHezD1iSuDwinitM+XUjHchHaCAJr+hqyqBkxskUsbw8lMaBz/6xA xyc3CYNoNK7GG7iTUL6lGuEkvls0KzY7e+COumXgP5ZfOgdE71AbHq2T0LLlH06iqWS4 rprl/DRDIcW2+rMpEqxT7RC6MDFeSTtKiAbhLBQZFMpzFtrd7Hw4N/8A7x5JM9TxoZmH Q2r0RG/y5RCJ7qtqObW1rXrY+mitwM9pACqCZPlAYW4W4pVVZlRMz3YGnw/9Nv97R182 jC4Bqq8pEjQQvI333ZnfxjjwkHulgdFUWCSJt2OL4BJyjp3IP1zLsKPKIJvW7SyiY9o/ Mdjg== X-Gm-Message-State: AOJu0Yz+PEz0zm+YvC1BFobRzB9v4nLiZPGb0q8+oXWpvXwGFpRYDNeL 1A/gBz1ZmR2M8ssRtRufY2g4mABVqRAsaFhVl2I3md5e6J6Lgt+FZfBm9m88y9H2USAgN+gGw18 Tq3jNIZzvC0gFIg2g49fWI9rYLla6V9L0X2C0h5TYh+TvgNIjWCWE6dsCdT8y9hPPGP7vSYqQ6d n1Lu0/Gkoc89tZd9Mga0B+D4Q/YkRcfBt4zd665/HcD26NmOk= X-Gm-Gg: AZuq6aIk4aQhPS6wklORyVDCpH6KtygJzV/46xuZcOAYdq8iwK90xY4QFlA1P30eZqD G7Gsd3paRuY8+DxJPkVpuU/65sHKjOhR2HUmJBaAxpSROFwm/7W9m7WWtG/o5esY/lAZvm//25q drPgMpHPLBFfIwRHHHkNjA7nkKyMu8qY4ogfvEk/WOYp9z0KlL1geuQToP/yR71L512o5ozrORU EU1/02qjnO0yXrQ6JxQiCXJ3TcqBCrpffPIdC5GOZ+zFsElWIGIHqauah0XGdE3BzZiJHpUKs+0 eCZlaDukPbco6hTKT6Qp0p71iulYAdc92DUISDVuJNS1al7e+kw4llCZke7yvPRK3eaxRnyvXkN pSGBnkpgfIkeC4oKnl7fONklPxnzZAkY= X-Received: by 2002:a05:600c:4f8c:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-4804d2ebc2fmr104743915e9.11.1769254162049; Sat, 24 Jan 2026 03:29:22 -0800 (PST) X-Received: by 2002:a05:600c:4f8c:b0:46e:59bd:f7e2 with SMTP id 5b1f17b1804b1-4804d2ebc2fmr104743635e9.11.1769254161502; Sat, 24 Jan 2026 03:29:21 -0800 (PST) Received: from localhost (92.40.184.43.threembb.co.uk. [92.40.184.43]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4804dbc9d0esm45805105e9.16.2026.01.24.03.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Jan 2026 03:29:20 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/4] Fixes for tail call, until, and FinishBreakpoints Date: Sat, 24 Jan 2026 11:29:10 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: uqdZuhPwSdxOCamEnZZ-wc8cSSSD6Kdq2Co6dbvAmq4_1769254162 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 I've been looking at places where we use get_frame_pc when we should be using get_frame_address_in_block to handle tail calls correctly. This got me looking at gdb.FinishBreakpoint, and I found a bunch of things that needed fixing. Thanks, Andrew --- Andrew Burgess (4): gdb: fix frame_unwind_caller_WHAT functions for inline and tail calls gdb/python: fix FinishBreakpoint.return_value for tail call functions gdb/python: don't allow FinishBreakpoints for inline frames gdb/python: fix gdb.FinishBreakpoint returning to a tail call frame gdb/doc/python.texi | 3 + gdb/frame.c | 35 +++-- gdb/python/py-finishbreakpoint.c | 17 +- gdb/testsuite/gdb.base/until-in-tailcall.c | 53 +++++++ gdb/testsuite/gdb.base/until-in-tailcall.exp | 108 +++++++++++++ .../gdb.python/py-finish-breakpoint-inline.c | 58 +++++++ .../py-finish-breakpoint-inline.exp | 147 ++++++++++++++++++ .../gdb.python/py-finish-breakpoint-inline.py | 27 ++++ .../py-finish-breakpoint-tailcall.c | 45 ++++++ .../py-finish-breakpoint-tailcall.exp | 118 ++++++++++++++ .../py-finish-breakpoint-tailcall.py | 27 ++++ 11 files changed, 623 insertions(+), 15 deletions(-) create mode 100644 gdb/testsuite/gdb.base/until-in-tailcall.c create mode 100644 gdb/testsuite/gdb.base/until-in-tailcall.exp create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-inline.c create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-inline.exp create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-inline.py create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-tailcall.c create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-tailcall.exp create mode 100644 gdb/testsuite/gdb.python/py-finish-breakpoint-tailcall.py base-commit: 9810a515fe3aed6046760b8c1c1d3daa9ebc4334 -- 2.25.4