mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 19:54:18 +00:00
Set VG_(args_the_exename) to the full path to the script when
loading a script as client. Closes #238345. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11134
This commit is contained in:
parent
f26002da90
commit
6d2c5d0342
@ -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 @@ Int VG_(load_script)(Int fd, const HChar* name, ExeInfo* info)
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user