I think there is a small syntax problem in current git tree.
I'm sending the correction.

best regards,

-- 
Jose Flavio Aguilar Paulino
([EMAIL PROTECTED])
System / Software Engineer

Toolchain Team
LTC, Linux Technology Center
IBM Brazil
Index: libunwindTest3/libunwind/src/ppc64/get_func_addr.c
===================================================================
--- libunwindTest3.orig/libunwind/src/ppc64/get_func_addr.c
+++ libunwindTest3/libunwind/src/ppc64/get_func_addr.c
@@ -35,8 +35,10 @@ tdep_get_func_addr (unw_addr_space_t as,
   int ret;
 
   a = unw_get_accessors (as);
-  /* entry-point is stored in the 1st word of the function descriptor: */
-  ret = (a->access_mem) (as, addr + offset, entry_point, 0, NULL);
+  /* entry-point is stored in the 1st word of the function descriptor.
+     In current ABI its not necessary to add an offset, it can be diferent
+     in the future, if that happens you read mem in addr + offset */
+  ret = (a->access_mem) (as, addr, entry_point, 0, NULL);
   if (ret < 0)
 	  return ret;
   return 0;
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to