2012-01-17 Pedro Alves <palves@redhat.com>

* dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
	the frame's stop reason is UNWIND_UNAVAILABLE.
This commit is contained in:
Pedro Alves 2012-01-17 14:03:33 +00:00
parent 032fbb7a3a
commit c0bf857deb
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-01-17 Pedro Alves <palves@redhat.com>
* dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
the frame's stop reason is UNWIND_UNAVAILABLE.
2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix compilation error.

View File

@ -1490,6 +1490,10 @@ dwarf2_frame_cfa (struct frame_info *this_frame)
if (!frame_unwinder_is (this_frame, &dwarf2_frame_unwind)
&& !frame_unwinder_is (this_frame, &dwarf2_tailcall_frame_unwind))
error (_("can't compute CFA for this frame"));
if (get_frame_unwind_stop_reason (this_frame) == UNWIND_UNAVAILABLE)
throw_error (NOT_AVAILABLE_ERROR,
_("can't compute CFA for this frame: "
"required registers or memory are unavailable"));
return get_frame_base (this_frame);
}