Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: gcc/gcc/unwind-dw2-fde-darwin.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/unwind-dw2.c ('k') | gcc/gcc/value-prof.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
+
« no previous file with comments | « gcc/gcc/unwind-dw2.c ('k') | gcc/gcc/value-prof.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698