diff options
Diffstat (limited to 'libjava/exception.cc')
-rw-r--r-- | libjava/exception.cc | 4 |
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; |