gdb: move sect_offset and cu_offset to dwarf2/types.h
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 14 Dec 2022 03:34:32 +0000 (22:34 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 20 Jan 2023 19:48:56 +0000 (14:48 -0500)
commitb23bf9f7241caecc41127a5739dfb32788b041a6
tree8194b98fcf71be01e2c18f376367691c6e0c4a9d
parent83b6e1f1c52c632a7b554674306cc586e03f7855
gdb: move sect_offset and cu_offset to dwarf2/types.h

I want to move the call_site stuff out of gdbtypes.h, to a new header
file, to break some cyclic include problem.  The call_site stuff uses
cu_offset, also defined in gdbtypes.h, so cu_offset also needs to move
somewhere else (otherwise, call-site.h will need to include gdbtypes.h,
and we are back to square 1).  I could move cu_offset to the future new
file dwarf2/call-site.h, but it doesn't sound like a good place for it,
at cu_offset is not specific to call sites, it's used throughout
dwarf2/.  So, move it to its own file, dwarf2/types.h.  For now,
gdbtypes.h includes dwarf2/types.h, but that will be removed once the
call site stuff is moved to its own file.

Move sect_offset with it too.  sect_offset is not a DWARF-specific
concept, but for the moment it is only used in dwarf2/.

Change-Id: I1fd2a3b7b67dee789c4874244b044bde7db43d8e
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
gdb/dwarf2/types.h [new file with mode: 0644]
gdb/gdbtypes.h