aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorSchimpe, Christina <christina.schimpe@intel.com>2024-03-05 15:14:53 +0000
committerSchimpe, Christina <christina.schimpe@intel.com>2024-03-12 13:54:29 +0000
commit7650ea38908e98a5823a334286813eca2ff5719e (patch)
tree3a5d9c8ca004b3983f0abaa04b4921916a0c9709 /gdb/i386-tdep.c
parent272acb42cfc4e64af4f702f24fbc1de078372c38 (diff)
downloadgdb-7650ea38908e98a5823a334286813eca2ff5719e.zip
gdb-7650ea38908e98a5823a334286813eca2ff5719e.tar.gz
gdb-7650ea38908e98a5823a334286813eca2ff5719e.tar.bz2
gdb: Deprecate MPX commands.
This patch deprecates the MPX commands "show/set mpx bound". Intel listed Intel(R) Memory Protection Extensions (MPX) as removed in 2019. Following gcc v9.1, the linux kernel v5.6 and glibc v2.35, deprecate MPX in GDB.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index b487a3f..0d4e30b 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -9132,17 +9132,19 @@ is \"default\"."),
/* Add "bound" command for the show mpx commands list. */
- add_cmd ("bound", no_class, i386_mpx_info_bounds,
+ cmd_list_element *c = add_cmd ("bound", no_class, i386_mpx_info_bounds,
"Show the memory bounds for a given array/pointer storage\
in the bound table.",
&mpx_show_cmdlist);
+ deprecate_cmd (c, nullptr);
/* Add "bound" command for the set mpx commands list. */
- add_cmd ("bound", no_class, i386_mpx_set_bounds,
+ c = add_cmd ("bound", no_class, i386_mpx_set_bounds,
"Set the memory bounds for a given array/pointer storage\
in the bound table.",
&mpx_set_cmdlist);
+ deprecate_cmd (c, nullptr);
gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_SVR4,
i386_svr4_init_abi);