From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5bKY-0004um-U3 for qemu-devel@nongnu.org; Wed, 25 May 2016 12:06:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5bKW-0002pF-Th for qemu-devel@nongnu.org; Wed, 25 May 2016 12:06:45 -0400 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:34090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5bKW-0002p8-Pn for qemu-devel@nongnu.org; Wed, 25 May 2016 12:06:44 -0400 Received: by mail-it0-x22a.google.com with SMTP id g126so7020600ite.1 for ; Wed, 25 May 2016 09:06:44 -0700 (PDT) From: Joel Holdsworth Date: Wed, 25 May 2016 17:07:52 +0100 Message-Id: <1464192472-7885-5-git-send-email-joel.holdsworth@vcatechnology.com> In-Reply-To: <1464192472-7885-1-git-send-email-joel.holdsworth@vcatechnology.com> References: <1464192472-7885-1-git-send-email-joel.holdsworth@vcatechnology.com> Subject: [Qemu-devel] [PATCH 4/4] linux-user: pass strace argument in execve List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Vasileios.Kalintiris@imgtec.com, riku.voipio@iki.fi, Joel Holdsworth --- linux-user/syscall.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index fb75c09..314a890 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5966,6 +5966,8 @@ static abi_long qemu_execve(char *filename, char *argv[], 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 */ @@ -5973,6 +5975,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