aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-12 10:05:07 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-12 10:05:07 +0000
commit8fac5803a968b77fd59a2857f99e0894cc0a5b76 (patch)
tree9c5c9d9612cc0658077c47b92f025b2c10b282d7 /gdbstub.c
parentdb8d7dd17bff97aa6311c81a2940012b4c7681d9 (diff)
Improve handling of gdb's single-step / continue arguments.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3075 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 2ac8c5712a..4aafcaa104 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -773,7 +773,9 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
#elif defined (TARGET_ARM)
env->regs[15] = addr;
#elif defined (TARGET_SH4)
- env->pc = addr;
+ env->pc = addr;
+#elif defined (TARGET_MIPS)
+ env->PC = addr;
#endif
}
#ifdef CONFIG_USER_ONLY
@@ -784,7 +786,7 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
return RS_IDLE;
case 's':
if (*p != '\0') {
- addr = strtoul(p, (char **)&p, 16);
+ addr = strtoull(p, (char **)&p, 16);
#if defined(TARGET_I386)
env->eip = addr;
#elif defined (TARGET_PPC)
@@ -795,7 +797,9 @@ static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
#elif defined (TARGET_ARM)
env->regs[15] = addr;
#elif defined (TARGET_SH4)
- env->pc = addr;
+ env->pc = addr;
+#elif defined (TARGET_MIPS)
+ env->PC = addr;
#endif
}
cpu_single_step(env, 1);