Inspired by https://reviews.llvm.org/D74636, I'm introducing a basic version of Environment in the API. More functionalities can be added as needed.
I tried it in the command line:
(lldb) script Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D. >>> env =lldb.debugger.GetSelectedPlatform().GetEnvironment() >>> env.Size() 35 >>> env.GetEntryAtIndex(2) 'HOME=/Users/wallace' >>> env.GetEntryAtIndex(0) 'COMMAND_MODE=unix2003'
What does it mean to get the environment from a platform? Fetching it from the remote platform as what ever binary was used to provide the connection?