diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-06-19 23:48:07 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-06-20 10:10:11 +0100 |
commit | 9515d87a841daaf28f2577e92edf5206070d2d51 (patch) | |
tree | d3e62638368ebd2542c19adae2293293e26c967c /cli | |
parent | 3ce516a4ffbac3677876215f632a94425c1c5142 (diff) |
inject: Support attaching a debugger.
And use getopt option parsing while at it.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/cli_trace.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/cli_trace.cpp b/cli/cli_trace.cpp index 669a0c45..5875057a 100644 --- a/cli/cli_trace.cpp +++ b/cli/cli_trace.cpp @@ -152,7 +152,12 @@ traceProgram(trace::API api, if (useInject) { args.push_back("inject"); + if (debug) { + args.push_back("-d"); + } + args.push_back("-D"); args.push_back(wrapperPath); + args.push_back("--"); } else { /* On Windows copy the wrapper to the program directory. */ |