diff --git a/gdbstub.c b/gdbstub.c index 140ab7f0421b7158866c41da8fa5e07a69c71510..9471d8c16a3169f1f073af4bd694182d7aabc941 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);