[haiku-commits] haiku: hrev46047 - src/apps/debugger/arch/x86_64

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 14 Sep 2013 17:02:43 +0200 (CEST)

hrev46047 adds 1 changeset to branch 'master'
old head: b5082c11ccf6875056602a934e02c73a9ed1fa71
new head: 74e89b3446edc07dbede8abe626e78f4220abb8e
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=74e89b3+%5Eb5082c1

----------------------------------------------------------------------------

74e89b3: Fix accidentally truncated addresses in call frame unwind.

                                      [ Rene Gollent <anevilyak@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev46047
Commit:      74e89b3446edc07dbede8abe626e78f4220abb8e
URL:         http://cgit.haiku-os.org/haiku/commit/?id=74e89b3
Author:      Rene Gollent <anevilyak@xxxxxxxxx>
Date:        Sat Sep 14 15:07:55 2013 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 2 deletions(-)
src/apps/debugger/arch/x86_64/ArchitectureX8664.cpp | 4 ++--

----------------------------------------------------------------------------

diff --git a/src/apps/debugger/arch/x86_64/ArchitectureX8664.cpp 
b/src/apps/debugger/arch/x86_64/ArchitectureX8664.cpp
index 0922808..73bd4a5 100644
--- a/src/apps/debugger/arch/x86_64/ArchitectureX8664.cpp
+++ b/src/apps/debugger/arch/x86_64/ArchitectureX8664.cpp
@@ -315,8 +315,8 @@ ArchitectureX8664::CreateStackFrame(Image* image, 
FunctionDebugInfo* function,
 
                // The syscall stubs are frameless, the return address is on 
top of the
                // stack.
-               uint32 rsp = cpuState->IntRegisterValue(X86_64_REGISTER_RSP);
-               uint32 address;
+               uint64 rsp = cpuState->IntRegisterValue(X86_64_REGISTER_RSP);
+               uint64 address;
                if (fTeamMemory->ReadMemory(rsp, &address, 8) == 8) {
                        returnAddress = address;
                        previousFramePointer = framePointer;


Other related posts:

  • » [haiku-commits] haiku: hrev46047 - src/apps/debugger/arch/x86_64 - anevilyak