Re: Is there a way to get a function's end address other than `disassemble`?

Simon Sobisch via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.