This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
handling deferred step, clear trap_expected on trap
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tomas Martinec <fyzmat at gmail dot com>
- Date: Tue, 17 May 2011 12:46:44 +0100
- Subject: handling deferred step, clear trap_expected on trap
Ref: <http://sourceware.org/ml/gdb/2011-05/msg00073.html>.
Tested on x86-64-linux and applied.
--
Pedro Alves
2011-05-17 Tomas Martinec <fyzmat@gmail.com>
gdb/
* infrun.c (handle_inferior_event) <handling deferred step>: Clear
trap_expected.
---
gdb/infrun.c | 2 ++
1 file changed, 2 insertions(+)
Index: src/gdb/infrun.c
===================================================================
--- src.orig/gdb/infrun.c 2011-05-17 10:55:34.693488992 +0100
+++ src/gdb/infrun.c 2011-05-17 11:43:55.343489003 +0100
@@ -3646,6 +3646,8 @@ handle_inferior_event (struct execution_
singlestep_breakpoints_inserted_p = 0;
}
+ ecs->event_thread->control.trap_expected = 0;
+
/* Note: We do not call context_switch at this point, as the
context is already set up for stepping the original thread. */
switch_to_thread (deferred_step_ptid);