diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-07-02 19:08:55 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-07-02 19:08:55 +0000 |
commit | 42f99ac23d53ee64774126aa640be47c2cbbd998 (patch) | |
tree | 9c535d93abfa32b8c0ad88d65fa4590c89436a08 /gdb/frame.h | |
parent | 07637366bc7098c631a8bb4aac1095132f5c4d80 (diff) | |
download | gdb-42f99ac23d53ee64774126aa640be47c2cbbd998.zip gdb-42f99ac23d53ee64774126aa640be47c2cbbd998.tar.gz gdb-42f99ac23d53ee64774126aa640be47c2cbbd998.tar.bz2 |
* frame.h (frame_address_in_block): New function.
* blockframe.c (frame_address_in_block): New function extracted
from get_frame_block().
(get_frame_block): Use frame_address_in_block().
(block_innermost_frame): Use frame_address_in_block() to match
the frame pc address against the block boundaries rather than
the frame pc directly. This prevents a failure when a frame pc
is actually a return-address pointing immediately after the end
of the given block.
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index d3bd2ab..20ffff0 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -250,6 +250,8 @@ extern struct symbol *get_frame_function (struct frame_info *); extern CORE_ADDR get_frame_pc (struct frame_info *); +extern CORE_ADDR frame_address_in_block (struct frame_info *); + extern CORE_ADDR get_pc_function_start (CORE_ADDR); extern struct block *block_for_pc (CORE_ADDR); |