Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH V2 1/2] Bound violation handling preparation.
@ 2015-12-18 13:44 Walfred Tedeschi
  2015-12-18 13:44 ` [PATCH V2 2/2] Bound violation handling Walfred Tedeschi
  0 siblings, 1 reply; 4+ messages in thread
From: Walfred Tedeschi @ 2015-12-18 13:44 UTC (permalink / raw)
  To: palves, brobecker; +Cc: gdb-patches, Walfred Tedeschi

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  <walfred.tedeschi@intel.com>

	* 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


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH V2 1/2] Bound violation handling preparation.
@ 2015-12-17 17:06 Walfred Tedeschi
  2015-12-17 17:06 ` [PATCH V2 2/2] Bound violation handling Walfred Tedeschi
  0 siblings, 1 reply; 4+ messages in thread
From: Walfred Tedeschi @ 2015-12-17 17:06 UTC (permalink / raw)
  To: palves, brobecker; +Cc: gdb-patches, Walfred Tedeschi

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  <walfred.tedeschi@intel.com>

	* 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-18 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18 13:44 [PATCH V2 1/2] Bound violation handling preparation Walfred Tedeschi
2015-12-18 13:44 ` [PATCH V2 2/2] Bound violation handling Walfred Tedeschi
  -- strict thread matches above, loose matches on Subject: below --
2015-12-17 17:06 [PATCH V2 1/2] Bound violation handling preparation Walfred Tedeschi
2015-12-17 17:06 ` [PATCH V2 2/2] Bound violation handling Walfred Tedeschi
2015-12-17 17:12   ` Tedeschi, Walfred

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox