public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb.arch/amd64-gs_base.exp: Support non-Linux.
@ 2023-03-07 0:50 John Baldwin
0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2023-03-07 0:50 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b1453f150c08b31e9c057224e523a721958fde02
commit b1453f150c08b31e9c057224e523a721958fde02
Author: John Baldwin <jhb@FreeBSD.org>
Date: Mon Mar 6 16:47:03 2023 -0800
gdb.arch/amd64-gs_base.exp: Support non-Linux.
The orig_rax pseudo-register is Linux-specific and isn't relevant to
this test. The fs_base and gs_base registers are also not treated as
system registers in other OS ABIs. This allows the test to pass on
FreeBSD.
Reviewed-By: Tom Tromey <tom@tromey.com>
Diff:
---
gdb/testsuite/gdb.arch/amd64-gs_base.exp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/amd64-gs_base.exp b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
index a60e1dbe7f4..083c7c9fe1f 100644
--- a/gdb/testsuite/gdb.arch/amd64-gs_base.exp
+++ b/gdb/testsuite/gdb.arch/amd64-gs_base.exp
@@ -32,14 +32,12 @@ gdb_test "print /x \$gs_base" "= $hex" "print gs_base"
gdb_test "print \$fs_base = 2" "= 2" "set fs_base"
gdb_test "print \$gs_base = 3" "= 3" "set gs_base"
-# Test the presence of fs_base and gs_base on the system
-# register group and values.
+# Test the fs_base and gs_base values.
#
set ws "\[\t \]+"
-set info_reg_out [multi_line "info register sys" \
+set info_reg_out [multi_line "info register fs_base gs_base" \
"fs_base${ws}0x2${ws}2"\
- "gs_base${ws}0x3${ws}3"\
- "orig_rax${ws}$hex${ws}\[-\]$decimal" ]
+ "gs_base${ws}0x3${ws}3" ]
-gdb_test "info register sys" $info_reg_out\
+gdb_test "info register fs_base gs_base" $info_reg_out\
"info registers fs_base and gs_base with value"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-07 0:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 0:50 [binutils-gdb] gdb.arch/amd64-gs_base.exp: Support non-Linux John Baldwin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).