In the exceptionInfo request I've added additional information for crash data, instrumentation data and more detailed exception data. For example, when UBSan is enabled, you now see additional information in the exception stack trace about the detected issue: <img width="1728" height="538" alt="Screenshot 2026-01-15 at 3 05 08 PM" src="https://github.com/user-attachments/assets/b761af2c-90ac-4eb7-9926-3ab133f1b753" /> I included a new test for stopping at `lldb::eStopReasonInstrumentation` and ensuring we have additional information reported. --------- Co-authored-by: Ebuka Ezike <yerimyah1@gmail.com> Co-authored-by: Jonas Devlieghere <jonas@devlieghere.com>
26 lines
808 B
Python
26 lines
808 B
Python
"""
|
|
Test exception behavior in DAP with signal.
|
|
"""
|
|
|
|
from lldbsuite.test.decorators import *
|
|
from lldbsuite.test.lldbtest import *
|
|
import lldbdap_testcase
|
|
|
|
|
|
class TestDAP_exception(lldbdap_testcase.DAPTestCaseBase):
|
|
@skipIfWindows
|
|
def test_stopped_description(self):
|
|
"""
|
|
Test that exception description is shown correctly in stopped
|
|
event.
|
|
"""
|
|
program = self.getBuildArtifact("a.out")
|
|
self.build_and_launch(program)
|
|
self.do_continue()
|
|
|
|
self.verify_stop_exception_info("signal SIGABRT")
|
|
exceptionInfo = self.get_exceptionInfo()
|
|
self.assertEqual(exceptionInfo["breakMode"], "always")
|
|
self.assertEqual(exceptionInfo["description"], "signal SIGABRT")
|
|
self.assertEqual(exceptionInfo["exceptionId"], "signal")
|