STATUS_SINGLE_STEP and STATUS_BREAKPOINT are defined as 0x8------ which
is negative and thus can't be implicitly narrowed to a DWORD which is
unsigned.
Details
Details
- Reviewers
xiaobai labath JDevlieghere asmith compnerd
Diff Detail
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
Comment Actions
Is this necessary? I see
C++ #define STATUS_BREAKPOINT ((DWORD )0x80000003L) #define STATUS_SINGLE_STEP ((DWORD )0x80000004L)
in C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h
Comment Actions
I believe it's using the one in ntstatus.h
10.0.16299.0\shared\ntstatus.h #define STATUS_BREAKPOINT ((NTSTATUS)0x80000003L) // winnt
And NTSTATUS is defined as a LONG in powerbase.h
10.0.16299.0\um\powerbase.h #define NTSTATUS LONG
which would make it a signed (negative) number.