+2020-12-08 Tom de Vries <tdevries@suse.de>
+
+ * gdb.arch/amd64-gs_base.exp: Undo commit 67748e0f66, reimplement
+ using is_amd64_regs_target.
+
2020-12-08 Tom de Vries <tdevries@suse.de>
* gdb.ada/mi_task_arg.exp: Accept <optimized out> as valid value of
standard_testfile
-if { ![istarget "x86_64-*linux*"] } then {
+if { ![is_amd64_regs_target] } then {
verbose "Untested x86_64 fs_base and gs_base tests."
return
}
return -1
}
-# Test the presence of fs_base and gs_base on the system
-# register group and values.
-#
-set ws "\[\t \]+"
-set info_reg_out [multi_line "info register sys" \
- "fs_base${ws}$hex${ws}$decimal"\
- "gs_base${ws}$hex${ws}$decimal"\
- "orig_rax${ws}$hex${ws}\[-\]$decimal" ]
-set info_reg_out_m32 [multi_line "info register sys" \
- "orig_eax${ws}$hex${ws}\[-\]$decimal" ]
-
-set supported 0
-gdb_test_multiple "info register sys" "" {
- -re -wrap $info_reg_out {
- set supported 1
- }
- -re -wrap $info_reg_out_m32 {
- }
-}
-
-if { ! $supported } {
- unsupported "target does not support fs_base and gs_base"
- return -1
-}
-
gdb_test "print /x \$fs_base" "= $hex" "print fs_base"
gdb_test "print /x \$gs_base" "= $hex" "print gs_base"
# Test the presence of fs_base and gs_base on the system
# register group and values.
#
+set ws "\[\t \]+"
set info_reg_out [multi_line "info register sys" \
"fs_base${ws}0x2${ws}2"\
"gs_base${ws}0x3${ws}3"\