diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-10-21 16:06:59 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-11-10 11:33:16 -0500 |
commit | 04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac (patch) | |
tree | 5d3a91c9eeedc7c7e5f745044e85e635406c9899 /gdb/frame.h | |
parent | 3dc9dde26d1c279e888d1fd0361f720e5a3721f3 (diff) | |
download | gdb-04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac.zip gdb-04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac.tar.gz gdb-04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac.tar.bz2 |
gdb: move frame_info_ptr method implementations to frame-info.c
I don't see any particular reason why the implementations of the
frame_info_ptr object are in the header file. It only seems to add some
complexity. Since we can't include frame.h in frame-info.h, we have to
add declarations of functions defined in frame.c, in frame-info.h. By
moving the implementations to a new frame-info.c, we can avoid that.
Change-Id: I435c828f81b8a3392c43ef018af31effddf6be9c
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Reviewed-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/frame.h')
-rw-r--r-- | gdb/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 0a142ad..6b841fd 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -280,6 +280,10 @@ extern frame_info_ptr get_next_frame_sentinel_okay (frame_info_ptr); frame. */ extern frame_info_ptr get_prev_frame_always (frame_info_ptr); +/* Given a frame's ID, relocate the frame. Returns NULL if the frame + is not found. */ +extern frame_info_ptr frame_find_by_id (frame_id id); + /* Base attributes of a frame: */ /* The frame's `resume' address. Where the program will resume in |