This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH V2 1/2] Bound violation handling preparation.
- From: Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- To: palves at redhat dot com, brobecker at adacore dot com
- Cc: gdb-patches at sourceware dot org, Walfred Tedeschi <walfred dot tedeschi at intel dot com>
- Date: Fri, 18 Dec 2015 14:44:29 +0100
- Subject: [PATCH V2 1/2] Bound violation handling preparation.
- Authentication-results: sourceware.org; auth=none
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