Index: gcc/gcc/unwind-dw2-fde-darwin.c |
diff --git a/gcc/gcc/unwind-dw2-fde-darwin.c b/gcc/gcc/unwind-dw2-fde-darwin.c |
index cd00ea22f4cb7f9824abccda944474d2f33ef2c1..a672e936d5bdf0f1cef956f896a982caef9f9ff4 100644 |
--- a/gcc/gcc/unwind-dw2-fde-darwin.c |
+++ b/gcc/gcc/unwind-dw2-fde-darwin.c |
@@ -1,4 +1,5 @@ |
-/* Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. |
+/* Copyright (C) 2001, 2002, 2003, 2005, 2009, 2010 |
+ Free Software Foundation, Inc. |
This file is part of GCC. |
@@ -273,3 +274,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; |
+} |
+ |