From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98890 invoked by alias); 4 Nov 2015 14:55:03 -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 98881 invoked by uid 89); 4 Nov 2015 14:55:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 04 Nov 2015 14:55:02 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 658F929226; Wed, 4 Nov 2015 09:55:00 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RZ6YnN5qvwKe; Wed, 4 Nov 2015 09:55:00 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 3406028EE0; Wed, 4 Nov 2015 09:55:00 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id B5276446B0; Wed, 4 Nov 2015 06:54:58 -0800 (PST) Date: Wed, 04 Nov 2015 14:55:00 -0000 From: Joel Brobecker To: Walfred Tedeschi Cc: palves@redhat.com, gdb-patches@sourceware.org Subject: Re: [PATCH v1] Intel(R) MPX - Bound violation handling. Message-ID: <20151104145458.GK4009@adacore.com> References: <1445864086-4831-1-git-send-email-walfred.tedeschi@intel.com> <1445864086-4831-4-git-send-email-walfred.tedeschi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1445864086-4831-4-git-send-email-walfred.tedeschi@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00142.txt.bz2 > 2015-07-21 Walfred Tedeschi > > * amd64-linux-tdep.c (amd64_linux_init_abi_common): > Add handler for bound violation signal. > * gdbarch.sh (bound_violation_handler): New. > * i386-linux-tdep.c (i386_mpx_bound_violation_handler): New. > (i386_linux_init_abi): Use i386_mpx_bound_violation_handler. > * i386-linux-tdep.h (i386_mpx_bound_violation_handler) New. > * i386-tdep.c (i386_mpx_enabled): Add as external. > * i386-tdep.c (i386_mpx_enabled): Add as external. > * infrun.c (process_segmentation_faults): New. > (print_signal_received_reason): Use process_segmentation_faults. > > testsuite/gdb.arch > * i386-mpx-sigsegv.c: New. > * i386-mpx-sigsegv.exp: New. > * i386-mpx-simple_segv.c: New. > * i386-mpx-simple_segv.exp: New. This is not a full review (haven't had the time), but one question is nagging at me: How to do handle the case of older kernels/libc-s, where the info is not there? Does it look like you are just reading undefined memory? -- Joel