This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]