unwind_pc
Andrew Cagney
cagney@gnu.org
Mon Feb 23 15:51:00 GMT 2004
> Hi All,
> Whats the main purpose of the unwind_pc() ? What is it
> supposed to do?. which target doesnt need it and why?
@item CORE_ADDR unwind_pc (struct frame_info *@var{this_frame})
@findex unwind_pc
@anchor{unwind_pc} Return the instruction address, in @var{this_frame}'s
caller, at which execution will resume after @var{this_frame} returns.
This is commonly refered to as the return address.
The implementation, which must be frame agnostic (work with any frame),
is typically no more than:
@smallexample
ULONGEST pc;
frame_unwind_unsigned_register (this_frame, D10V_PC_REGNUM, &pc);
return d10v_make_iaddr (pc);
@end smallexample
Andrew
More information about the Gdb
mailing list