[all-commits] [llvm/llvm-project] d654d3: [lldb-dap] Correctly report breakpoints as resolve...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Mon Mar 3 16:56:42 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d654d37c86a4f0dc99c65cbef0624b5533ed724c
https://github.com/llvm/llvm-project/commit/d654d37c86a4f0dc99c65cbef0624b5533ed724c
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2025-03-03 (Mon, 03 Mar 2025)
Changed paths:
M lldb/test/API/tools/lldb-dap/breakpoint-events/TestDAP_breakpointEvents.py
M lldb/tools/lldb-dap/Handler/InitializeRequestHandler.cpp
Log Message:
-----------
[lldb-dap] Correctly report breakpoints as resolved on macOS (#129589)
On macOS, breakpoints are briefly unresolved between process launch and
when the dynamic loader has informed us about the loaded libraries. This
information was being forwarded by lldb-dap, but only partially. In the
event handler, we were listening for the `LocationsAdded` and
`LocationsRemoved` breakpoint events. For the scenario described above,
the latter would trigger and we'd send an event reporting the breakpoint
as unresolved. The problem is that when the breakpoint location is
resolved again, you receive a `LocationsResolved` event, not a
`LocationsAdded` event. As a result, the breakpoint would continue to
show up as unresolved in the DAP client.
I found a test that tried to test part of this behavior, but the test
was broken and disabled. I revived the test and added coverage for the
situation described above.
Fixes #112629
rdar://137968318
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list