This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


On Mon, Jul 09, 2001 at 05:21:26PM -0400, Fernando Nasser wrote:
> W.r.t. the tests for HP and IA64 I sincerely regret that we do not
> have two commands: "finishi" and "finish".  The current behavior of
> "finish" (stop at the assembler instruction after the call) is very
> unsettling for someone who is doing source level debugging -- in this
> case it should, after returning, single step until the end of the
> sourceline where the call is ("if it is not at the beginning of a
> source line after the return, single step to the end of it" would
> do).

I think that the current behavior of finish, while awkward, is better
than what you're suggesting here.  Suppose we have:
  foo (bar (x));
and we want to step in to foo.  There's two ways to do it; a breakpoint
on foo, or step - finish - step.  Stepping in to bar, typing finish,
and ending up after the call to foo would be exceedingly non-intuitive.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]