public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix gdb.arch/amd64-gs_base.exp test on FreeBSD
@ 2023-02-17 20:02 John Baldwin
  2023-02-17 20:02 ` [PATCH 1/2] gdb.arch/amd64-gs_base.exp: Support non-Linux John Baldwin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Baldwin @ 2023-02-17 20:02 UTC (permalink / raw)
  To: gdb-patches

The gdb.arch/amd64-gs_base.exp test was failing on FreeBSD as it had
some Linux-specific assumptions.  While looking at this I also found
that Linux/amd64 treats the fs_base and gs_base as "system" registers,
but FreeBSD did not.  I originally started by moving the logic from
Linux/amd64 for these registers into i386_register_reggroup_p so it
would be consistent across all OS ABIs, but I think it would be better
to treat these registers as general registers instead which is what
patch 2 does.

John Baldwin (2):
  gdb.arch/amd64-gs_base.exp: Support non-Linux.
  amd64-linux-tdep: Don't treat fs_base and gs_base as system registers.

 gdb/amd64-linux-tdep.c                   |  4 +---
 gdb/testsuite/gdb.arch/amd64-gs_base.exp | 10 ++++------
 2 files changed, 5 insertions(+), 9 deletions(-)

-- 
2.38.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-03-03 19:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-17 20:02 [PATCH 0/2] Fix gdb.arch/amd64-gs_base.exp test on FreeBSD John Baldwin
2023-02-17 20:02 ` [PATCH 1/2] gdb.arch/amd64-gs_base.exp: Support non-Linux John Baldwin
2023-02-17 20:02 ` [PATCH 2/2] amd64-linux-tdep: Don't treat fs_base and gs_base as system registers John Baldwin
2023-03-03 17:58 ` [PING] [PATCH 0/2] Fix gdb.arch/amd64-gs_base.exp test on FreeBSD John Baldwin
2023-03-03 19:04   ` Tom Tromey

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).