]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Wait() return address hack.
authorToni Wilen <twilen@winuae.net>
Mon, 13 Jul 2015 16:09:51 +0000 (19:09 +0300)
committerToni Wilen <twilen@winuae.net>
Mon, 13 Jul 2015 16:09:51 +0000 (19:09 +0300)
debug.cpp

index 6048d20ab56bd2fb5f73a2eae5ff7729ae471335..1ff4afb54d47488fde9f4d168820f0b60e9d9e59 100644 (file)
--- a/debug.cpp
+++ b/debug.cpp
@@ -3174,7 +3174,8 @@ static void print_task_info (uaecptr node, bool nonactive)
                uae_u32 sigwait = get_long_debug(node + 22);
                if (sigwait)
                        console_out_f(_T("          Waiting signals: %08x\n"), sigwait);
-               uae_u32 sp = get_long_debug(node + 54) + 70;
+               int offset = kickstart_version >= 37 ? 74 : 70;
+               uae_u32 sp = get_long_debug(node + 54) + offset;
                uae_u32 pc = get_long_debug(sp);
                console_out_f(_T("          SP: %08x PC: %08x\n"), sp, pc);
        }