mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-22 04:30:03 +00:00
15 lines
300 B
C
15 lines
300 B
C
#include "tconfig.h"
|
|
#include "tsystem.h"
|
|
#include "unwind-dw2-fde.h"
|
|
#include "libgcc_tm.h"
|
|
|
|
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;
|
|
return NULL;
|
|
}
|