libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.

2002-11-25  Andrew Haley  <aph@redhat.com>

        * libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
        * config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
        * unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
        * unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.

From-SVN: r59460
This commit is contained in:
Andrew Haley 2002-11-25 17:20:10 +00:00 committed by Andrew Haley
parent b4bbc8b7d3
commit 5dafd28231
5 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2002-11-25 Andrew Haley <aph@redhat.com>
* libgcc-std.ver (_Unwind_Find_Enclosing_Function): Add.
* config/ia64/unwind-ia64.c (_Unwind_Find_Enclosing_Function): New.
* unwind-sjlj.c (_Unwind_Find_Enclosing_Function): Likewise.
* unwind-dw2.c (_Unwind_Find_Enclosing_Function): Likewise.
2002-11-24 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.c (h8300_init_once): Fix a typo in the

View File

@ -1642,6 +1642,12 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context)
return context->region_start;
}
void *
_Unwind_Find_Enclosing_Function (void *pc)
{
return NULL;
}
static _Unwind_Reason_Code
uw_frame_state_for (struct _Unwind_Context *context, _Unwind_FrameState *fs)

View File

@ -158,6 +158,7 @@ GCC_3.0 {
_Unwind_Resume
_Unwind_SetGR
_Unwind_SetIP
_Unwind_Find_Enclosing_Function
__deregister_frame
__deregister_frame_info
__deregister_frame_info_bases

View File

@ -202,6 +202,17 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context)
return (_Unwind_Ptr) context->bases.func;
}
void *
_Unwind_Find_Enclosing_Function (void *pc)
{
struct dwarf_eh_bases bases;
struct dwarf_fde *fde = _Unwind_Find_FDE (pc-1, &bases);
if (fde)
return bases.func;
else
return NULL;
}
#ifndef __ia64__
_Unwind_Ptr
_Unwind_GetDataRelBase (struct _Unwind_Context *context)

View File

@ -208,6 +208,12 @@ _Unwind_GetRegionStart (struct _Unwind_Context *context __attribute__((unused))
return 0;
}
void *
_Unwind_Find_Enclosing_Function (void *pc)
{
return NULL;
}
#ifndef __ia64__
_Unwind_Ptr
_Unwind_GetDataRelBase (struct _Unwind_Context *context __attribute__((unused)) )