Lines Matching defs:unwind

38 #include "frame-unwind.h"
68 ->unwind->type. Unfortunately, legacy code is still explicitly
91 for the previous frame. The low-level unwind methods are
92 selected based on the presence, or otherwize, of register unwind
95 const struct frame_unwind *unwind;
186 fprintf_unfiltered (file, "unwind=");
187 if (fi->unwind != NULL)
188 gdb_print_host_address (fi->unwind, file);
229 if (fi->unwind == NULL)
231 fi->unwind = frame_unwind_find_by_frame (fi->next);
237 fi->type = fi->unwind->type;
240 fi->unwind->this_id (fi->next, &fi->prologue_cache, &fi->this_id.value);
384 method depends solely on the register-unwind code to
393 register-unwind implementation, it pays to fix that
526 /* NOTE: cagney/2002-11-27: A program trying to unwind a NULL frame
533 if (frame->unwind == NULL)
535 frame->unwind = frame_unwind_find_by_frame (frame->next);
541 frame->type = frame->unwind->type;
544 /* Ask this frame to unwind its register. See comment in
545 "frame-unwind.h" for why NEXT frame and this unwind cace are
547 frame->unwind->prev_register (frame->next, &frame->prologue_cache, regnum,
764 frame->unwind = sentinel_frame_unwind;
815 is wrapped in catch exceptions so that, even when the unwind of the
822 /* A sentinel frame can fail to unwind, eg, because it's PC value
1020 value. Pass the unwind request down the frame chain to the next
1032 by providing a default unwinder that refuses to unwind anything
1192 /* Select/initialize both the unwind function and the frame's type
1194 fi->unwind = frame_unwind_find_by_frame (fi->next);
1195 if (fi->unwind->type != UNKNOWN_FRAME)
1196 fi->type = fi->unwind->type;
1309 /* Handle sentinel frame unwind as a special case. */
1312 /* Try to unwind the PC. If that doesn't work, assume we've reached
1317 Note that the pc-unwind is intentionally performed before the
1345 /* Set the unwind functions based on that identified PC. Ditto
1347 prev->unwind = frame_unwind_find_by_frame (prev->next);
1348 if (prev->unwind->type == UNKNOWN_FRAME)
1351 prev->type = prev->unwind->type;
1363 PC to apply standard frame ID unwind techniques is just
1397 next) the old frame. If that happens the frame unwind is
1410 (passed to the unwind functions) to store additional frame
1412 legacy_get_prev_frame() to unwind the sentinel frame and,
1496 prev->unwind = frame_unwind_find_by_frame (this_frame->next);
1502 prev->type = prev->unwind->type;
1504 prev->unwind->this_id (this_frame,
1593 user-visible inner-most frame (...) and then unwind from that.
1598 Since there is always a frame to unwind from, there is always
1649 /* Initialize the code used to unwind the frame PREV based on the PC
1656 if (prev->unwind == NULL)
1657 prev->unwind = frame_unwind_find_by_frame (prev->next);
1661 if (prev->unwind->type != UNKNOWN_FRAME)
1663 prev->type = prev->unwind->type;
1795 /* Don't unwind past main(), bug always unwind the sentinel frame.
1814 be allowed to unwind. */
1851 will never unwind a zero PC. */
1866 /* Only try to do the unwind once. */
1882 Sentinel frames should always be allowed to unwind. */
1922 unwind to the prev frame. Be careful to not apply this test to
1936 the next frame. This happens when a frame unwind goes backwards.
1965 /* Don't yet compute ->unwind (and hence ->type). It is computed
2072 /* Sneaky: If the low-level unwind and high-level base code share a
2074 if (fi->base->unwind == fi->unwind)
2088 /* Sneaky: If the low-level unwind and high-level base code share a
2090 if (fi->base->unwind == fi->unwind)
2106 /* Sneaky: If the low-level unwind and high-level base code share a
2108 if (fi->base->unwind == fi->unwind)
2138 initialized. Don't attempt to lazily initialize ->unwind for
2140 if (frame->unwind == NULL && !legacy_frame_p (current_gdbarch))
2144 frame->unwind = frame_unwind_find_by_frame (frame->next);
2150 frame->type = frame->unwind->type;
2289 internal_error (__FILE__, __LINE__, "Missing unwind SP method");