[Lldb-commits] [PATCH] Add -exec-arguments command

Jim Ingham jingham at apple.com
Mon Jan 19 11:17:57 PST 2015

So the way you set arguments when you launch a process through the SB API's (besides some old unstructured API's that we'll eventually deprecate) is through the SBLaunchInfo.  You're adding another way to get and set the arguments that's independent of that.

I'd rather we didn't create another way to specify launch arguments.  You can already do that by creating an SBLaunchInfo with the appropriate args set, and use that for the launch.

The SBTarget already provides a way to get the arguments (SBTarget::GetNumArguments/GetArgumentAtIndex.)  If you need to provide a way to get the current or previous launch arguments then we should add an API to copy out the SBLaunchInfo that was used for the launch.  That's not currently kept around so you may have to reconstruct it from bits sitting in the target, but that way we keep one structured way to get at all the launch parameters...



More information about the lldb-commits mailing list