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.c | |
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.c')
-rw-r--r-- | gdb/frame.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index 14f9668..c8c4ec8 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -19,6 +19,7 @@ #include "defs.h" #include "frame.h" +#include "frame-info.h" #include "target.h" #include "value.h" #include "inferior.h" /* for inferior_ptid */ @@ -56,9 +57,6 @@ static frame_info *sentinel_frame; /* Number of calls to reinit_frame_cache. */ static unsigned int frame_cache_generation = 0; -/* See frame-info.h. */ -intrusive_list<frame_info_ptr> frame_info_ptr::frame_list; - /* See frame.h. */ unsigned int |