mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
- Add an initial breakpoint for usermode process startup, this makes usermode gdb debugging working. Spotted and tested by Yury Sidorov.
svn path=/trunk/; revision=34127
This commit is contained in:
parent
f3b1615f45
commit
e6e9edd880
1 changed files with 4 additions and 0 deletions
|
@ -484,6 +484,10 @@ LdrpInit(PCONTEXT Context,
|
|||
ZwTerminateProcess(NtCurrentProcess(), STATUS_INVALID_IMAGE_FORMAT);
|
||||
}
|
||||
}
|
||||
|
||||
/* Break into debugger */
|
||||
if (Peb->BeingDebugged) DbgBreakPoint();
|
||||
|
||||
/* attach the thread */
|
||||
RtlEnterCriticalSection(NtCurrentPeb()->LoaderLock);
|
||||
LdrpAttachThread();
|
||||
|
|
Loading…
Reference in a new issue