Skip to content

🍒 [lldb][Windows] ignore loader breakpoints in system modules (#208233) - #13561

Open
charles-zablit wants to merge 1 commit into
swiftlang:stable/21.xfrom
charles-zablit:cz/lldb/windows/loader-int3-to-stable-21.x
Open

🍒 [lldb][Windows] ignore loader breakpoints in system modules (#208233)#13561
charles-zablit wants to merge 1 commit into
swiftlang:stable/21.xfrom
charles-zablit:cz/lldb/windows/loader-int3-to-stable-21.x

Conversation

@charles-zablit

Copy link
Copy Markdown

@charles-zablit
charles-zablit requested a review from a team as a code owner July 29, 2026 16:58
@charles-zablit

Copy link
Copy Markdown
Author

@swift-ci please test

@charles-zablit

Copy link
Copy Markdown
Author

@swift-ci please test windows

1 similar comment
@charles-zablit

Copy link
Copy Markdown
Author

@swift-ci please test windows

)

Currently, when debugging a program with `lldb-dap` on Windows and using
the `integratedTerminal` option, lldb-dap immediatly stops with an
`0x80000003` Exception. This is because `ntdll` executes an `int3`
breakpoint during process initialization when a debugger is attached.

This patch makes `lldb` and `lldb-server` skip the first `int3` after
launch when it originates from a system module (the loader's debugger
notification). Only that first loader breakpoint is skipped. Any later
int3, including `__debugbreak()`, `__builtin_debugtrap()` in the
debuggee's own code, still stops the debugger.

Fixes llvm#198763

(cherry picked from commit 83530ce)
@charles-zablit
charles-zablit force-pushed the cz/lldb/windows/loader-int3-to-stable-21.x branch from 5958991 to 015e24c Compare July 30, 2026 19:00
@charles-zablit

Copy link
Copy Markdown
Author

@swift-ci please test

@charles-zablit

Copy link
Copy Markdown
Author

@swift-ci please test windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants