|
From: <sv...@va...> - 2005-09-20 20:15:57
|
Author: sewardj
Date: 2005-09-20 21:15:54 +0100 (Tue, 20 Sep 2005)
New Revision: 4709
Log:
PRE(sys_execve): correctly get the syscall error code when it fails.
Modified:
branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c
Modified: branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c 2005-09-20 18:=
32:52 UTC (rev 4708)
+++ branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c 2005-09-20 20:=
15:54 UTC (rev 4709)
@@ -2516,7 +2516,7 @@
/* If we got here, then the execve failed. We've already made too
much of a mess of ourselves to continue, so we have to abort. */
VG_(message)(Vg_UserMsg, "execve(%p(%s), %p, %p) failed, errno %d",
- ARG1, ARG1, ARG2, ARG3, -RES);
+ ARG1, ARG1, ARG2, ARG3, RES_unchecked);
VG_(message)(Vg_UserMsg, "EXEC FAILED: I can't recover from "
"execve() failing, so I'm dying.");
VG_(message)(Vg_UserMsg, "Add more stringent tests in PRE(sys_execve)=
, "
|