aboutsummaryrefslogtreecommitdiff
path: root/gdbstub.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-04 23:51:58 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-01-04 23:51:58 +0000
commit5be1a8e065c56266fa2d99ae21fdad670cd0d963 (patch)
treed046ea383730c8c6cdaf3a91af7ed3b2ef937572 /gdbstub.c
parent09683d35974f3d91cf018deed20346d255deae9b (diff)
ppc fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@533 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
-rw-r--r--gdbstub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbstub.c b/gdbstub.c
index 140ab7f042..9471d8c16a 100644
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -404,6 +404,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
env = cpu_gdbstub_get_env(opaque);
#if defined(TARGET_I386)
env->eip = addr;
+#elif defined (TARGET_PPC)
+ env->nip = addr;
#endif
}
ret = main_loop(opaque);
@@ -420,6 +422,8 @@ int cpu_gdbstub(void *opaque, int (*main_loop)(void *opaque), int port)
addr = strtoul(p, (char **)&p, 16);
#if defined(TARGET_I386)
env->eip = addr;
+#elif defined (TARGET_PPC)
+ env->nip = addr;
#endif
}
cpu_single_step(env, 1);