OSDN Git Service

2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Feb 2010 08:18:08 +0000 (08:18 +0000)
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Feb 2010 08:18:08 +0000 (08:18 +0000)
PR java/41991
* unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
as _darwin10_Unwind_FindEnclosingFunction().
* libgcc-libsystem.ver: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156444 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/libgcc-libsystem.ver [new file with mode: 0644]
gcc/unwind-dw2-fde-darwin.c

index 0755576..68ad754 100644 (file)
@@ -1,3 +1,10 @@
+2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
+
+       PR java/41991
+       * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
+       as _darwin10_Unwind_FindEnclosingFunction().
+       * libgcc-libsystem.ver: New.
+
 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
 
        PR target/41399
diff --git a/gcc/libgcc-libsystem.ver b/gcc/libgcc-libsystem.ver
new file mode 100644 (file)
index 0000000..4763174
--- /dev/null
@@ -0,0 +1 @@
+_darwin10_Unwind_FindEnclosingFunction
index cd00ea2..6245ed3 100644 (file)
@@ -273,3 +273,15 @@ _Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases)
                                          the_obj_info);
   return ret;
 }
+
+void *
+_darwin10_Unwind_FindEnclosingFunction (void *pc)
+{
+  struct dwarf_eh_bases bases;
+  const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases);
+  if (fde)
+    return bases.func;
+  else
+    return NULL;
+}
+