mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-28 01:36:36 +00:00
fix windows 64bit build in mem_displayer.cpp
This commit is contained in:
parent
6bf6b5f0df
commit
b99dab48c6
1 changed files with 11 additions and 3 deletions
|
@ -282,12 +282,20 @@ static void displayCallStack (CLog *log)
|
||||||
|
|
||||||
STACKFRAME callStack;
|
STACKFRAME callStack;
|
||||||
::ZeroMemory (&callStack, sizeof(callStack));
|
::ZeroMemory (&callStack, sizeof(callStack));
|
||||||
|
|
||||||
|
#ifdef NL_OS_WIN64
|
||||||
|
callStack.AddrPC.Offset = context.Rip;
|
||||||
|
callStack.AddrStack.Offset = context.Rsp;
|
||||||
|
callStack.AddrFrame.Offset = context.Rbp;
|
||||||
|
#else
|
||||||
|
callStack.AddrPC.Offset = context.Eip;
|
||||||
|
callStack.AddrStack.Offset = context.Esp;
|
||||||
|
callStack.AddrFrame.Offset = context.Ebp;
|
||||||
|
#endif
|
||||||
|
|
||||||
callStack.AddrPC.Mode = AddrModeFlat;
|
callStack.AddrPC.Mode = AddrModeFlat;
|
||||||
callStack.AddrPC.Offset = context.Eip;
|
|
||||||
callStack.AddrStack.Mode = AddrModeFlat;
|
callStack.AddrStack.Mode = AddrModeFlat;
|
||||||
callStack.AddrStack.Offset = context.Esp;
|
|
||||||
callStack.AddrFrame.Mode = AddrModeFlat;
|
callStack.AddrFrame.Mode = AddrModeFlat;
|
||||||
callStack.AddrFrame.Offset = context.Ebp;
|
|
||||||
|
|
||||||
for (uint32 i = 0; ; i++)
|
for (uint32 i = 0; ; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue