Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [MI non-stop 03/11, RFA] Discard cleanup when deferring displaced step
@ 2008-06-28 16:45 Vladimir Prus
  2008-07-11 12:34 ` Daniel Jacobowitz
  2008-07-11 13:11 ` Pedro Alves
  0 siblings, 2 replies; 7+ messages in thread
From: Vladimir Prus @ 2008-06-28 16:45 UTC (permalink / raw)
  To: gdb-patches


My MI non-stop tests (coming later in the series) revealed a bug in displaced
stepping -- we fail to discard cleanup on an early exit path, which caused a
call to normal_stop at very unfortunate time -- when a thread was running.

OK?

- Volodya

	* infrun.c (resume): Discard cleanups on early exit path.
---
 gdb/infrun.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/gdb/infrun.c b/gdb/infrun.c
index cf23c18..e803d1b 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -964,10 +964,13 @@ a command like `return' or `jump' to continue execution."));
       && sig == TARGET_SIGNAL_0)
     {
       if (!displaced_step_prepare (inferior_ptid))
-	/* Got placed in displaced stepping queue.  Will be resumed
-	   later when all the currently queued displaced stepping
-	   requests finish.  */
-	return;
+	{
+	  /* Got placed in displaced stepping queue.  Will be resumed
+	     later when all the currently queued displaced stepping
+	     requests finish.  */
+	  discard_cleanups (old_cleanups);
+	  return;
+	}
     }
 
   if (step && gdbarch_software_single_step_p (gdbarch))
-- 
1.5.3.5



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

end of thread, other threads:[~2008-07-13  5:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-28 16:45 [MI non-stop 03/11, RFA] Discard cleanup when deferring displaced step Vladimir Prus
2008-07-11 12:34 ` Daniel Jacobowitz
2008-07-11 13:11 ` Pedro Alves
2008-07-11 13:21   ` Vladimir Prus
2008-07-11 13:35     ` Daniel Jacobowitz
2008-07-13  5:55       ` Vladimir Prus
2008-07-11 13:35     ` Pedro Alves

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