Skip to content

Commit

Permalink
[REFACT] readded -m option
Browse files Browse the repository at this point in the history
  • Loading branch information
cecio committed Dec 13, 2024
1 parent 18b0fc7 commit 57da37f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TinyTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ BOOL FollowChild(CHILD_PROCESS childProcess, VOID * userData)
INT childArgc;
CHAR const* const* childArgv;
CHILD_PROCESS_GetCommandLine(childProcess, &childArgc, &childArgv);
// Set Pin's command line for child process, rebuilding with the same options skipping "-m"
// Set Pin's command line for child process, rebuilding with the same options updated
INT pinArgc = 0;
const INT pinArgcMax = 40;
CHAR const* pinArgv[pinArgcMax];
Expand All @@ -1346,6 +1346,8 @@ BOOL FollowChild(CHILD_PROCESS childProcess, VOID * userData)
pinArgv[pinArgc++] = KnobStopOffsets.Value().c_str();
pinArgv[pinArgc++] = "-l";
pinArgv[pinArgc++] = KnobSyscallsTable.Value().c_str();
pinArgv[pinArgc++] = "-m";
pinArgv[pinArgc++] = childArgv[0];
pinArgv[pinArgc++] = "--";
// Now copy the child command line
for (int i = 0; i < childArgc && pinArgc < pinArgcMax; i++) {
Expand Down

0 comments on commit 57da37f

Please sign in to comment.