get_prev_frame, outer_frame_id and unwind->stop_reason checks are redundant.
authorPedro Alves <palves@redhat.com>
Thu, 28 Nov 2013 15:48:51 +0000 (15:48 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 28 Nov 2013 17:37:47 +0000 (17:37 +0000)
commit50fd528a13ff8a6131ead1b2635fa8a8cf828d80
treee09b1b4391e4a0715e53c0edffcfbe421fc18c91
parent5de51581685123bedd8160aec9a660e85e7a8b73
get_prev_frame, outer_frame_id and unwind->stop_reason checks are redundant.

After the previous patch, it should be clear that the
this_frame->unwind->stop_reason check is redundant with the
outer_frame_id check just below.  We can now move the frame_id_eq
comparison to the default this_frame->unwind->stop_reason callback.

Tested on x86_64 Fedora 17.

gdb/
2013-11-28  Pedro Alves  <palves@redhat.com>

* frame-unwind.c (default_frame_unwind_stop_reason): Return
UNWIND_OUTERMOST if the frame's ID is outer_frame_id.
* frame.c (get_prev_frame_1): Remove outer_frame_id check.
gdb/ChangeLog
gdb/frame-unwind.c
gdb/frame.c
This page took 0.027348 seconds and 4 git commands to generate.