From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38988 invoked by alias); 18 Dec 2015 13:44:37 -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 38425 invoked by uid 89); 18 Dec 2015 13:44:37 -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,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=signaled, Hx-languages-length:1290, H*r:sk:wtedesc, notifying 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; Fri, 18 Dec 2015 13:44:36 +0000 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 18 Dec 2015 05:44:35 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 18 Dec 2015 05:44:33 -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 tBIDiXcR032410; Fri, 18 Dec 2015 13:44:33 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id tBIDiWT6027978; Fri, 18 Dec 2015 14:44:32 +0100 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id tBIDiVwb027974; Fri, 18 Dec 2015 14:44:32 +0100 From: Walfred Tedeschi To: palves@redhat.com, brobecker@adacore.com Cc: gdb-patches@sourceware.org, Walfred Tedeschi Subject: [PATCH V2 1/2] Bound violation handling preparation. Date: Fri, 18 Dec 2015 13:44:00 -0000 Message-Id: <1450446270-27887-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00363.txt.bz2 In the place notifier was the inferior is still not stopped. Moved the observer to where the inferior is already signaled as stopped and evaluation can be done. 2015-12-15 Walfred Tedeschi * infrun.c (normal_stop): Change observers placement within the function. --- gdb/infrun.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/infrun.c b/gdb/infrun.c index f9bb411..2ed807c 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -8174,9 +8174,6 @@ normal_stop (void) instead of after. */ update_thread_list (); - if (last.kind == TARGET_WAITKIND_STOPPED && stopped_by_random_signal) - observer_notify_signal_received (inferior_thread ()->suspend.stop_signal); - /* As with the notification of thread events, we want to delay notifying the user that we've switched thread context until the inferior actually stops. @@ -8282,6 +8279,9 @@ normal_stop (void) do_cleanups (old_chain); } + if (last.kind == TARGET_WAITKIND_STOPPED && stopped_by_random_signal) + observer_notify_signal_received (inferior_thread ()->suspend.stop_signal); + /* Notify observers about the stop. This is where the interpreters print the stop event. */ if (!ptid_equal (inferior_ptid, null_ptid)) -- 2.1.4