public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/26990] New: [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
@ 2020-12-01 13:08 vries at gcc dot gnu.org
2020-12-04 12:37 ` [Bug testsuite/26990] " cvs-commit at gcc dot gnu.org
2020-12-04 12:40 ` vries at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-01 13:08 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=26990
Bug ID: 26990
Summary: [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
With target board unix/-m32, I see:
...
FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
FAIL: gdb.arch/amd64-gs_base.exp: print gs_base
FAIL: gdb.arch/amd64-gs_base.exp: info registers fs_base and gs_base with value
...
In more detail:
...
(gdb) print /x $fs_base^M
$1 = void^M
(gdb) FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
print /x $gs_base^M
$2 = void^M
(gdb) FAIL: gdb.arch/amd64-gs_base.exp: print gs_base
print $fs_base = 2^M
$3 = 2^M
(gdb) PASS: gdb.arch/amd64-gs_base.exp: set fs_base
print $gs_base = 3^M
$4 = 3^M
(gdb) PASS: gdb.arch/amd64-gs_base.exp: set gs_base
info register sys^M
orig_eax 0xffffffff -1^M
(gdb) FAIL: gdb.arch/amd64-gs_base.exp: info registers fs_base and gs_base with
value
...
Using maint print xml-tdesc, we can see the presence of fs_base for -m64:
...
$ gcc hello.c
$ gdb -batch a.out -ex start -ex "maint print xml-tdesc" \
| grep -i fs_base
<reg name="fs_base" bitsize="64" type="int" regnum="58"/>
$
...
and -m32:
...
$ gcc hello.c -m32
$ gdb -batch a.out -ex start -ex "maint print xml-tdesc" \
| grep -i fs_base
$
...
So, we should just make this unsupported for -m32, instead of failing.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/26990] [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
2020-12-01 13:08 [Bug testsuite/26990] New: [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base vries at gcc dot gnu.org
@ 2020-12-04 12:37 ` cvs-commit at gcc dot gnu.org
2020-12-04 12:40 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-04 12:37 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=26990
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=67748e0f666f0645d7f182e1365f4d9859e55f1d
commit 67748e0f666f0645d7f182e1365f4d9859e55f1d
Author: Tom de Vries <tdevries@suse.de>
Date: Fri Dec 4 13:36:48 2020 +0100
[gdb/testsuite] Make gdb.arch/amd64-gs_base.exp unsupported for i386
With target board unix/-m32 I run into:
...
(gdb) print /x $fs_base^M
$1 = void^M
(gdb) FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
...
The problem is that the fs_base register is not supported for i386.
Fix this by making the test unsupported if fs_base/gs_base don't show up in
info register sys output.
Tested on x86_64-linux.
gdb/testsuite/ChangeLog:
2020-12-04 Tom de Vries <tdevries@suse.de>
PR testsuite/26990
* gdb.arch/amd64-gs_base.exp: Handle -m32 where fs_base and gs_base
are unsupported.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug testsuite/26990] [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base
2020-12-01 13:08 [Bug testsuite/26990] New: [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base vries at gcc dot gnu.org
2020-12-04 12:37 ` [Bug testsuite/26990] " cvs-commit at gcc dot gnu.org
@ 2020-12-04 12:40 ` vries at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-04 12:40 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=26990
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |11.1
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
Patch with test-case update committed.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-12-04 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 13:08 [Bug testsuite/26990] New: [-m32] FAIL: gdb.arch/amd64-gs_base.exp: print fs_base vries at gcc dot gnu.org
2020-12-04 12:37 ` [Bug testsuite/26990] " cvs-commit at gcc dot gnu.org
2020-12-04 12:40 ` vries at gcc dot gnu.org
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).