|
From: <sv...@va...> - 2010-05-25 08:45:54
|
Author: tom
Date: 2010-05-25 09:45:44 +0100 (Tue, 25 May 2010)
New Revision: 11134
Log:
Set VG_(args_the_exename) to the full path to the script when
loading a script as client. Closes #238345.
Modified:
trunk/coregrind/m_ume/script.c
Modified: trunk/coregrind/m_ume/script.c
===================================================================
--- trunk/coregrind/m_ume/script.c 2010-05-24 13:40:10 UTC (rev 11133)
+++ trunk/coregrind/m_ume/script.c 2010-05-25 08:45:44 UTC (rev 11134)
@@ -35,6 +35,8 @@
#include "pub_core_libcassert.h" // VG_(exit), vg_assert
#include "pub_core_libcfile.h" // VG_(close) et al
#include "pub_core_libcprint.h"
+#include "pub_core_xarray.h"
+#include "pub_core_clientstate.h"
#include "pub_core_mallocfree.h" // VG_(strdup)
#include "pub_core_ume.h" // self
@@ -133,6 +135,8 @@
if (info->argv && info->argv[0] != NULL)
info->argv[0] = (char *)name;
+ VG_(args_the_exename) = name;
+
if (0)
VG_(printf)("#! script: interp_name=\"%s\" interp_args=\"%s\"\n",
info->interp_name, info->interp_args);
|