Skip to contentSkip to conversation

GDBstub system emulator breakage

Qemu-devel Blue Swirl 1 participant 1 message Apr 21, 2005

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

GDB support for system emulator is broken in the current CVS, execution never continues after a breakpoint.

Reversing some of the recent GDB patch re-enables system emulator debugging, but breaks user mode. This is what happens on startup:
qemu-sparc: undefined symbol: vm_start

gdbstub.c 2005-04-21 17:24:21.000000000 +0000 renamed from gdbstub.c 2005-04-18 17:13:30.000000000 +0000 +0 -0
@@ -431,7 +431,8 @@
            env->npc = addr + 4;
#endif
        }
-        return RS_CONTINUE;
+        vm_start();
+        break;
    case 's':
        if (*p != '\0') {
            addr = strtoul(p, (char **)&p, 16);
@@ -445,7 +446,8 @@
#endif
        }
        cpu_single_step(env, 1);
-        return RS_CONTINUE;
+        vm_start();
+        break;
    case 'g':
        reg_size = cpu_gdb_read_registers(env, mem_buf);
        memtohex(buf, mem_buf, reg_size);

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/