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

Andreas Schwab
2021-11-22T15:14:25Z

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.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."