binutils-gdb/gdb/arch
Andrew Burgess 868883583e gdb/arch: assert that X86_XSTATE_MPX is not set for x32
While rebasing this series[1] past this commit:

  commit 4bb20a6244
  Date:   Wed Mar 20 04:13:18 2024 -0700

      gdbserver: Clear X86_XSTATE_MPX bits in xcr0 on x32

I worried that there could be other paths that might result in an xcr0
value which has X86_XSTATE_MPX set in x32 mode.  As everyone
eventually calls amd64_create_target_description to build their target
description, I figured we could assert in here that if X86_XSTATE_MPX
is set then we should not be an x32 target, this will uncover any
other bugs in this area.

I'm not currently able to build/run any x32 binaries, so I have no way
to test this, but the author of commit 4bb20a6244 did test this
series with that assert in place and didn't see any problems.

[1] https://inbox.sourceware.org/gdb-patches/cover.1714143669.git.aburgess@redhat.com

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31511

Approved-By: Felix Willgerodt <felix.willgerodt@intel.com>
2024-05-07 17:05:10 +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 Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
aarch64-mte-linux.h gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04: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.c gdb/arch: assert that X86_XSTATE_MPX is not set for x32 2024-05-07 17:05:10 +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.c gdb, gdbserver, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04: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, gdbsupport: remove includes of early headers 2024-03-26 21:13:22 -04:00
tic6x.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00
xtensa.h Update copyright year range in header of all files managed by GDB 2024-01-12 15:49:57 +00:00