X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fdwarf2-frame-tailcall.c;h=1b614ad8f1a8d8bc989bd85601d2480b5417af79;hb=3cb5a3a16af2cae1a5059b7571c514b3fa575df9;hp=4cf7f5ff63abe94358c1aaa3d842e0ad84ac71cf;hpb=42a4f53d2bf8938c2aeda9f52be7a20534b214a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/dwarf2-frame-tailcall.c b/gdb/dwarf2-frame-tailcall.c index 4cf7f5ff63..1b614ad8f1 100644 --- a/gdb/dwarf2-frame-tailcall.c +++ b/gdb/dwarf2-frame-tailcall.c @@ -28,6 +28,7 @@ #include "regcache.h" #include "value.h" #include "dwarf2-frame.h" +#include "gdbarch.h" /* Contains struct tailcall_cache indexed by next_bottom_frame. */ static htab_t cache_htab; @@ -44,7 +45,7 @@ struct tailcall_cache tailcall_cache. */ int refc; - /* Associated found virtual taill call frames chain, it is never NULL. */ + /* Associated found virtual tail call frames chain, it is never NULL. */ struct call_site_chain *chain; /* Cached pretended_chain_levels result. */ @@ -377,7 +378,7 @@ dwarf2_tailcall_sniffer_first (struct frame_info *this_frame, this_pc = get_frame_address_in_block (this_frame); /* Catch any unwinding errors. */ - TRY + try { int sp_regnum; @@ -399,13 +400,12 @@ dwarf2_tailcall_sniffer_first (struct frame_info *this_frame, } } } - CATCH (except, RETURN_MASK_ERROR) + catch (const gdb_exception_error &except) { if (entry_values_debug) exception_print (gdb_stdout, except); return; } - END_CATCH /* Ambiguous unwind or unambiguous unwind verified as matching. */ if (chain == NULL || chain->length == 0)