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'