diff options
Diffstat (limited to 'gdb/blockframe.c')
-rw-r--r-- | gdb/blockframe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/blockframe.c b/gdb/blockframe.c index b9aaf54..5bc5930 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -58,10 +58,13 @@ struct block * get_frame_block (struct frame_info *frame, CORE_ADDR *addr_in_block) { - const CORE_ADDR pc = get_frame_address_in_block (frame); + CORE_ADDR pc; struct block *bl; int inline_count; + if (!get_frame_address_in_block_if_available (frame, &pc)) + return NULL; + if (addr_in_block) *addr_in_block = pc; |