libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 1/2] Restore the interpretation of the NULL %rb


From: Konstantin Belousov
Subject: [Libunwind-devel] [PATCH 1/2] Restore the interpretation of the NULL %rbp location as end of frame chain.
Date: Mon, 17 Sep 2012 17:39:14 +0300

From: Konstantin Belousov <address@hidden>

---
 src/x86_64/Gstep.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c
index e05fcae..9d8c2cf 100644
--- a/src/x86_64/Gstep.c
+++ b/src/x86_64/Gstep.c
@@ -196,6 +196,12 @@ unw_step (unw_cursor_t *cursor)
           c->dwarf.loc[RIP] = rip_loc;
        }
 
+      if (DWARF_IS_NULL_LOC (c->dwarf.loc[RBP]))
+        {
+        ret = 0;
+        Debug (2, "NULL %rbp loc, returning %d\n", ret);
+        return ret;
+        }
       c->dwarf.ret_addr_column = RIP;
 
       if (!DWARF_IS_NULL_LOC (c->dwarf.loc[RIP]))
-- 
1.7.11.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]