libunwind-devel
[Top][All Lists]
Advanced

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

[libunwind] [patch] fix x86_64/Gget_proc_info


From: Max Asbock
Subject: [libunwind] [patch] fix x86_64/Gget_proc_info
Date: Thu, 26 Aug 2004 17:27:07 -0700

The unw_get_proc_info() function from my x86_64 patch is bogus.
It doesn't update the passed in proc info. Here is a fix for it.


Signed-off-by: Max Asbock <address@hidden>

max

diff -Nru a/src/x86_64/Gget_proc_info.c b/src/x86_64/Gget_proc_info.c
--- a/src/x86_64/Gget_proc_info.c       2004-08-26 17:15:42 -07:00
+++ b/src/x86_64/Gget_proc_info.c       2004-08-26 17:15:42 -07:00
@@ -31,6 +31,11 @@
 unw_get_proc_info (unw_cursor_t *cursor, unw_proc_info_t *pi)
 {
   struct cursor *c = (struct cursor *) cursor;
+  int ret;
 
-  return dwarf_make_proc_info (&c->dwarf);
+  if (ret = dwarf_make_proc_info (&c->dwarf))
+    return ret;
+
+  *pi = c->dwarf.pi;
+  return 0;
 }




reply via email to

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