From patchwork Wed Nov 30 14:20:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 18066 Received: (qmail 11021 invoked by alias); 30 Nov 2016 14:20:20 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 10390 invoked by uid 89); 30 Nov 2016 14:20:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=2238 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; Wed, 30 Nov 2016 14:20:19 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F149F90249; Wed, 30 Nov 2016 14:20:17 +0000 (UTC) Received: from blade.nx (ovpn-116-107.ams2.redhat.com [10.36.116.107]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAUEKGMQ007595; Wed, 30 Nov 2016 09:20:17 -0500 Received: by blade.nx (Postfix, from userid 1000) id 70C0E816A487; Wed, 30 Nov 2016 14:20:16 +0000 (GMT) Date: Wed, 30 Nov 2016 14:20:16 +0000 From: Gary Benson To: Walfred Tedeschi Cc: palves@redhat.com, eliz@gnu.org, brobecker@adacore.com, gdb-patches@sourceware.org Subject: Re: [PATCH 0/2] amd64: add fs_base and gs_base Message-ID: <20161130142016.GA12916@blade.nx> References: <1478166445-21370-1-git-send-email-walfred.tedeschi@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1478166445-21370-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes Hi Walfred, Walfred Tedeschi wrote: > The next two patches add Linux system registers fs_base and gs_base > in GDB and gdbserver. > > First commit align the gdbserver with GDB code in terms of > HAVE_STRUCT_USER_REGS_STRUCT_(GS|FS)_BASE. > > Second patch introduces the registers into GDB and gdbserver. I tried this with the Infinity stuff I'm doing today and it's working great. The only change I had to make was to add the new registers to amd64_dwarf_regmap with the patch below. Thanks, Gary diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index a3a1fde..d0450cc 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -223,8 +223,8 @@ static int amd64_dwarf_regmap[] = -1, /* Segment Base Address Registers. */ - -1, - -1, + AMD64_FSBASE_REGNUM, + AMD64_GSBASE_REGNUM, -1, -1,