From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94227 invoked by alias); 21 Jan 2016 14:48:49 -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 94199 invoked by uid 89); 21 Jan 2016 14:48:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*r:sk:wtedesc, 431, 852, eliminated X-HELO: mga01.intel.com Received: from mga01.intel.com (HELO mga01.intel.com) (192.55.52.88) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Jan 2016 14:48:47 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 21 Jan 2016 06:48:46 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 21 Jan 2016 06:48:45 -0800 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u0LEmhcg016882; Thu, 21 Jan 2016 14:48:43 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u0LEmhZg006785; Thu, 21 Jan 2016 15:48:43 +0100 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id u0LEmgEd006781; Thu, 21 Jan 2016 15:48:42 +0100 From: Walfred Tedeschi To: palves@redhat.com, eliz@gnu.org, brobecker@adacore.com Cc: gdb-patches@sourceware.org, Walfred Tedeschi Subject: [PATCH V4 0/6] Intel MPX bound violation support Date: Thu, 21 Jan 2016 14:48:00 -0000 Message-Id: <1453387705-6597-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00523.txt.bz2 Intel MPX bound violation support. First 5 patches of the series are preparation for the bound violation handler. Preparation: Fixup implementation for GDB and gdbserver of siginfo types for x32 and 32bits inferior running on 64bits are merged. It was added a simple way to add fields in the siginfo structure for all architectures. For i386/amd64 the dependency on the siginfo where GDB/gdbserver for the usage and display was eliminated. Now GDB descriptions of this type are enough for display Bound violation information can be seen in the last commit of the series. >From V3 to V4: * Changed changelog and added Pedro's comments on 1/6. * Added Pedro's feedback on 3/6. * News is added into 6/6. Thanks for the review and regards, -Fred Walfred Tedeschi (6): Merge gdb and gdbserver implementations for siginfo Prepararion for new siginfo on Linux. Use linux_get_siginfo_type_with_fields for x86. Add bound related fields to the siginfo structure. Adaptation of siginfo fixup for the new bnd fields. Intel MPX bound violation handling. gdb/Makefile.in | 6 +- gdb/NEWS | 15 + gdb/amd64-linux-nat.c | 431 +----------------- gdb/amd64-linux-tdep.c | 4 + gdb/config/i386/linux64.mh | 2 +- gdb/doc/gdb.texinfo | 51 +++ gdb/gdbarch.c | 32 ++ gdb/gdbarch.h | 11 + gdb/gdbarch.sh | 6 + gdb/gdbserver/Makefile.in | 3 + gdb/gdbserver/configure.srv | 4 +- gdb/gdbserver/linux-x86-low.c | 423 +---------------- gdb/i386-linux-tdep.c | 53 +++ gdb/i386-linux-tdep.h | 8 + gdb/i386-tdep.c | 4 +- gdb/i386-tdep.h | 2 + gdb/infrun.c | 34 ++ gdb/linux-tdep.c | 34 +- gdb/linux-tdep.h | 14 + gdb/nat/amd64-linux-siginfo.c | 574 ++++++++++++++++++++++++ gdb/nat/amd64-linux-siginfo.h | 56 +++ gdb/testsuite/gdb.arch/i386-mpx-sigsegv.c | 120 +++++ gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp | 86 ++++ gdb/testsuite/gdb.arch/i386-mpx-simple_segv.c | 66 +++ gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp | 129 ++++++ 25 files changed, 1316 insertions(+), 852 deletions(-) create mode 100644 gdb/nat/amd64-linux-siginfo.c create mode 100644 gdb/nat/amd64-linux-siginfo.h create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-sigsegv.c create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-simple_segv.c create mode 100644 gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp -- 2.1.4