From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1936) id B7F4A3858C66; Tue, 7 Mar 2023 00:50:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7F4A3858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678150241; bh=Y/I4wHBoH7H2dJENOuDjUYzWV0hBRVlzl31TNd4bBUk=; h=From:To:Subject:Date:From; b=ROWE+mw2JDbwxhBgiTzo8yNUveL/eDYF7iEkhcdhwB9y4LWM8Sm/qjajTaJMZ1fAR kH1QroFXYOCw+jMVZ2sfQtOclQKufcCCubGkenEbMJMpmwqhQXQFHPalUXkgk86ntR /D6jyBNicWSVIW+nUEcAPbpoYFa5U56X2MwJ0E38= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: John Baldwin To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb.arch/amd64-gs_base.exp: Support non-Linux. X-Act-Checkin: binutils-gdb X-Git-Author: John Baldwin X-Git-Refname: refs/heads/master X-Git-Oldrev: a06baa832c9be15ddc397336e093c657f347565c X-Git-Newrev: b1453f150c08b31e9c057224e523a721958fde02 Message-Id: <20230307005041.B7F4A3858C66@sourceware.org> Date: Tue, 7 Mar 2023 00:50:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Db1453f150c08= b31e9c057224e523a721958fde02 commit b1453f150c08b31e9c057224e523a721958fde02 Author: John Baldwin Date: Mon Mar 6 16:47:03 2023 -0800 gdb.arch/amd64-gs_base.exp: Support non-Linux. =20 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. =20 Reviewed-By: Tom Tromey 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.a= rch/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" "=3D $hex" "print gs_base" gdb_test "print \$fs_base =3D 2" "=3D 2" "set fs_base" gdb_test "print \$gs_base =3D 3" "=3D 3" "set gs_base" =20 -# 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" ] =20 -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"