public inbox for infinity@sourceware.org
 help / color / mirror / Atom feed
From: Gary Benson <gbenson@redhat.com>
To: gdb-patches@sourceware.org
Cc: infinity@sourceware.org
Subject: [RFC 1/5] Add FS_BASE and GS_BASE to DWARF register table on amd64
Date: Thu, 08 Jun 2017 09:15:00 -0000	[thread overview]
Message-ID: <1496913338-22195-2-git-send-email-gbenson@redhat.com> (raw)
In-Reply-To: <1496913338-22195-1-git-send-email-gbenson@redhat.com>

This commit allows the registers FS_BASE and GS_BASE to be accessed
from DWARF on amd64 systems.

gdb/ChangeLog:

	* amd64-tdep.c (amd64_dwarf_regmap): Add AMD64_FSBASE_REGNUM
	and AMD64_GSBASE_REGNUM.
---
 gdb/ChangeLog    | 5 +++++
 gdb/amd64-tdep.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index 9ff7dfc..437bbac 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -228,8 +228,8 @@ static int amd64_dwarf_regmap[] =
   -1,
 
   /* Segment Base Address Registers.  */
-  -1,
-  -1,
+  AMD64_FSBASE_REGNUM,
+  AMD64_GSBASE_REGNUM,
   -1,
   -1,
 
-- 
1.8.3.1

  parent reply	other threads:[~2017-06-08  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-08  9:15 [RFC 0/5] New proc_service functionality for Infinity Gary Benson
2017-06-08  9:15 ` [RFC 2/5] Add NT_GNU_INFINITY Gary Benson
2017-06-08  9:15 ` Gary Benson [this message]
2017-06-08  9:15 ` [RFC 3/5] Support ELF Infinity notes Gary Benson
2017-06-08  9:24 ` [RFC 5/5] Implement Infinity proc_service functions in GDB Gary Benson
2017-06-08  9:24 ` [RFC 4/5] Declare Infinity proc_service functions in gdb_proc_service.h Gary Benson

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=1496913338-22195-2-git-send-email-gbenson@redhat.com \
    --to=gbenson@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=infinity@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: link
Be 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).