gdb: move call site types to call-site.h
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 14 Dec 2022 03:34:33 +0000 (22:34 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 20 Jan 2023 19:48:57 +0000 (14:48 -0500)
commit1298c32f01b3ae90fb17665f9b9b01c932767fd5
treef147eb6f022b0246e679858f89215a30976e5f17
parentb23bf9f7241caecc41127a5739dfb32788b041a6
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>
gdb/dwarf2/abbrev-cache.h
gdb/dwarf2/attribute.h
gdb/dwarf2/call-site.h [new file with mode: 0644]
gdb/dwarf2/comp-unit-head.h
gdb/dwarf2/cooked-index.h
gdb/dwarf2/expr.h
gdb/dwarf2/line-header.h
gdb/dwarf2/types.h
gdb/gdbtypes.h
gdb/symtab.c