Mercurial > hg > CbC > CbC_gcc
annotate libgcc/config/darwin10-unwind-find-enc-func.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 84e7813d76e9 |
children |
rev | line source |
---|---|
131 | 1 #include "tconfig.h" |
2 #include "tsystem.h" | |
3 #include "unwind-dw2-fde.h" | |
4 | |
5 void * | |
6 _darwin10_Unwind_FindEnclosingFunction (void *pc) | |
7 { | |
8 struct dwarf_eh_bases bases; | |
9 const struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases); | |
10 if (fde) | |
11 return bases.func; | |
12 return NULL; | |
13 } |