From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 04+PM9svK2raMgIAWB0awg (envelope-from ) for ; Thu, 11 Jun 2026 17:59:55 -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=KIjcd+Lu; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id BF7121E070; Thu, 11 Jun 2026 17:59:55 -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 [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 D4B691E070 for ; Thu, 11 Jun 2026 17:59:54 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D54294B99F6B for ; Thu, 11 Jun 2026 21:59:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D54294B99F6B 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=KIjcd+Lu 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 B07B84BA23D3 for ; Thu, 11 Jun 2026 21:59:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B07B84BA23D3 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 B07B84BA23D3 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=1781215151; cv=none; b=rW1zIpcs8tmwUnTBnDdfmHA+/YyjpRca3JY/ZiZL7dwaPAVGiBeRtrbHo/JYpXSyp5pmwte/Et6078tzMtwk3hysqZHm/JlaYmPMhsdQCkvF64kd5z2ZizZrvu1eM5wzAmzdw0ETF3OicJtZqSXhK23lsQmQ/6uJap6PfSbwEto= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1781215151; c=relaxed/simple; bh=nGyhuuDqgIlHmwb71/k6I6HOEy+iRUHaNMz3jwnh2Cg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=xSr0YY+0dg1A8PvIjljE35QlRZ8syGWdZ5GzJmfIsBStM8ovN0q7gV9pzXrNyCFJnNZK2rD8fSTsmyMQFdKuwaZSHrJZ1OKaazF5b7YgdbCA70go/zuLfj4lKL2qYARF3gjYA8Cko9btpaq37XFnTFSP5ing8xN12M5Yq9nTe/0= 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=KIjcd+Lu DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B07B84BA23D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781215151; 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: in-reply-to:in-reply-to:references:references; bh=UsBcLtbcBeqdCUBKuMnJTkWMSuIVSCWITNkN5SENYx4=; b=KIjcd+LuhcKb/uoEpyG4RoNRIOSP1x/9DM+ZJE2bZ0FP3GqtCcGWD81wF0mxBFhIc+fvS0 NhDlEWMEDYvse68Fm0bh8T6LxZEC49Fp3/oFR5SAAeDsXXxBYJiFSTpHi5tf5/4lPEgWPV R01gZ/HjAnTqtOeb+rKieOasuc546ns= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-119-F_9hZ-D3P4eB5NyxSaH39Q-1; Thu, 11 Jun 2026 17:59:10 -0400 X-MC-Unique: F_9hZ-D3P4eB5NyxSaH39Q-1 X-Mimecast-MFC-AGG-ID: F_9hZ-D3P4eB5NyxSaH39Q_1781215149 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-46010bc0f1eso156388f8f.3 for ; Thu, 11 Jun 2026 14:59:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781215149; x=1781819949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=UsBcLtbcBeqdCUBKuMnJTkWMSuIVSCWITNkN5SENYx4=; b=CbuWJOVTA8UBkfzELparA5QjFeh03EGFubv/3YDCTZDlTEJ29B91B8Y362OBV5y+W4 4uWv+gddMJiqfFC2pV7qiKEO5ihj7fa8eKknKQ6eaMY+WlxWC8bxEr+Q9ca+RAP8LBWs WwkRVKMjBBfCLKynMDT7vYH5ylBULUjDR28fYMOVK4S8pvpx6sBNtQ/5ARP7pSwat+ap 1/h6rBldBYPInhmmCe8OcctqjF/bjNFiOVAFb64OSK6uZTO9kvodJD91BulyPT40pDtG 41FLDTCkgEB7yTZSAQc5tI9NxgRwmuh3Bf/Q5RSLUj8ndxigY1YtEQ5MH7cIixvwylVX y3WA== X-Gm-Message-State: AOJu0Yy03KXEqmZjvWvSIp2QAnAUe7o1bFBbK2Pr71n/7n+lIeHwKhpo bdvsumLK8NVk5saeTp1BzNH9+n0i3p/aBBPiBwoKO6YfuE5ziR5rop1h9RuF26EPe9SsY00D5SG SB/9uoI/mVcMXyNOusi8iMS4tE26FS6opDNvqnZ9zR7GboCIYwZGL1qsBD/xy4CW4gLhZngMP7F LFtXl+fSKM3eBjzFP6Di1YhuGpD50I8AcvgvtKgXPdkvpWCSE= X-Gm-Gg: Acq92OEfb2d8tCV5LQQV/TAhNTLvm4yi43/JYNraIikcwsSUFvlN5SGY/ZX8mt6/4Ph r8ks10ILNyMSYtf77vROl54rl8E3LYRRCr0ErcB5sn832CkaZ4SmxXr6iIU7riqVCQscHTxORMK V8tuRgdYIwWNWA5AWyesI4z4YgYBjmMrB0TMjnvddczLzihnGgjDdSEMlaegwrJsZ6koDyCBVIE m2EDWiLqq6DisPjNEzDhpKm42yi0nVWMFz5fJuyPGvWotPnB36culoKpCVXDyhT0YLqnjFiUeie mGzl+Bid6+xwSPCOccwjgkqSVw+tjyVLVcymv3JLZUVaxYzdhH/O3PGCnaiIayMVSD9aW7Dino7 miXHCz2tGuNJrdbTzxPnroVr4vIYfT31gwpP/XOIq X-Received: by 2002:a05:6000:2087:b0:45e:ee50:d066 with SMTP id ffacd0b85a97d-4606da57193mr269107f8f.6.1781215149140; Thu, 11 Jun 2026 14:59:09 -0700 (PDT) X-Received: by 2002:a05:6000:2087:b0:45e:ee50:d066 with SMTP id ffacd0b85a97d-4606da57193mr269080f8f.6.1781215148688; Thu, 11 Jun 2026 14:59:08 -0700 (PDT) Received: from localhost (19.81.93.209.dyn.plus.net. [209.93.81.19]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4606c0f50b9sm1996415f8f.22.2026.06.11.14.59.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2026 14:59:08 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/3] gdb: allow 'until' to work in outermost frame Date: Thu, 11 Jun 2026 22:59:03 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: <41fe591d58ba010fa771e80ca674b61e30feef2f.1780942441.git.aburgess@redhat.com> References: <41fe591d58ba010fa771e80ca674b61e30feef2f.1780942441.git.aburgess@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Ed1Mp4Ih83McUuF3dcCtS-MsubaFbpEtKOLvD9nr93w_1781215149 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 Series has expanded since V1! The previous iteration used program_space::entry_point_address_query to figure out which frame was the enty frame. But this frame is the entry frame within the main executable, not the actual entry frame for the whole inferior, i.e the entry frame for the run-time linker in a dynamically linked executable. That's why the test in the previous version needed to be compiled with the '-static' flag. I figured that this was just another bug in GDB, and started looking at how to fix this so that program_space::entry_point_address_query would return the actual entry address for the whole inferior. But I figure that for things like displaced stepping using the entry address of the executable probably makes the more sense, so then I started looking at ways we could make use of both possible entry address values. And that's what this series does. Patch #1 renames some functions ready for the later patches. Patch #2 adds a mechanism to access both entry address values. Patch #3 fixes 'until' using infrastructure from the previous patch. Thanks, Andrew --- Andrew Burgess (3): gdb: rename program_space::entry_point_address* functions gdb: introduce program_space::get_entry_point_info function gdb: allow 'until' to work in outermost frame gdb/NEWS | 7 + gdb/arc-tdep.c | 2 +- gdb/arch-utils.c | 2 +- gdb/doc/gdb.texinfo | 14 ++ gdb/frame.c | 36 +++- gdb/infcall.c | 2 +- gdb/linux-tdep.c | 2 +- gdb/progspace.c | 66 ++++++- gdb/progspace.h | 60 ++++++- gdb/solib-frv.c | 2 +- gdb/solib-svr4.c | 102 +++++++++++ gdb/solib-svr4.h | 1 + gdb/solib.h | 14 ++ gdb/testsuite/gdb.base/bt-after-starti.exp | 153 ++++++++++++++++ gdb/testsuite/gdb.base/until-in-entry-frame.c | 22 +++ .../gdb.base/until-in-entry-frame.exp | 163 ++++++++++++++++++ 16 files changed, 628 insertions(+), 20 deletions(-) create mode 100644 gdb/testsuite/gdb.base/bt-after-starti.exp create mode 100644 gdb/testsuite/gdb.base/until-in-entry-frame.c create mode 100644 gdb/testsuite/gdb.base/until-in-entry-frame.exp base-commit: be655796fa92c0059224f51e4599c854ffd7440f -- 2.25.4