[Lldb-commits] [PATCH] D129611: [lldb/crashlog] Add '-t|--target' option to interactive mode
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 28 14:02:07 PDT 2022
mib marked 5 inline comments as done.
mib added inline comments.
================
Comment at: lldb/examples/python/scripted_process/crashlog_scripted_process.py:47-48
+ if not self.target.GetExecutable() or not self.target.IsValid():
+ # Return error
return
----------------
JDevlieghere wrote:
> The comment says return error but we're not returning anything. Should this raise an exception?
I was thinking of adding a `SBCommandObjectReturn` to every script process init function so we print errors in lldb instead of raising a python exception. That way we could propage that into the IDEs.
I'm doing that in a follow-up patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129611/new/
https://reviews.llvm.org/D129611
More information about the lldb-commits
mailing list