binutils-gdb/gdb/nat
Tom de Vries a92d031d7e [gdb/build] Fix x86_64 x32 build
A build error on x86_64 with x32 abi was reported here (
https://sourceware.org/pipermail/gdb/2021-November/049787.html ):
...
gdb/nat/amd64-linux-siginfo.c:280:42: error: \
  'struct compat_x32_siginfo_t::<unnamed union>::<unnamed>' has no member \
  named 'si_addr_bnd'
280 | #define cpt_si_lower _sifields._sigfault.si_addr_bnd._lower
| ^~~~~~~~~~~
gdb/nat/amd64-linux-siginfo.c:337:38: note: in expansion of macro 'cpt_si_lower'
337 | to->cpt_si_lower = from_ptrace.cpt_si_lower;
| ^~~~~~~~~~~~
...

The problem is that code added in commit d3d7d1ba3b "[gdb/tdep] Handle
si_addr_bnd in compat_siginfo_from_siginfo" doesn't compile on an x86_64 x32
setup, because compat_x32_siginfo_t doesn't have the si_addr_bnd fields.

Fix this conservatively by disabling the code for x32.

Tested on x86_64-linux.
2021-11-22 12:21:46 +01:00
..
aarch64-linux-hw-point.c Fix ARMv8.4 for hw watchpoint and breakpoint 2021-10-21 19:02:02 +00:00
aarch64-linux-hw-point.h Fix ARMv8.4 for hw watchpoint and breakpoint 2021-10-21 19:02:02 +00:00
aarch64-linux.c
aarch64-linux.h
aarch64-mte-linux-ptrace.c [AArch64] Fix include order for MTE 2021-04-09 11:36:55 -03:00
aarch64-mte-linux-ptrace.h
aarch64-sve-linux-ptrace.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
aarch64-sve-linux-ptrace.h
aarch64-sve-linux-sigcontext.h
amd64-linux-siginfo.c [gdb/build] Fix x86_64 x32 build 2021-11-22 12:21:46 +01:00
amd64-linux-siginfo.h
fork-inferior.c gdb, gdbserver: make target_waitstatus safe 2021-10-21 16:13:56 -04:00
fork-inferior.h
gdb_ptrace.h
gdb_thread_db.h
glibc_thread_db.h
linux-btrace.c
linux-btrace.h
linux-namespaces.c gdbsupport: make gdb_open_cloexec return scoped_fd 2021-09-30 15:21:48 -04:00
linux-namespaces.h
linux-nat.h
linux-osdata.c gdb/nat/linux-osdata.c: fix build on gcc-12 (string overfow) 2021-11-17 08:13:18 +00:00
linux-osdata.h
linux-personality.c Fix build on rhES5 2021-11-09 08:21:18 -07:00
linux-personality.h
linux-procfs.c Remove defaulted 'tid' parameter to ptid_t constructor 2021-09-23 09:30:54 -06:00
linux-procfs.h
linux-ptrace.c
linux-ptrace.h
linux-waitpid.c gdb, gdbserver: make status_to_str display the signal name 2021-05-10 12:13:36 -04:00
linux-waitpid.h gdb, gdbserver: make status_to_str return std::string 2021-05-08 21:07:20 -04:00
mips-linux-watch.c
mips-linux-watch.h
netbsd-nat.c
netbsd-nat.h
ppc-linux.c
ppc-linux.h
riscv-linux-tdesc.c
riscv-linux-tdesc.h
windows-nat.c gdb, gdbserver: make target_waitstatus safe 2021-10-21 16:13:56 -04:00
windows-nat.h Make get_image_name static 2021-04-30 10:22:24 -06:00
x86-cpuid.h
x86-dregs.c Use CORE_ADDR as return type from x86_dr_low_get_addr 2021-09-03 11:30:46 -06:00
x86-dregs.h
x86-gcc-cpuid.h
x86-linux-dregs.c
x86-linux-dregs.h
x86-linux.c
x86-linux.h