summaryrefslogtreecommitdiff
path: root/libjava/exception.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-27 21:24:23 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-27 21:24:23 +0000
commitaf6b961816167eb09054f3991c2301039c9bfb65 (patch)
treeb0c2bc5aedb4964cac31de895df848e4f19b09a2 /libjava/exception.cc
parent112f3d57258221d590353bf90d8981c0a4f524b6 (diff)
downloadgcc-af6b961816167eb09054f3991c2301039c9bfb65.tar.gz
2006-09-26 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/26792: * exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP if HAVE_GETIPINFO not defined. * stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise. (_Jv_StackTrace::getLineNumberForFrame): Likewise. * configure.ac: use GCC_CHECK_UNWIND_GETIPINFO. * aclocal.m4, configure, include/config.h.in, Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117259 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r--libjava/exception.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/exception.cc b/libjava/exception.cc
index 65bc4ed196b..3d8fda1d790 100644
--- a/libjava/exception.cc
+++ b/libjava/exception.cc
@@ -231,9 +231,13 @@ PERSONALITY_FUNCTION (int version,
// Parse the LSDA header.
p = parse_lsda_header (context, language_specific_data, &info);
+#ifdef HAVE_GETIPINFO
ip = _Unwind_GetIPInfo (context, &ip_before_insn);
if (! ip_before_insn)
--ip;
+#else
+ ip = _Unwind_GetIP (context) - 1;
+#endif
landing_pad = 0;
action_record = 0;
handler_switch_value = 0;