From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 47604 invoked by alias); 22 Jan 2016 15:36:58 -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 47593 invoked by uid 89); 22 Jan 2016 15:36:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=inconvenience, Hx-languages-length:1966, UD:gdb.arch, gdb.arch X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Jan 2016 15:36:56 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 22 Jan 2016 07:36:54 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 22 Jan 2016 07:36:53 -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 u0MEsNuS019999; Fri, 22 Jan 2016 14:54:23 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u0MEsN8O013209; Fri, 22 Jan 2016 15:54:23 +0100 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id u0MEsLHw013205; Fri, 22 Jan 2016 15:54:22 +0100 From: Walfred Tedeschi To: palves@redhat.com, eliz@gnu.org, brobecker@adacore.com Cc: gdb-patches@sourceware.org, Walfred Tedeschi Subject: [PATCH V5 0/5] Intel MPX bound violation support Date: Fri, 22 Jan 2016 15:36:00 -0000 Message-Id: <1453474456-13169-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-01/txt/msg00569.txt.bz2 Hello all, Thanks for the review! First 4 patches are preparation on the siginfo type and siginfo handling. Including the addition of new fields related to the bound violation. Last patch is the handler for the bound violation itself. >From V4 to V5: * GDB and gdbserver siginfo fixup was aproved (not present here) * Added Pedro's and Eli's feedback for all patches. * Changed documentation section for bound violations. * Changed bound violation output. Thanks Pedro and Eli for the feedback and sorry for submitting new revision without adressing the issues. Feedback e-mails ended up in not expected folder. :( Sorry again for any inconvenience. Thanks for the review and regards, -Fred Walfred Tedeschi (5): Preparation 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 ntel MPX bound violation handling gdb/NEWS | 15 ++ gdb/amd64-linux-tdep.c | 4 + gdb/doc/gdb.texinfo | 25 ++ gdb/gdbarch.c | 32 +++ gdb/gdbarch.h | 11 + gdb/gdbarch.sh | 6 + gdb/i386-linux-tdep.c | 54 ++++ 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 | 16 ++ gdb/nat/amd64-linux-siginfo.c | 312 ++++++++++++++++-------- gdb/nat/amd64-linux-siginfo.h | 16 +- gdb/testsuite/gdb.arch/i386-mpx-sigsegv.c | 120 +++++++++ gdb/testsuite/gdb.arch/i386-mpx-sigsegv.exp | 88 +++++++ gdb/testsuite/gdb.arch/i386-mpx-simple_segv.c | 66 +++++ gdb/testsuite/gdb.arch/i386-mpx-simple_segv.exp | 125 ++++++++++ 19 files changed, 862 insertions(+), 110 deletions(-) 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