[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] MIPS single stepping
From: |
Dirk Behme |
Subject: |
[Qemu-devel] [PATCH] MIPS single stepping |
Date: |
Wed, 19 Apr 2006 20:31:50 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.7 (X11/20050923) |
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
--- ./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)
- [Qemu-devel] [PATCH] MIPS single stepping,
Dirk Behme <=