Posted: Sat Nov 17, 2018 4:06 pm Post subject: suggestion or helping about debugging under windows xp
hey guys
i just want some suggestions about my problem it has been a month since im trying to find a solution for it
i made a program acts as a debugger and it works fine on every windows
[7, 8 , 8.1, 10] expect windows xp
the problem is that my breakpoint event doesnt want to reach / hit reason unknown and here he is my debug loop that im using
NOTE : the INT3 exists also i tried to use the breakpoint on shell.dll and its worked but it seems that the external exe or dll not belongs to windows files doesnt have a permission or something ?
Code:
void DebugLoop() {
DEBUG_EVENT debugEvent = {0};
DWORD ContinueStatus = DBG_CONTINUE;
while (WaitForDebugEvent(&debugEvent, INFINITE)) {
DWORD debugEventCode = debugEvent.dwDebugEventCode;
if (debugEventCode == EXCEPTION_DEBUG_EVENT) {
switch (debugEvent.u.Exception.ExceptionRecord.ExceptionCode) {
case EXCEPTION_BREAKPOINT:
if (!initialBreakpointSeen)
OnAttach(&debugEvent);
else
OnMemoryBreakpoint(&debugEvent);
break;
case EXCEPTION_SINGLE_STEP:
OnSingleStep(&debugEvent);
break;
default:
ContinueStatus = DBG_EXCEPTION_NOT_HANDLED;
break;
}
}
else if (debugEventCode == CREATE_PROCESS_DEBUG_EVENT) {
startAddress = (DWORD)debugEvent.u.CreateProcessInfo.lpBaseOfImage;
}
else if (debugEventCode == EXIT_PROCESS_DEBUG_EVENT) {
detachRequested = true;
}
if (!ContinueDebugEvent(debugEvent.dwProcessId, debugEvent.dwThreadId,
ContinueStatus)) {
return;
}
}
}
would someone please tell me why ?
or would anyone build this DBKKERNEL for me bec i dont have the requirments
im going to use it as a lib to put it coz it might be the kernel of windows xp
has the problem or something _________________
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
Posted: Sat Nov 17, 2018 5:32 pm Post subject:
Not sure. But i can tell you that the 'resume flag'(rf) in elfags does not work in windows xp, so there you have to actively remove the old breakpoint, single step, and set it back _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
would you please build your kernel for me ? im sorry for asking that but i swear the requirments of building that dll wont work on my pc and that is sucks
i think your DBKKERNEL will work if i put it inside my project as a package or lib i mean
and thanks again _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum