[RFA] Testsuite addition for x86 linux GDB and SIGALRM fix

Michael Snyder msnyder@redhat.com
Wed Jul 25 21:29:00 GMT 2001


Andrew Cagney wrote:
> 
> > Michael Snyder wrote:
> >
> >>
> >> I must disagree.  Often, when you reach this line and you
> >> want to step into foo, you will not notice the call to bar
> >> until it is too late and you have stepped into bar.
> >>
> >> When that happens, the only way to reach foo is to "finish" from
> >> bar, and then step again.
> >>
> >
> >
> > As I have explained in this thread (one month ago), the single stepping
> > caused by finish would stop as soon as foo is entered -- exactly the
> > behavior you want.
> 
> I think that would be very counter intuitive.  The primatives are:
> 
>         o       step executes instructions until you
>                 leave the current line
>                 (be it enter a function or reach a new
>                 line)
> 
>         o       finish leaves the current function
>                 (reducing the stack depth by one)

I agree; I do not like the idea of this proposed 
enhancement of finish.  I think that if the source
looked like

	foo (bar ());

and I stepped into bar, then said "finish", and 
found myself in foo, I would find that confusing.
It would seem as if bar had been called from foo, 
which is not the case.

Michael



More information about the Gdb-patches mailing list