diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 14:46:06 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 14:46:06 +0000 |
commit | b67419569b6a13811670d97c0bd88f9bef4ca9c7 (patch) | |
tree | 253f572776381d35bb3d016e66d25f64f9181921 /linux-user/main.c | |
parent | 0d913fdb62765554d613e2fe99b7812ed1c95122 (diff) |
-strace option
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3587 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 18e509d082..4b53b908f1 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -1856,7 +1856,8 @@ void usage(void) "\n" "debug options:\n" "-d options activate log (logfile=%s)\n" - "-p pagesize set the host page size to 'pagesize'\n", + "-p pagesize set the host page size to 'pagesize'\n" + "-strace log system calls\n", TARGET_ARCH, interp_prefix, x86_stack_size, @@ -1952,6 +1953,8 @@ int main(int argc, char **argv) } } else if (!strcmp(r, "drop-ld-preload")) { drop_ld_preload = 1; + } else if (!strcmp(r, "strace")) { + do_strace = 1; } else { usage(); @@ -2008,8 +2011,8 @@ int main(int argc, char **argv) } global_env = env; - if(getenv("QEMU_STRACE") ){ - do_strace=1; + if (getenv("QEMU_STRACE")) { + do_strace = 1; } wrk = environ; |