I would like to create an LLDB alias/macro in Python that includes settings an environment variable to be passed to future processes. How to do that?
If it were just Python, I would update os.environ
. However, lldb's script
does not propagate that from Python back to target.env-vars
, so I don't get the desired outcome:
(lldb) settings show target.env-vars
target.env-vars (dictionary of strings) =
(lldb) settings set target.env-vars TEST1='this is test1'
(lldb) settings show target.env-vars
target.env-vars (dictionary of strings) =
TEST1=this is test1
(lldb) script os.environ['TEST2']='this is test2'
(lldb) settings show target.env-vars
target.env-vars (dictionary of strings) =
TEST1=this is test1
(lldb)
I am using lldb-1001.0.13.3 .