binutils-gdb/gdb/arch
Andrew Burgess d2f8a107b7 gdb/gdbserver: change shared set_tdesc_osabi to take gdb_osabi
There is a single declaration of set_tdesc_osabi that is shared
between gdbserver/ and gdb/, this declaration takes a 'const char *'
argument which is the string representing an osabi.

Then in gdb/ we have an overload of set_tdesc_osabi which takes an
'enum gdb_osabi'.

In this commit I change the shared set_tdesc_osabi to be the version
which takes an 'enum gdb_osabi', and I remove the version which takes
a 'const char *'.  All users of set_tdesc_osabi are updated to pass an
'enum gdb_osabi'.

The features/ code, which is generated from the xml files, requires a
new function to be added to osabi.{c,h} which can return a string
representation of an 'enum gdb_osabi'.  With that new function in
place the features/ code is regenerated.

This change is being made to support the next commit.  In the next
commit gdbserver will be updated to call set_tdesc_osabi in more
cases.  The problem is that gdbserver stores the osabi as a string.
The issue here is that a typo in the gdbserver/ code might go
unnoticed and result in gdbserver sending back an invalid osabi
string.

To fix this we want gdbserver to pass an 'enum gdb_osabi' to the
set_tdesc_osabi function.  With that requirement in place it seems to
make sense if all calls to set_tdesc_osabi pass an 'enum gdb_osabi'.

There should be no user visible changes after this commit.

Approved-By: Luis Machado <luis.machado@arm.com>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
2024-10-10 17:36:21 +01:00
..
aarch32.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
aarch32.h gdb/arm: Remove tpidruro register from non-FreeBSD target descriptions 2024-02-29 12:27:27 -03:00
aarch64-insn.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
aarch64-insn.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
aarch64-mte-linux.c gdb: AArch64: Support MTE on baremetal 2024-08-01 10:01:39 +01:00
aarch64-mte-linux.h gdb: AArch64: Support MTE on baremetal 2024-08-01 10:01:39 +01:00
aarch64-mte.c gdb: AArch64: Support MTE on baremetal 2024-08-01 10:01:39 +01:00
aarch64-mte.h gdb: AArch64: Support MTE on baremetal 2024-08-01 10:01:39 +01:00
aarch64-scalable-linux.c Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
aarch64-scalable-linux.h gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
aarch64.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
aarch64.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
amd64-linux-tdesc.c gdb/gdbserver: share x86/linux tdesc caching 2024-06-14 09:08:45 +01:00
amd64-linux-tdesc.h gdb/gdbserver: share some code relating to target description creation 2024-06-14 09:08:45 +01:00
amd64.c gdb/gdbserver: change shared set_tdesc_osabi to take gdb_osabi 2024-10-10 17:36:21 +01:00
amd64.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arc.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
arc.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arm-get-next-pcs.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
arm-get-next-pcs.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arm-linux.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
arm-linux.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
arm.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
arm.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
csky.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
csky.h Fix include guard typo 2024-04-17 07:31:58 -06:00
i386-linux-tdesc.c gdb/gdbserver: share x86/linux tdesc caching 2024-06-14 09:08:45 +01:00
i386-linux-tdesc.h gdb/gdbserver: share some code relating to target description creation 2024-06-14 09:08:45 +01:00
i386.c gdb/gdbserver: change shared set_tdesc_osabi to take gdb_osabi 2024-10-10 17:36:21 +01:00
i386.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
loongarch.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
loongarch.h gdb: LoongArch: Change LOONGARCH_FIRST_FP_REGNUM to 35 2024-03-02 19:07:04 +08:00
ppc-linux-common.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
ppc-linux-common.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
ppc-linux-tdesc.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
riscv.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
riscv.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
tic6x.c gdb/gdbserver: change shared set_tdesc_osabi to take gdb_osabi 2024-10-10 17:36:21 +01:00
tic6x.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
x86-linux-tdesc-features.c gdb, gdbserver, python, testsuite: Remove MPX. 2024-09-25 11:06:57 +00:00
x86-linux-tdesc-features.h gdb/gdbserver: share x86/linux tdesc caching 2024-06-14 09:08:45 +01:00
x86-linux-tdesc.h gdb/gdbserver: share x86/linux tdesc caching 2024-06-14 09:08:45 +01:00
xtensa.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00