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]
Other format: [Raw text]

Re: RFA: programs on stand-alone boards don't exit cleanly


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 $" {


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