From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91504 invoked by alias); 8 Jun 2017 09:15:52 -0000 Mailing-List: contact infinity-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: infinity-owner@sourceware.org Received: (qmail 82595 invoked by uid 89); 8 Jun 2017 09:15:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-Spam-User: qpsmtpd, 2 recipients X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Jun 2017 09:15:43 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3CA04C04B310; Thu, 8 Jun 2017 09:15:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3CA04C04B310 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=gbenson@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 3CA04C04B310 Received: from blade.nx (unknown [10.33.36.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id EE5E389C5E; Thu, 8 Jun 2017 09:15:45 +0000 (UTC) Received: from blade.com (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 943CA8102756; Thu, 8 Jun 2017 10:15:44 +0100 (BST) From: Gary Benson 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 Message-Id: <1496913338-22195-2-git-send-email-gbenson@redhat.com> In-Reply-To: <1496913338-22195-1-git-send-email-gbenson@redhat.com> References: <1496913338-22195-1-git-send-email-gbenson@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 08 Jun 2017 09:15:46 +0000 (UTC) X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00012.txt.bz2 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