This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA] ending-run.exp
- To: Michael Snyder <msnyder at cygnus dot com>
- Subject: Re: [PATCH RFA] ending-run.exp
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Mon, 09 Jul 2001 16:25:18 -0400
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <3B40EB11.A026F84D@cygnus.com>
Michael Snyder wrote:
>
> This script seems to expect that, if you step past the return from main,
> you will end up in some sort of "start" function.
>
> Can anyone think of any reason why "Program exited normally" is not
> a legitimate output to see after stepping past the return from main?
>
Sorry for the delay, I was on vacation.
Well, main() is normally called from inside crt0 from some sort of "start" function. When you step past the return from main you should return to the frame above main, i.e., to after the call to main inside the "start" function in crt0.
If it is not stopping there it is either a bug or some new situation that did not use to exist.
I don't think we should accept "Program exited normally" until we understand a little bit more of what is actually happening when we get this message.
Regards,
Fernando
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9