in SyzGen/syzgen/debugger/lldbproxy.py , LLDBDebugger.run executes the following code:
# For unknown reason, we have to invoke 'script' in advance.
lldb.sendline("script")
lldb.expect(">>>")
outs = lldb.before
print(outs)
lldb.sendline("quit()")
lldb.expect("\\(lldb\\)")
print(lldb.before)
What is the purpose of this code?
I may have had a similar problem. When executing the custom command in debug.py, lldb reports an error, indicating that lldb.target cannot be found.
in
SyzGen/syzgen/debugger/lldbproxy.py
,LLDBDebugger.run
executes the following code:What is the purpose of this code? I may have had a similar problem. When executing the custom command in
debug.py
, lldb reports an error, indicating thatlldb.target
cannot be found.