summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-25 17:20:10 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-25 17:20:10 +0000
commit19799cddae21f1edc8ef1a040b190a9cebd090aa (patch)
tree82b082e6055815d9ac117b67bac10e9a91984907
parente613f4f380e41a04e31736f5b4218a865e1bc623 (diff)
downloadgcc-19799cddae21f1edc8ef1a040b190a9cebd090aa.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59460 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/ia64/unwind-ia64.c6
-rw-r--r--gcc/libgcc-std.ver1
-rw-r--r--gcc/unwind-dw2.c11
-rw-r--r--gcc/unwind-sjlj.c6
5 files changed, 31 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1847505ca96..dd51dfd8b3c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/ia64/unwind-ia64.c b/gcc/config/ia64/unwind-ia64.c
index e55f1f8c363..eba9df0b66d 100644
--- a/gcc/config/ia64/unwind-ia64.c
+++ b/gcc/config/ia64/unwind-ia64.c
@@ -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)
diff --git a/gcc/libgcc-std.ver b/gcc/libgcc-std.ver
index 6bc42213291..d448567f822 100644
--- a/gcc/libgcc-std.ver
+++ b/gcc/libgcc-std.ver
@@ -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
diff --git a/gcc/unwind-dw2.c b/gcc/unwind-dw2.c
index fd7db6adc67..41db09248a7 100644
--- a/gcc/unwind-dw2.c
+++ b/gcc/unwind-dw2.c
@@ -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)
diff --git a/gcc/unwind-sjlj.c b/gcc/unwind-sjlj.c
index 2293075e86e..59b54154ea3 100644
--- a/gcc/unwind-sjlj.c
+++ b/gcc/unwind-sjlj.c
@@ -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)) )