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]

Bug in gdb.block_for_pc documentation?


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


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