From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cRzWM5klUWqF8QEAWB0awg (envelope-from ) for ; Fri, 10 Jul 2026 13:02:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1783702937; bh=9SuqakVlQ9hnf0sAmymhQIU3ntAcuYQUihP6Ou1XCSU=; h=Date:Subject:From:To:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=GRB+zdYkjXDYeOnE0ldrNtTLjkLZpQoYqirjVw+dbbqaXySZqz8eR2hqbjTBMLyo8 zOwpVFlPiiZjBugF5c8gOwk9UAP68iL+0+BFPk+4YsNih2hh0z4HHWeck0IoxwUyhO dHJYxT6CF4T6m2Jj969KAmbdA8iaT3e0RcPksXAo= Received: by simark.ca (Postfix, from userid 112) id D03B81E098; Fri, 10 Jul 2026 13:02:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Kg5ZMHi4; dkim-atps=neutral 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 F24121E070 for ; Fri, 10 Jul 2026 13:02:16 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33AD54BA2E0A for ; Fri, 10 Jul 2026 17:02:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 33AD54BA2E0A Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Kg5ZMHi4 Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id DBA2A4BA5436 for ; Fri, 10 Jul 2026 17:01:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DBA2A4BA5436 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DBA2A4BA5436 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783702913; cv=none; b=HFtBfXPReFcoyTbeAME1YWmo4jFIsyNhigcUaENJAEEp37X6kZEqKfQWxIt7osRbkVRb8NsP55lQvdWS1zcfQp3QMtqnW+MCcBjwcy5lnKm7C1jXdSVlaVpMCyvRjGYwwOO4zYUgQXf8EPrjh3Kpf44e5WhGQqB7JCzDecBxaEk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783702913; c=relaxed/simple; bh=9SuqakVlQ9hnf0sAmymhQIU3ntAcuYQUihP6Ou1XCSU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=KagVY2JtPkM1PaO2UJfTLPf8XEQBfUMdK7azyh9iqLWS7e3LbaffO755A1YuNt7PsfHSJZxNjcdJD4KZMt/zyICRD+eS6LUDaqKTddn8F/69KvHbCSydbmlRZaHPq0jUNNrOmL08uZ96xSY1tZZvUoGxqafD+Lkuunfr/pHp3+A= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Kg5ZMHi4 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DBA2A4BA5436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1783702913; bh=9SuqakVlQ9hnf0sAmymhQIU3ntAcuYQUihP6Ou1XCSU=; h=Date:Subject:From:To:References:In-Reply-To:From; b=Kg5ZMHi4l/WFFdQvBDQ3uJW1hZ/J78/Biznnm0Zo6qxvRZf6xsWnzRAzl075fG/BP xmcV6fh9FLw8qZLrWMPlsDqfVIy4T0ELSgFbdazWc0oCD35+BLBnpW/pXijqu7unFE auWilIQCRr561W3s/rckm3POkVA+LYnEGTtzHbh4= Received: by simark.ca (Postfix) id 7547A1E070; Fri, 10 Jul 2026 13:01:53 -0400 (EDT) Message-ID: Date: Fri, 10 Jul 2026 13:01:52 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv6 3/4] gdb: allow 'until' to work in outermost frame From: Simon Marchi To: Andrew Burgess , gdb-patches@sourceware.org References: <2a4ac1c0763d6ea9c3f97855b19ef91c07d35f19.1783693321.git.aburgess@redhat.com> <848a1bb5-78d6-4bc3-93b1-ec195b8615c9@simark.ca> Content-Language: fr In-Reply-To: <848a1bb5-78d6-4bc3-93b1-ec195b8615c9@simark.ca> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 7/10/26 1:00 PM, Simon Marchi wrote: > get_prev_frame_always is called quite often, inside_entry_func is going > to be called quite often (the other parts of the conjunction are often > going to be true), inside_entry_func calls > program_space::get_entry_point_info, which calls > solib_ops::inferior_entry_point_address. > svr4_solib_ops::inferior_entry_point_address is somewhat heavy (ELF > parsing and all). I wonder if the inferior entry point should be > cached, as it's not going to change often. > > I put a printf in svr4_solib_ops::inferior_entry_point_address, attached > to gnome-calculator (with debuginfod, so debug info for all the libs) > and ran a backtrace. For 10 frames, > svr4_solib_ops::inferior_entry_point_address was called 242 times. > > Perhaps it's premature optimization, but it just feels wrong. Ah well... I hadn't read the next patch yet. Simon