From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76685 invoked by alias); 26 Oct 2015 12:55:16 -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 76631 invoked by uid 89); 26 Oct 2015 12:55:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 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; Mon, 26 Oct 2015 12:55:14 +0000 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 26 Oct 2015 05:55:10 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 26 Oct 2015 05:55:10 -0700 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 t9QCt7hT014747; Mon, 26 Oct 2015 12:55:08 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id t9QCt74m004889; Mon, 26 Oct 2015 13:55:07 +0100 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id t9QCt7SK004885; Mon, 26 Oct 2015 13:55:07 +0100 From: Walfred Tedeschi To: palves@redhat.com, brobecker@adacore.com Cc: gdb-patches@sourceware.org, Walfred Tedeschi Subject: [PATCH obv] Fix non stopping breakpoint on newer compilers. Date: Mon, 26 Oct 2015 16:25:00 -0000 Message-Id: <1445864086-4831-2-git-send-email-walfred.tedeschi@intel.com> In-Reply-To: <1445864086-4831-1-git-send-email-walfred.tedeschi@intel.com> References: <1445864086-4831-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00561.txt.bz2 The breakpoint presented in the return statement was not activated while compiling the test with gcc 4.9.2. Added a dummy statement to allow the breakpoint again. 2015-10-14 Walfred Tedeschi gdb/testsuite: * i386-mpx-map.c (foo): Add dummy statement to trigger breakpoint. --- gdb/testsuite/gdb.arch/i386-mpx-map.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.arch/i386-mpx-map.c b/gdb/testsuite/gdb.arch/i386-mpx-map.c index 8a9094c..ee7f11b 100644 --- a/gdb/testsuite/gdb.arch/i386-mpx-map.c +++ b/gdb/testsuite/gdb.arch/i386-mpx-map.c @@ -70,8 +70,9 @@ foo (T *p) #if defined __GNUC__ && !defined __INTEL_COMPILER __bnd_store_ptr_bounds (x, &x); #endif - - return; /* after-assign */ + /* Dummy assign. */ + x = x + 1; /* after-assign */ + return; } int -- 2.1.4