Update MemoryExceptionFilter.cpp
Fix comments, fix some UI and log typos, add newline
This commit is contained in:
parent
3d036a4aa8
commit
c30f1c6397
|
@ -27,7 +27,7 @@ bool CMipsMemoryVM::FilterX86Exception(uint32_t MemAddress, X86_CONTEXT & contex
|
|||
|
||||
if ((int32_t)(MemAddress) < 0 || MemAddress > 0x1FFFFFFF)
|
||||
{
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Invalid memory adderess: %X", MemAddress);
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Invalid memory address: %X", MemAddress);
|
||||
if (HaveDebugger())
|
||||
{
|
||||
g_Notify->BreakPoint(__FILE__, __LINE__);
|
||||
|
@ -445,7 +445,7 @@ bool CMipsMemoryVM::FilterArmException(uint32_t MemAddress, mcontext_t & context
|
|||
{
|
||||
if ((int32_t)(MemAddress) < 0 || MemAddress > 0x1FFFFFFF)
|
||||
{
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Invalid memory adderess: %X", MemAddress);
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Invalid memory address: %X", MemAddress);
|
||||
DumpArmExceptionInfo(MemAddress, context);
|
||||
g_Notify->BreakPoint(__FILE__, __LINE__);
|
||||
return false;
|
||||
|
@ -771,7 +771,7 @@ void CMipsMemoryVM::segv_handler(int signal, siginfo_t *siginfo, void *sigcontex
|
|||
{
|
||||
ucontext_t *ucontext = (ucontext_t*)sigcontext;
|
||||
|
||||
WriteTrace(TraceExceptionHandler, TraceNotice, "Segmentation Fault!");
|
||||
WriteTrace(TraceExceptionHandler, TraceNotice, "Segmentation fault!");
|
||||
WriteTrace(TraceExceptionHandler, TraceNotice, "info.si_signo = %d", signal);
|
||||
WriteTrace(TraceExceptionHandler, TraceNotice, "info.si_errno = %d", siginfo->si_errno);
|
||||
WriteTrace(TraceExceptionHandler, TraceNotice, "info.si_code = %d", siginfo->si_code);
|
||||
|
@ -818,8 +818,8 @@ void CMipsMemoryVM::segv_handler(int signal, siginfo_t *siginfo, void *sigcontex
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Failed quiting now");
|
||||
exit(0); //can't return to main, it's where the segfault occured.
|
||||
WriteTrace(TraceExceptionHandler, TraceError, "Failed! Quitting now...");
|
||||
exit(0); // Can't return to main, this is where the segmentation fault occurred
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -834,7 +834,7 @@ int32_t CMipsMemoryVM::MemoryFilter(uint32_t dwExptCode, void * lpExceptionPoint
|
|||
}
|
||||
}
|
||||
|
||||
//convert the pointer since we are not having win32 structures in headers
|
||||
// Convert the pointer since we are not having win32 structures in headers
|
||||
LPEXCEPTION_POINTERS lpEP = (LPEXCEPTION_POINTERS)lpExceptionPointer;
|
||||
uint32_t MemAddress = (char *)lpEP->ExceptionRecord->ExceptionInformation[1] - (char *)g_MMU->Rdram();
|
||||
|
||||
|
|
Loading…
Reference in New Issue