mirror of https://github.com/x64dbg/GleeBug
. Minor bugfix on exceptionGuardPage.
This commit is contained in:
parent
9c4bab40ac
commit
ee855d6c50
|
|
@ -239,11 +239,14 @@ namespace GleeBug
|
|||
*/
|
||||
//Read but our bpx page is not bp on Read
|
||||
//We shouldn't care about other stuff such as Write or Execute since these breakpoints are implemented with Access Violation.
|
||||
if ((exceptionRecord.ExceptionInformation[0]==0) && (!(bpxPage->second.Type & 0x2)))
|
||||
if (!(bpxPage->second.Type & 0x1))
|
||||
{
|
||||
if ((exceptionRecord.ExceptionInformation[0] == 0) && (!(bpxPage->second.Type & 0x2)))
|
||||
{
|
||||
//perhaps the program generated such exception
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
//generic breakpoint callback function.
|
||||
cbBreakpoint(info);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ protected:
|
|||
auto addr = mRegisters->Esi();
|
||||
#endif //_WIN64
|
||||
printf("Addr: 0x%p\n", addr);
|
||||
if (mProcess->SetMemoryBreakpoint(addr, 0x1000, this, &MyDebugger::cbMemoryBreakpoint, MemoryType::Execute))
|
||||
if (mProcess->SetMemoryBreakpoint(addr, 0x1000, this, &MyDebugger::cbMemoryBreakpoint, MemoryType::Access, false))
|
||||
puts("Memory breakpoint set!");
|
||||
else
|
||||
puts("Failed to set memory breakpoint...");
|
||||
|
|
|
|||
Loading…
Reference in New Issue