diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-12-13 22:34:33 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-01-20 14:48:57 -0500 |
commit | 1298c32f01b3ae90fb17665f9b9b01c932767fd5 (patch) | |
tree | f147eb6f022b0246e679858f89215a30976e5f17 /gdb/symtab.c | |
parent | b23bf9f7241caecc41127a5739dfb32788b041a6 (diff) | |
download | gdb-1298c32f01b3ae90fb17665f9b9b01c932767fd5.zip gdb-1298c32f01b3ae90fb17665f9b9b01c932767fd5.tar.gz gdb-1298c32f01b3ae90fb17665f9b9b01c932767fd5.tar.bz2 |
gdb: move call site types to call-site.h
I hesitated between putting the file in the dwarf2 directory (as
gdb/dwarf2/call-site.h) or in the common directory (as gdb/call-site.h).
The concept of call site is not DWARF-specific, another debug info
reader could provide this information. But as it is, the implementation
is a bit DWARF-specific, as one form it can take is a DWARF expression
and parameters can be defined using a DWARF register number. So I ended up
choosing to put it under dwarf2/. If another debug info reader ever
wants to provide call site information, we can introduce a layer of
abstraction between the "common" call site and the "dwarf2" call site.
The copyright start year comes from the date `struct call_site` was
introduced.
Change-Id: I1cd84aa581fbbf729edc91b20f7d7a6e0377014d
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index b344513..4cc0d023 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -18,6 +18,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "defs.h" +#include "dwarf2/call-site.h" #include "symtab.h" #include "gdbtypes.h" #include "gdbcore.h" |