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...


http://reviews.llvm.org/D6965

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to