This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Testsuite addition for x86 linux GDB and SIGALRM fix
- To: Fernando Nasser <fnasser at redhat dot com>
- Subject: Re: [RFA] Testsuite addition for x86 linux GDB and SIGALRM fix
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Thu, 26 Jul 2001 17:44:32 +0300 (IDT)
- cc: Andrew Cagney <ac131313 at cygnus dot com>, Michael Snyder <msnyder at cygnus dot com>, Daniel Jacobowitz <dmj+ at andrew dot cmu dot edu>, gdb-patches at sourceware dot cygnus dot com
On Thu, 26 Jul 2001, Fernando Nasser wrote:
> "finish" is a source level command and source level commands should not
> leave you in the middle of source lines.
I think I could agree with the general principle, but the wording is
probably somewhat ambiguous. We could have
>
> Once finished the call it was in it should either:
> 1) stop at the beginning of the next source level instruction -- the one
> after the call (remember, it is a source level command)
> 2) stop after the prolog of a subroutine if there is another call in the
> same originating upper level source line.
>
>
> When the user issues a "step" on 'foo (bar ())' source line, he/she may
> want to enter either bar() or foo(). We cannot know that, so we must
> stop at each one and he/she can go to the next by issuing "finish",
> i.e., "finish _this_ subroutine". When he/she doesn't want to stop
> anymore (i.e., bar() was the one they were interested into), a "next"
> can be used.
>
>
>
>
> --
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>