From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Fernando Nasser Cc: Michael Snyder , Fernando Nasser , Daniel Jacobowitz , gdb-patches@sourceware.cygnus.com Subject: Re: [RFA] Testsuite addition for x86 linux GDB and SIGALRM fix Date: Wed, 25 Jul 2001 18:48:00 -0000 Message-id: <3B5F7700.6030407@cygnus.com> References: <200005192321.e4JNLEv13368@delius.kettenis.local> <3B3ABD6E.1040304@cygnus.com> <3B4A2056.4D58E307@cygnus.com> <20010709143406.A17003@nevyn.them.org> <3B4A2C7C.85C688C4@cygnus.com> <3B5F5218.5D55130E@cygnus.com> <3B5F595F.821DA2A5@redhat.com> X-SW-Source: 2001-07/msg00632.html > 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) Andrew