X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=darwin-user%2Fmain.c;h=51c6aa0f4d4d07f7fa510466584bdfa4151c1ff0;hb=1b530a6dfcfe4510f66cb90a1717698063ac7a4f;hp=9b8a3dcccaa616ae4f0ede82ebca8a9db23b2cd9;hpb=79d342dc6bc04c3bc4c1141760ad6e241059b139;p=qemu.git diff --git a/darwin-user/main.c b/darwin-user/main.c index 9b8a3dccc..51c6aa0f4 100644 --- a/darwin-user/main.c +++ b/darwin-user/main.c @@ -41,6 +41,8 @@ #include #include +int singlestep; + const char *interp_prefix = ""; asm(".zerofill __STD_PROG_ZONE, __STD_PROG_ZONE, __std_prog_zone, 0x0dfff000"); @@ -751,6 +753,7 @@ void usage(void) "-d options activate log (logfile='%s')\n" "-g wait for gdb on port 1234\n" "-p pagesize set the host page size to 'pagesize'\n", + "-singlestep always run in singlestep mode\n" TARGET_ARCH, TARGET_ARCH, interp_prefix, @@ -842,6 +845,8 @@ int main(int argc, char **argv) #endif exit(1); } + } else if (!strcmp(r, "singlestep")) { + singlestep = 1; } else { usage();