Bug in gdb.block_for_pc documentation?
Roman Popov
ripopov@gmail.com
Fri Dec 22 01:16:00 GMT 2017
Hi all,
Looks like there is a bug in docs:
*"Function: gdb.block_for_pc (pc)*
*Return the innermost gdb.Block containing the given pc value. If the block
cannot be found for the pc value specified, the function will return None."*
https://sourceware.org/gdb/current/onlinedocs/gdb/Blocks-In-Python.html#Blocks-In-Python
Instead of returning None it throws runtime exception:
gdb.block_for_pc(0)
>> RuntimeError: Cannot locate object file for block.
Thanks,
Roman
More information about the Gdb
mailing list