All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] MIPS single stepping
@ 2006-04-19 18:31 Dirk Behme
  2006-04-19 20:22 ` Stefan Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Behme @ 2006-04-19 18:31 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

Hi,

patch below makes GDB single stepping for MIPS work.

For debugging (breakpoint set), in
target-mips/translate.c/gen_intermediate_code_internal()
gen_opc_pc[] isn't initialized. So in debugging case don't call
cpu_restore_state() which then accesses uninitalized
gen_opc_pc[]. do_raise_exception_direct() indirectly calls
cpu_restore_state(), do_raise_exception() doesn't.

Best regards

Dirk

[-- Attachment #2: qemu-mips-single-step.txt --]
[-- Type: text/plain, Size: 331 bytes --]

--- ./target-mips/op.c_orig	2006-04-19 18:14:00.000000000 +0200
+++ ./target-mips/op.c	2006-04-19 18:14:29.000000000 +0200
@@ -604,7 +604,7 @@ void op_trap (void)
 
 void op_debug (void)
 {
-  CALL_FROM_TB1(do_raise_exception_direct, EXCP_DEBUG);
+  CALL_FROM_TB1(do_raise_exception, EXCP_DEBUG);
 }
 
 void op_set_lladdr (void)



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

end of thread, other threads:[~2006-04-20  7:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 18:31 [Qemu-devel] [PATCH] MIPS single stepping Dirk Behme
2006-04-19 20:22 ` Stefan Weil
2006-04-19 22:50   ` Thiemo Seufer
2006-04-20  4:45     ` [Qemu-devel] MIPS patches, was: " Dirk Behme
2006-04-20  6:37       ` Raphaël Rigo
2006-04-20  7:12       ` Marius Groeger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.