aboutsummaryrefslogtreecommitdiff
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-01 00:07:38 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-01 00:07:38 +0000
commitb92c47c1cc25bafd75d81f121e06b68b35d0beed (patch)
treea30c60d4769e2ca4185ead842b98157705d9ec39 /linux-user/main.c
parentfc0d441e14f07a35f9ea67ac8ca032a2ea902b38 (diff)
Strace for userland emulation, by Stuart Anderson and Thayne Harbaugh.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3502 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 88a2e48863..6a026b012b 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -1980,6 +1980,10 @@ int main(int argc, char **argv)
env = cpu_init();
global_env = env;
+ if(getenv("QEMU_STRACE") ){
+ do_strace=1;
+ }
+
wrk = environ;
while (*(wrk++))
environ_count++;