This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: programs on stand-alone boards don't exit cleanly
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 20 Jun 2002 13:18:34 -0500
- Subject: Re: RFA: programs on stand-alone boards don't exit cleanly
- References: <20010905215509.197755E9D8@zwingli.cygnus.com>
Ping to test suite maintainers --- this patch needs review.
Jim Blandy <jimb@cygnus.com> writes:
> 2001-09-05 Jim Blandy <jimb@redhat.com>
>
> * gdb.base/ending-run.exp: Don't expect to see the program end in
> some orderly fashion when we're running on a real stand-alone
> board.
>
> Index: gdb/testsuite/gdb.base/ending-run.exp
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/testsuite/gdb.base/ending-run.exp,v
> retrieving revision 1.11.66.1
> diff -c -r1.11.66.1 ending-run.exp
> *** gdb/testsuite/gdb.base/ending-run.exp 2001/06/15 16:03:34 1.11.66.1
> --- gdb/testsuite/gdb.base/ending-run.exp 2001/09/05 21:51:52
> ***************
> *** 164,170 ****
> timeout { fail "hang or timeout on step at end 1" }
> }
>
> ! if {![target_info exists use_cygmon] || ![target_info use_cygmon]} {
> send_gdb "n\n"
> gdb_expect {
> -re "Program exited normally.*$gdb_prompt $" {
> --- 164,175 ----
> timeout { fail "hang or timeout on step at end 1" }
> }
>
> ! # When we're talking to a program running on a real stand-alone board,
> ! # every BSP's exit function behaves differently, so there's no single
> ! # way to tell whether we've exited gracefully or not. So don't run
> ! # these tests when use_gdb_stub is set, or when we're running under Cygmon.
> ! if {! [target_info exists use_gdb_stub]
> ! && (! [target_info exists use_cygmon] || ! [target_info use_cygmon])} {
> send_gdb "n\n"
> gdb_expect {
> -re "Program exited normally.*$gdb_prompt $" {