[Lldb-commits] [lldb] [lldb-dap] Migrate DAP exceptions test. (PR #207029)

Ebuka Ezike via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 2 07:00:56 PDT 2026


================
@@ -2,25 +2,32 @@
 Test exception behavior in DAP with c++ throw.
 """
 
-from lldbsuite.test.decorators import *
-from lldbsuite.test.lldbtest import *
-import lldbdap_testcase
+from lldbsuite.test.decorators import skipIfWasm, skipIfWindows
+from lldbsuite.test.tools.lldb_dap import lldb_dap_testcase
+from lldbsuite.test.tools.lldb_dap.dap_types import LaunchArgs
 
 
- at skipIfWasm  # wasm inferiors are built with -fno-exceptions
-class TestDAP_exception_cpp(lldbdap_testcase.DAPTestCaseBase):
+ at skipIfWasm  # wasm inferiors are built with -fno-exceptions.
+class TestDAP_exception_cpp(lldb_dap_testcase.DAPTestCaseBase):
----------------
da-viper wrote:

Added a new test  for `throw` and `catch` exception breakpoints. 

If you mean why it is stopping a a signal. 
If a thrown c++ exception is unhandled, by default std::terminate is called by the runtime which then sends `signal ABRT`.

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


More information about the lldb-commits mailing list