|
From: <sv...@va...> - 2005-09-20 23:06:36
|
Author: sewardj
Date: 2005-09-21 00:06:34 +0100 (Wed, 21 Sep 2005)
New Revision: 4713
Log:
PRE(sys_execve): move debugging printing to a more useful place.
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 23:=
04:49 UTC (rev 4712)
+++ branches/ASPACEM/coregrind/m_syswrap/syswrap-generic.c 2005-09-20 23:=
06:34 UTC (rev 4713)
@@ -2455,16 +2455,6 @@
=20
VG_(debugLog)(1, "syswrap", "Exec of %s\n", (HChar*)ARG1);
=20
- if (0) {
- Char **cpp;
-
- VG_(printf)("exec: %s\n", (Char *)ARG1);
- for(cpp =3D (Char **)ARG2; cpp && *cpp; cpp++)
- VG_(printf)("argv: %s\n", *cpp);
- for(cpp =3D (Char **)ARG3; cpp && *cpp; cpp++)
- VG_(printf)("env: %s\n", *cpp);
- }
-
/* restore the DATA rlimit for the child */
VG_(setrlimit)(VKI_RLIMIT_DATA, &VG_(client_rlimit_data));
=20
@@ -2509,6 +2499,15 @@
VG_(sigprocmask)(VKI_SIG_SETMASK, &tst->sig_mask, NULL);
}
=20
+ if (0) {
+ Char **cpp;
+ VG_(printf)("exec: %s\n", (Char *)path);
+ for (cpp =3D (Char **)ARG2; cpp && *cpp; cpp++)
+ VG_(printf)("argv: %s\n", *cpp);
+ for (cpp =3D (Char **)ARG3; cpp && *cpp; cpp++)
+ VG_(printf)("env: %s\n", *cpp);
+ }
+
SET_STATUS_from_SysRes(=20
VG_(do_syscall3)(__NR_execve, (UWord)path, ARG2, ARG3)=20
);
|