[Lldb-commits] [PATCH] Add -exec-arguments command
ki.stfu at gmail.com
Thu Jan 22 04:55:31 PST 2015
In http://reviews.llvm.org/D6965#111915, @clayborg wrote:
> This probably should be an instance variable that is part of the global MI interpreter.
> And then:
> -interpreter-exec command "r"
> would do:
> 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.
The "r" command is the CLI command which is located in source/Commands/CommandObjectProcess.cpp file. The MI module executes it using SBInterpreter::HandleCommand function and it seems like a user has typed the "r" command in the shell. I think that it's inadmissible to reference to MI module's variable in LLDB's commands because MI it's not a part of LLDB kernel. It just a extra module and LLDB shouldn't depend on it.
More information about the lldb-commits