mirror of https://github.com/x64dbg/GleeBug
. Minor bugfix on exceptionGuardPage.
This commit is contained in:
parent
9c4bab40ac
commit
ee855d6c50
|
|
@ -239,10 +239,13 @@ namespace GleeBug
|
||||||
*/
|
*/
|
||||||
//Read but our bpx page is not bp on Read
|
//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.
|
//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))
|
||||||
{
|
{
|
||||||
//perhaps the program generated such exception
|
if ((exceptionRecord.ExceptionInformation[0] == 0) && (!(bpxPage->second.Type & 0x2)))
|
||||||
return;
|
{
|
||||||
|
//perhaps the program generated such exception
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//generic breakpoint callback function.
|
//generic breakpoint callback function.
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ protected:
|
||||||
auto addr = mRegisters->Esi();
|
auto addr = mRegisters->Esi();
|
||||||
#endif //_WIN64
|
#endif //_WIN64
|
||||||
printf("Addr: 0x%p\n", addr);
|
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!");
|
puts("Memory breakpoint set!");
|
||||||
else
|
else
|
||||||
puts("Failed to set memory breakpoint...");
|
puts("Failed to set memory breakpoint...");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue