---
linux-user/syscall.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1513f0f..00ee7a6 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -6778,6 +6778,8 @@ static abi_long qemu_execve(char *filename, char *argv[],
qemu_argc += undef_envc * 2;
/* allocate the argument list */
+ if (do_strace)
+ qemu_argc++;
argp = qemu_argp = alloca((qemu_argc + 1) * sizeof(void *));
/* set up the qemu arguments */
@@ -6785,6 +6787,9 @@ static abi_long qemu_execve(char *filename, char *argv[],
*argp++ = strdup("-L");
*argp++ = strdup(path("/"));
+ if (do_strace)
+ *argp++ = strdup("-strace");
+
/* add arguments for the enironment variables */
for (i = 0; i < def_envc; i++) {
*argp++ = strdup("-E");
--
1.9.1- Re: [Qemu-devel] [PATCH v2 3/4] linux-user: pass elf ... Laurent Vivier
- Re: [Qemu-devel] [PATCH v2 3/4] linux-user: pass ... Joel Holdsworth
- [Qemu-devel] [PATCH v2 2/4] linux-user: pass environment a... Joel Holdsworth
- Re: [Qemu-devel] [PATCH v2 2/4] linux-user: pass envi... Laurent Vivier
- Re: [Qemu-devel] [PATCH v2 2/4] linux-user: pass ... Joel Holdsworth
- Re: [Qemu-devel] [PATCH v2 2/4] linux-user: p... Laurent Vivier
- Re: [Qemu-devel] [PATCH v2 2/4] linux-use... Joel Holdsworth
- Re: [Qemu-devel] [PATCH v2 2/4] linu... Peter Maydell
- Re: [Qemu-devel] [PATCH v2 2/4] ... Joel Holdsworth
- Re: [Qemu-devel] [PATCH v2 2/4] ... Peter Maydell
- [Qemu-devel] [PATCH v2 4/4] linux-user: pass strace argume... Joel Holdsworth
- Re: [Qemu-devel] [PATCH v2 4/4] linux-user: pass stra... Laurent Vivier
- Re: [Qemu-devel] [PATCH v2 4/4] linux-user: pass ... Joel Holdsworth
