public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: John Baldwin <jhb@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] amd64-linux-tdep: Don't treat fs_base and gs_base as system registers. Date: Tue, 7 Mar 2023 00:50:46 +0000 (GMT) [thread overview] Message-ID: <20230307005046.C971038582A3@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3625712636b1411d2b980217e7dd1ca8a4c8c502 commit 3625712636b1411d2b980217e7dd1ca8a4c8c502 Author: John Baldwin <jhb@FreeBSD.org> Date: Mon Mar 6 16:47:03 2023 -0800 amd64-linux-tdep: Don't treat fs_base and gs_base as system registers. These registers can be changed directly in userspace, and similar registers to support TLS on other architectures (tpidr* on ARM and AArch64, tp on RISC-V) are treated as general purpose registers. Reviewed-By: Tom Tromey <tom@tromey.com> Diff: --- gdb/amd64-linux-tdep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index e9181649ec8..cbbac1a0c64 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -281,9 +281,7 @@ static int amd64_linux_register_reggroup_p (struct gdbarch *gdbarch, int regnum, const struct reggroup *group) { - if (regnum == AMD64_LINUX_ORIG_RAX_REGNUM - || regnum == AMD64_FSBASE_REGNUM - || regnum == AMD64_GSBASE_REGNUM) + if (regnum == AMD64_LINUX_ORIG_RAX_REGNUM) return (group == system_reggroup || group == save_reggroup || group == restore_reggroup);
reply other threads:[~2023-03-07 0:50 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230307005046.C971038582A3@sourceware.org \ --to=jhb@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).