Set the stepping range from the function@PC, not@stop_pc.

Pedro Alves pedro@codesourcery.com
Fri Dec 5 22:43:00 GMT 2008


On Friday 05 December 2008 20:43:28, Daniel Jacobowitz wrote:
> On Fri, Dec 05, 2008 at 09:30:38PM +0100, Ulrich Weigand wrote:
> > > I think it's obvious after the discussion, but I'd still like to
> > > have your approval.  OK?  Any objections?
> > 
> > It might be better to use get_frame_pc (frame) instead of read_pc (),
> 
> Yes, please.
> 

Good idea.  I wonder if this I've checked this in then.  There are two
other instances of read_pc in infcmd.c that could use the same idiom --- I
guess these calls predate the sentinel frame.

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: step_func_pc.diff
Type: text/x-diff
Size: 1706 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20081205/a30d7485/attachment.bin>


More information about the Gdb-patches mailing list