From 04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 21 Oct 2022 16:06:59 -0400 Subject: 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 Reviewed-By: Tom Tromey --- gdb/frame.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/frame.c') 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_list; - /* See frame.h. */ unsigned int -- cgit v1.1