This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Question] does GDB have a commands to get the end address of a function?


Hui Zhu <teawater@gmail.com> writes:

> Does GDB have an command to output the end address of a function?

The end address of a function is not well defined (and neither is the
beginning address of a function).  It is perfectly valid for two
functions to be interleaved in some way, or having their code spread out
in non-contiguous regions.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]