[Lldb-commits] [lldb] [lldb] Add LanguageRuntime hooks for uncaught top-level errors (NFC) (PR #230331)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 8 21:25:10 PDT 2026


================
@@ -111,6 +111,13 @@ ThreadPlanCallFunction::ThreadPlanCallFunction(
       m_should_clear_objc_exception_bp(false),
       m_should_clear_cxx_exception_bp(false),
       m_stop_address(LLDB_INVALID_ADDRESS), m_return_type(return_type) {
+  // Code that runs as top-level code, as in a REPL, has no enclosing handler
+  // for an error it throws, so the language runtime may need to catch it.
----------------
JDevlieghere wrote:

Also already described. Also the REPL fact is so useless as it's literally doing exactly that below.

https://github.com/llvm/llvm-project/pull/230331


More information about the lldb-commits mailing list