From c8651133018e0b2f2fca32fd76484094991d2c43 Mon Sep 17 00:00:00 2001 From: gmh5225 <2315157@qq.com> Date: Sun, 19 Jun 2022 17:43:30 +0800 Subject: [PATCH] Fix crash --- GleeBug/Debugger.Loop.Exception.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GleeBug/Debugger.Loop.Exception.cpp b/GleeBug/Debugger.Loop.Exception.cpp index 86fcad9..ddf20e2 100644 --- a/GleeBug/Debugger.Loop.Exception.cpp +++ b/GleeBug/Debugger.Loop.Exception.cpp @@ -432,15 +432,14 @@ namespace GleeBug //TODO: check if the right type is accessed (ExceptionInformation[0]) //FIXED: auto bpxPage = mProcess->memoryBreakpointPages.find(exceptionAddress & ~(PAGE_SIZE - 1)); - auto pageAddr = bpxPage->first; - auto pageProperties = bpxPage->second; - if (bpxPage == mProcess->memoryBreakpointPages.end()) { sprintf_s(error, "Process::memoryBreakPointPages data structure is incosistent, should dump page at 0x%p", (void*)(exceptionAddress & ~(PAGE_SIZE - 1))); cbInternalError(error); return; } + auto pageAddr = bpxPage->first; + auto pageProperties = bpxPage->second; /* Access = 1,