From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38347 invoked by alias); 17 Dec 2015 17:06:14 -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 38338 invoked by uid 89); 17 Dec 2015 17:06:13 -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=Hx-languages-length:1290, H*r:sk:wtedesc, doe, notifying X-HELO: mga14.intel.com Received: from mga14.intel.com (HELO mga14.intel.com) (192.55.52.115) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 17 Dec 2015 17:06:12 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 17 Dec 2015 09:05:54 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 17 Dec 2015 09:05:52 -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 tBHH5oVl023646; Thu, 17 Dec 2015 17:05:50 GMT Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id tBHH5ouu025562; Thu, 17 Dec 2015 18:05:50 +0100 Received: (from wtedesch@localhost) by ulvlx001.iul.intel.com with œ id tBHH5nRl025558; Thu, 17 Dec 2015 18:05:49 +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: Thu, 17 Dec 2015 17:06:00 -0000 Message-Id: <1450371947-25528-1-git-send-email-walfred.tedeschi@intel.com> X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00348.txt.bz2 The current order of the observers doe not allow evaluations of siginfo while stopping. Order has to be changed to allow evaluation during the printing process. 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