From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67617 invoked by alias); 27 Jun 2017 22:50:59 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 67604 invoked by uid 89); 27 Jun 2017 22:50:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy= X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Jun 2017 22:50:56 +0000 Received: from ralph.baldwin.cx.com (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id C9E6710AF01 for ; Tue, 27 Jun 2017 18:50:54 -0400 (EDT) From: John Baldwin To: gdb-patches@sourceware.org Subject: [PATCH 0/2] Support fs_base and gs_base for native FreeBSD/amd64 Date: Tue, 27 Jun 2017 22:50:00 -0000 Message-Id: <20170627224948.99138-1-jhb@FreeBSD.org> X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00752.txt.bz2 I did not add the fs_base and gs_base registers to the x32 descriptions since I'm not aware of a platform supporting x32 other than Linux. On the other hand, I wonder if we shouldn't just add fs_base and gs_base to the "core" descriptions alongside "fs" and "gs" rather than using a separate feature if they are always going to be present. The manual dependencies for the various x86 regformat data files have several inconsistencies (missing dependencies or in some cases wrong dependencies), but I didn't do a fixup of those since Yao's patches are going to replace all that anyway. John Baldwin (2): Include the fs_base and gs_base registers in amd64 target descriptions. Support the fs_base and gs_base registers on FreeBSD/amd64 native processes. gdb/ChangeLog | 32 ++++ gdb/amd64-bsd-nat.c | 54 +++++++ gdb/features/Makefile | 14 +- gdb/features/i386/amd64-avx-avx512.c | 180 +++++++++++---------- gdb/features/i386/amd64-avx-avx512.xml | 1 + gdb/features/i386/amd64-avx-mpx-avx512-pku.c | 194 ++++++++++++----------- gdb/features/i386/amd64-avx-mpx-avx512-pku.xml | 1 + gdb/features/i386/amd64-avx-mpx.c | 48 +++--- gdb/features/i386/amd64-avx-mpx.xml | 1 + gdb/features/i386/amd64-avx.c | 36 +++-- gdb/features/i386/amd64-avx.xml | 1 + gdb/features/i386/amd64-mpx.c | 16 +- gdb/features/i386/amd64-mpx.xml | 1 + gdb/features/i386/amd64.c | 4 + gdb/features/i386/amd64.xml | 1 + gdb/regformats/i386/amd64-avx-avx512.dat | 2 + gdb/regformats/i386/amd64-avx-mpx-avx512-pku.dat | 1 - gdb/regformats/i386/amd64-avx-mpx.dat | 2 + gdb/regformats/i386/amd64-avx.dat | 2 + gdb/regformats/i386/amd64-mpx.dat | 2 + gdb/regformats/i386/amd64.dat | 2 + 21 files changed, 361 insertions(+), 234 deletions(-) -- 2.11.0