From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AFXbKbO0m2EdfgAAWB0awg (envelope-from ) for ; Mon, 22 Nov 2021 10:18:11 -0500 Received: by simark.ca (Postfix, from userid 112) id A70211F0CE; Mon, 22 Nov 2021 10:18:11 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 3B0521E940 for ; Mon, 22 Nov 2021 10:18:11 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3E493858426 for ; Mon, 22 Nov 2021 15:18:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3E493858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1637594290; bh=ACDrGGcNJxKN+JNQo7CTATUWrPDY5F0cUz8Vrm/cOsI=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=w9/BnWZE7/PwrAmwohm76BiQoum/VC8bHBKqTI9tPPU3RWUrpSlf0R/aMpkFEmir1 H9KsqXhvPiwb5bPLgrDvfGQw6P+D8sDZKJMaujPHDNxnr5uWTG0oSUiT8kZReqbc2R yjtMnGg+y7gqZcpyIddVRgmGX0QK7y222pLSkASQ= Received: from eggs.gnu.org (eggs.gnu.org [209.51.188.92]) by sourceware.org (Postfix) with ESMTPS id 62A6F385781D for ; Mon, 22 Nov 2021 15:17:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 62A6F385781D Received: from [2001:470:142:3::e] (port=37070 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mpB4R-0002qF-S7; Mon, 22 Nov 2021 10:17:27 -0500 Received: from ip5f5a8896.dynamic.kabel-deutschland.de ([95.90.136.150]:56891 helo=[192.168.111.41]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mpB4R-0001PZ-NB; Mon, 22 Nov 2021 10:17:27 -0500 Message-ID: <119947dd-d3cc-3e1d-7f6c-2747d40f3f2d@gnu.org> Date: Mon, 22 Nov 2021 16:17:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: Is there a way to get a function's end address other than `disassemble`? Content-Language: en-US To: Andreas Schwab , Simon Sobisch via Gdb References: <60c53fa8bf160533a2eddf1da280eb50c7461a6a.camel@fit.cvut.cz> <87fsrop6io.fsf@igel.home> In-Reply-To: <87fsrop6io.fsf@igel.home> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Sobisch via Gdb Reply-To: Simon Sobisch Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Am 22.11.2021 um 16:14 schrieb Andreas Schwab: > On Nov 22 2021, Simon Sobisch via Gdb wrote: > >> `info address func_name` will show the *start address* of the given >> function, but is there any built-in way to get the *end address* other >> than executing the `disassemble` command? > > The end address of a function isn't well defined. Part of the code > could be split off into a separate section, for example. > > Even the start address isn't well defined. The entry address does not > have to point to the lowest address of the function's code. > > Andreas. > That's an interesting point. Does this mean that `disassemble` may not show the complete function, too? If it does - how to get the correct function ranges(!) as `disassemble` does? Simon