https://bugs.winehq.org/show_bug.cgi?id=52184
Bug ID: 52184 Summary: Initial breakpoint absent when debugging under WinDbg/CDB (build 22000.1) Product: Wine Version: 6.23 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: jinoh.kang.kr@gmail.com Distribution: ---
When debugging with WinDbg or CDB (build 22000.1), the initial breakpoint before the program entry point is not hit at all.
This appears to be because DbgEng creates the debug port object with limited access permissions, causing NtQueryInformationProcess/ProcessDebugPort to fail with STATUS_ACCESS_DENIED. This leads to Wine's process_breakpoint() function (called by LdrInitializeThunk) failing to detect that the current process is being debugged, and the initial breakpoint is skipped.