]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/frame.h
* frame.h (frame_address_in_block): New function.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 2 Jul 2002 19:08:55 +0000 (19:08 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 2 Jul 2002 19:08:55 +0000 (19:08 +0000)
commit42f99ac23d53ee64774126aa640be47c2cbbd998
tree9c535d93abfa32b8c0ad88d65fa4590c89436a08
parent07637366bc7098c631a8bb4aac1095132f5c4d80
    * 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.
gdb/ChangeLog
gdb/blockframe.c
gdb/frame.h