fix crash handler for ARM
This commit is contained in:
parent
fd9b9a85ce
commit
a394033872
|
@ -53,7 +53,7 @@ void crashHandler(int signum, siginfo_t* info, void* secret)
|
||||||
ss << " ebp = " << context.uc_mcontext.gregs[REG_EBP] << std::endl;
|
ss << " ebp = " << context.uc_mcontext.gregs[REG_EBP] << std::endl;
|
||||||
ss << " esp = " << context.uc_mcontext.gregs[REG_ESP] << std::endl;
|
ss << " esp = " << context.uc_mcontext.gregs[REG_ESP] << std::endl;
|
||||||
ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl;
|
ss << " efl = " << context.uc_mcontext.gregs[REG_EFL] << std::endl;
|
||||||
#else // 64-bit
|
#elif __WORDSIZE == 64
|
||||||
ss << " at rip = " << context.uc_mcontext.gregs[REG_RIP] << std::endl;
|
ss << " at rip = " << context.uc_mcontext.gregs[REG_RIP] << std::endl;
|
||||||
ss << " rax = " << context.uc_mcontext.gregs[REG_RAX] << std::endl;
|
ss << " rax = " << context.uc_mcontext.gregs[REG_RAX] << std::endl;
|
||||||
ss << " rbx = " << context.uc_mcontext.gregs[REG_RBX] << std::endl;
|
ss << " rbx = " << context.uc_mcontext.gregs[REG_RBX] << std::endl;
|
||||||
|
|
|
@ -472,7 +472,6 @@ LRESULT WIN32Window::windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
case WM_MOVE: {
|
case WM_MOVE: {
|
||||||
m_pos.x = LOWORD(lParam);
|
m_pos.x = LOWORD(lParam);
|
||||||
m_pos.y = HIWORD(lParam);
|
m_pos.y = HIWORD(lParam);
|
||||||
dump << m_pos;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_SIZE: {
|
case WM_SIZE: {
|
||||||
|
|
Loading…
Reference in New Issue