[Lldb-commits] [PATCH] Add -exec-arguments command
clayborg at gmail.com
Wed Jan 21 17:04:29 PST 2015
I would vote for a different approach altogether which would be a cleaner all around implementation:
Have the lldb-mi have a variable whose type is: lldb::SBLaunchInfo.
And somehow you make a function that all command can access this launch info with like:
This probably should be an instance variable that is part of the global MI interpreter.
Any calls to things like:
bool add_as_first_arg = true;
-exec-arguments foo bar
const bool append_args = true;
-interpreter-exec command "r"
lldb::SBProcess process = target.Launch (GetGlobalLaunchInfo(), error);
This give you the most flexibility to set/change stuff before you launch, and setting up SBLaunchInfo is the current best practices way to launch a process.
More information about the lldb-commits