mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
gdb, gdbserver, python, testsuite: Remove MPX.
GDB deprecated the commands "show/set mpx bound" in GDB 15.1, as Intel listed Intel(R) Memory Protection Extensions (MPX) as removed in 2019. MPX is also deprecated in gcc (since v9.1), the linux kernel (since v5.6) and glibc (since v2.35). Let's now remove MPX support in GDB completely. This includes the removal of: - MPX functionality including register support - deprecated mpx commands - i386 and amd64 implementation of the hooks report_signal_info and get_siginfo_type - tests - and pretty printer. We keep MPX register numbers to not break compatibility with old gdbservers. Approved-By: Felix Willgerodt <felix.willgerodt@intel.com>
This commit is contained in:
@@ -55,7 +55,7 @@ gdb_test "print flt" " = x=<42> y=<43>" \
|
||||
gdb_test "print ss" " = a=<a=<1> b=<$hex>> b=<a=<2> b=<$hex>>" \
|
||||
"print ss enabled #1"
|
||||
|
||||
set num_pp 7
|
||||
set num_pp 6
|
||||
|
||||
gdb_test "disable pretty-printer" \
|
||||
"$num_pp printers disabled.*0 of $num_pp printers enabled"
|
||||
@@ -75,7 +75,7 @@ gdb_test "disable pretty-printer global lookup_function_lookup_test" \
|
||||
"1 printer disabled.*[expr $num_pp - 1] of $num_pp printers enabled"
|
||||
|
||||
gdb_test "disable pretty-printer global pp-test;.*" \
|
||||
"[expr $num_pp - 2] printers disabled.*1 of $num_pp printers enabled"
|
||||
"[expr 5] printers disabled.*0 of $num_pp printers enabled"
|
||||
|
||||
gdb_test "info pretty-printer global .*function" \
|
||||
{.*function_lookup_test \[disabled\].*} \
|
||||
@@ -92,13 +92,13 @@ gdb_test "print ss" " = {a = {a = 1, b = $hex}, b = {a = 2, b = $hex}}" \
|
||||
"print ss disabled"
|
||||
|
||||
gdb_test "enable pretty-printer global lookup_function_lookup_test" \
|
||||
"1 printer enabled.*2 of $num_pp printers enabled"
|
||||
"1 printer enabled.*1 of $num_pp printers enabled"
|
||||
|
||||
# This doesn't enable any printers because each subprinter in the collection
|
||||
# is still individually disabled. But this is still needed, to enable the
|
||||
# collection itself.
|
||||
gdb_test "enable pretty-printer global pp-test" \
|
||||
"0 printers enabled.*2 of $num_pp printers enabled"
|
||||
"0 printers enabled.*1 of $num_pp printers enabled"
|
||||
|
||||
gdb_test "enable pretty-printer global pp-test;.*ss.*" \
|
||||
"2 printers enabled.*[expr $num_pp - 3] of $num_pp printers enabled"
|
||||
|
||||
Reference in New Issue
Block a user