diff options
author | John Gilmore <gnu@cygnus> | 1993-08-12 02:51:51 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1993-08-12 02:51:51 +0000 |
commit | 7a7d682b98531748a5587e5d013407c42d0a6dc6 (patch) | |
tree | f24abbb2ea608c8e38df7418454217e57048ad0f /gdb/testsuite/config | |
parent | a339de272f416e89afb14373a0a58b443fcfc7b2 (diff) | |
download | gdb-7a7d682b98531748a5587e5d013407c42d0a6dc6.zip gdb-7a7d682b98531748a5587e5d013407c42d0a6dc6.tar.gz gdb-7a7d682b98531748a5587e5d013407c42d0a6dc6.tar.bz2 |
* lib/gdb.exp (gdb_exit): Move the best version of gdb_exit
to here.
* config/{mips-gdb.exp, nind-gdb.exp, udi-gdb.exp, vx-gdb.exp}:
Remove various versions of gdb_exit.
* config/vx-gdb.exp: Remove quit_vxgdb, change a caller to call
gdb_exit.
* config/unix-gdb.exp: gdb_exit remains here, and should override
the generic version, since it's doing a lot of wierd stuff that
the other versions aren't. FIXME, fold it in, or abandon this
version.
Diffstat (limited to 'gdb/testsuite/config')
-rw-r--r-- | gdb/testsuite/config/mips-gdb.exp | 33 | ||||
-rw-r--r-- | gdb/testsuite/config/nind-gdb.exp | 31 | ||||
-rw-r--r-- | gdb/testsuite/config/udi-gdb.exp | 39 | ||||
-rw-r--r-- | gdb/testsuite/config/vx-gdb.exp | 34 |
4 files changed, 4 insertions, 133 deletions
diff --git a/gdb/testsuite/config/mips-gdb.exp b/gdb/testsuite/config/mips-gdb.exp index c77fb22..c15dfb2 100644 --- a/gdb/testsuite/config/mips-gdb.exp +++ b/gdb/testsuite/config/mips-gdb.exp @@ -107,39 +107,6 @@ proc gdb_load { arg } { } # -# gdb_exit -- exit the GDB -# -proc gdb_exit {} { - global GDB - global GDBFLAGS - global verbose - - set timeout 5 - send "quit\n" - expect { - eof { - if $verbose>1 then { - send_user "Got EOF from $GDB\n" - } - } - timeout { - if $verbose>1 then { - send_user "Got TIMEOUT from $GDB\n" - } - } - -re "The program is running. Quit anyway.*? (y or n) $" { - send "y\n" - if $verbose>1 then { - send_user "\t\tKilling program being debugged\n" - } - } - } - if $verbose>1 then { - send_user "Quitting $GDB $GDBFLAGS\n" - } -} - -# # gdb_start -- start GDB running. # proc gdb_start { } { diff --git a/gdb/testsuite/config/nind-gdb.exp b/gdb/testsuite/config/nind-gdb.exp index 3f561ab..a418dcf 100644 --- a/gdb/testsuite/config/nind-gdb.exp +++ b/gdb/testsuite/config/nind-gdb.exp @@ -53,37 +53,6 @@ proc gdb_load { arg } { } # -# gdb_exit -- exit the debugger -# -proc gdb_exit {} { - global GDB - global GDBFLAGS - global verbose - send "quit\n" - expect { - eof { - if $verbose>1 then { - send_user "Got EOF from $GDB\n" - } - } - timeout { - if $verbose>1 then { - send_user "Got TIMEOUT from $GDB\n" - } - } - -re "The program is running. Quit anyway.*? (y or n) $"\ - { send "y\n" - if $verbose>1 then { - send_user "\t\tKilling program being debugged\n" - } - } - } - if $verbose>1 then { - send_user "Quitting $GDB $GDBFLAGS\n" - } -} - -# # gdb_start -- start GDB running # proc gdb_start { } { diff --git a/gdb/testsuite/config/udi-gdb.exp b/gdb/testsuite/config/udi-gdb.exp index c12c3aa..a59ff43 100644 --- a/gdb/testsuite/config/udi-gdb.exp +++ b/gdb/testsuite/config/udi-gdb.exp @@ -1,6 +1,6 @@ -# Test Framework Driver -# Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc. - +# Test Framework Driver for GDB driving Universal Debug Interface on 29K +# Copyright 1988, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -87,39 +87,6 @@ proc gdb_load { arg } { } # -# gdb_exit -- exit the GDB -# -proc gdb_exit {} { - global GDB - global GDBFLAGS - global verbose - - set timeout 5 - send "quit\n" - expect { - eof { - if $verbose>1 then { - send_user "Got EOF from $GDB\n" - } - } - timeout { - if $verbose>1 then { - send_user "Got TIMEOUT from $GDB\n" - } - } - -re "The program is running. Quit anyway.*? (y or n) $"\ - { send "y\n" - if $verbose>1 then { - send_user "\t\tKilling program being debugged\n" - } - } - } - if $verbose>1 then { - send_user "Quitting $GDB $GDBFLAGS\n" - } -} - -# # gdb_target_udi # Set gdb to the desired UDI target # diff --git a/gdb/testsuite/config/vx-gdb.exp b/gdb/testsuite/config/vx-gdb.exp index 7dec9f8..0a7155a 100644 --- a/gdb/testsuite/config/vx-gdb.exp +++ b/gdb/testsuite/config/vx-gdb.exp @@ -56,7 +56,7 @@ proc gdb_load { arg } { global base_dir global prompt global GDB - quit_vxgdb + gdb_exit spawn_vxgdb set loadfile [file tail $arg] set loadpath [file dirname $arg] @@ -112,38 +112,6 @@ proc gdb_load { arg } { } # -# -# -proc gdb_exit {} { - global shell_id - -# exit_remote_shell $shell_id - catch quit_vxgdb -} - -proc quit_vxgdb { } { - global GDB - global GDBFLAGS - global verbose - - set timeout 1 - send "quit\n" - expect { - eof { - verbose "Got EOF from $GDB" 2 - } - timeout { - verbose "Got TIMEOUT from $GDB" 2 - } - -re "The program is running. Quit anyway.*(y or n) $" { - send "y\n" - verbose "Killing program being debugged" 1 - } - } - verbose "Quitting $GDB $GDBFLAGS" 1 -} - -# # gdb_start -- start gdb running and # proc gdb_start { } { |