the client executable valgrind is starting.
Based on a patch from John Reiser.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10885
#define AT_RANDOM 25
#endif /* AT_RANDOM */
+#ifndef AT_EXECFN
+#define AT_EXECFN 31
+#endif /* AT_EXECFN */
+
#ifndef AT_SYSINFO
#define AT_SYSINFO 32
#endif /* AT_SYSINFO */
stringsize += VG_(strlen)(cauxv->u.a_ptr) + 1;
else if (cauxv->a_type == AT_RANDOM)
stringsize += 16;
+ else if (cauxv->a_type == AT_EXECFN)
+ stringsize += VG_(strlen)(VG_(args_the_exename)) + 1;
auxsize += sizeof(*cauxv);
}
strtab += 16;
break;
+ case AT_EXECFN:
+ /* points to the executable filename */
+ auxv->u.a_ptr = copy_str(&strtab, VG_(args_the_exename));
+ break;
+
default:
/* stomp out anything we don't know about */
VG_(debugLog)(2, "initimg",