gdb: move frame_info_ptr method implementations to frame-info.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 21 Oct 2022 20:06:59 +0000 (16:06 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 10 Nov 2022 16:33:16 +0000 (11:33 -0500)
commit04e2ac7b2a7c5fbc0afcf151aeb8a26415ad0fac
tree5d3a91c9eeedc7c7e5f745044e85e635406c9899
parent3dc9dde26d1c279e888d1fd0361f720e5a3721f3
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>
gdb/Makefile.in
gdb/frame-info.c [new file with mode: 0644]
gdb/frame-info.h
gdb/frame.c
gdb/frame.h