diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-02 08:18:08 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-02 08:18:08 +0000 |
commit | d00113a84265b56e68cbbc2e168b154ab63fbf63 (patch) | |
tree | fd8edbb31c14ab238a620eb1140740fcf432b281 /gcc/unwind-dw2-fde-darwin.c | |
parent | 6c33c345b6e938a5a2860a2e57fa7604f2312d5d (diff) | |
download | gcc-d00113a84265b56e68cbbc2e168b154ab63fbf63.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@156444 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-dw2-fde-darwin.c')
-rw-r--r-- | gcc/unwind-dw2-fde-darwin.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/unwind-dw2-fde-darwin.c b/gcc/unwind-dw2-fde-darwin.c index cd00ea22f4c..6245ed31979 100644 --- a/gcc/unwind-dw2-fde-darwin.c +++ b/gcc/unwind-dw2-fde-darwin.c @@ -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; +} + |