This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Accept simulator exit message
- From: Michael Snyder <msnyder at redhat dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: fnf at redhat dot com, Fernando Nasser <fnasser at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Sun, 20 Jan 2002 21:39:39 -0800
- Subject: Re: [RFA] Accept simulator exit message
- References: <200201060632.g066WrV00549@fred.ninemoons.com> <3C4B5CA7.8010003@cygnus.com>
Andrew Cagney wrote:
>
> Hello,
>
> Did anything come of this patch?
>
> Andrew
Hang on -- why would it say "program exited normally"?
That would be a bug -- since the program "main" actually
returned one.
I say, conditionalize this change on some Dejagnu variable
that indicates "target cannot return a value from main".
Michael
>
> > Accept the message we get when running the a2-run.exp test
> > with the simulator.
> >
> >
> > 2002-01-05 Fred Fish <fnf@redhat.com>
> >
> > * gdb.base/a2-run.exp: When run in the simulator, the exit
> > message is slightly different so accept that variation.
> >
> > Index: gdb.base/a2-run.exp
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/a2-run.exp,v
> > retrieving revision 1.3
> > diff -u -p -r1.3 a2-run.exp
> > --- a2-run.exp 2001/03/06 08:21:50 1.3
> > +++ a2-run.exp 2002/01/06 06:30:54
> > @@ -56,6 +56,7 @@ gdb_load ${binfile}
> >
> > # Run with no arguments.
> > # On VxWorks this justs make sure the program was run.
> > +# When run in the simulator, we get a slightly different exit message.
> > gdb_run_cmd
> >
> > if [istarget "*-*-vxworks*"] then {
> > @@ -78,6 +79,9 @@ if [istarget "*-*-vxworks*"] then {
> > } else {
> > gdb_expect {
> > -re ".*usage: factorial <number>.*Program exited with code 01.*$gdb_prompt $" {
> > + pass "run \"$testfile\" with no args"
> > + }
> > + -re ".*usage: factorial <number>.*Program exited normally.*$gdb_prompt $" {
> > pass "run \"$testfile\" with no args"
> > }
> > -re ".*$gdb_prompt $" {
> >
> >