Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* unwind_pc
@ 2004-02-23 14:11 Vineet Sharma, Noida
  2004-02-23 15:51 ` unwind_pc Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Vineet Sharma, Noida @ 2004-02-23 14:11 UTC (permalink / raw)
  To: gdb


Hi All,
		Whats the main purpose of the unwind_pc() ? What is it
supposed to do?. which target doesnt need it and why?

Regards
Vineet


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: unwind_pc
  2004-02-23 14:11 unwind_pc Vineet Sharma, Noida
@ 2004-02-23 15:51 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2004-02-23 15:51 UTC (permalink / raw)
  To: Vineet Sharma, Noida; +Cc: gdb

> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-23 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 14:11 unwind_pc Vineet Sharma, Noida
2004-02-23 15:51 ` unwind_pc Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox