diff options
author | Bob Manson <manson@cygnus> | 1997-03-06 22:32:25 +0000 |
---|---|---|
committer | Bob Manson <manson@cygnus> | 1997-03-06 22:32:25 +0000 |
commit | fa5864d5f76326ddf08eb561569b82f348fcb45c (patch) | |
tree | 6f4143546dff0ec514161c1edbae169bca160562 /gdb/testsuite/config | |
parent | 35106aae73c1a4fcfebcb83722c1c71b042a0474 (diff) | |
download | gdb-fa5864d5f76326ddf08eb561569b82f348fcb45c.zip gdb-fa5864d5f76326ddf08eb561569b82f348fcb45c.tar.gz gdb-fa5864d5f76326ddf08eb561569b82f348fcb45c.tar.bz2 |
Added and updated copyright notices to testsuite expect
scripts.
Diffstat (limited to 'gdb/testsuite/config')
-rw-r--r-- | gdb/testsuite/config/abug.exp | 19 | ||||
-rw-r--r-- | gdb/testsuite/config/cpu32bug.exp | 19 | ||||
-rw-r--r-- | gdb/testsuite/config/est.exp | 19 | ||||
-rw-r--r-- | gdb/testsuite/config/hmsirom.exp | 19 | ||||
-rw-r--r-- | gdb/testsuite/config/hppro.exp | 19 | ||||
-rw-r--r-- | gdb/testsuite/config/monitor.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/config/nind.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/config/sparclet-old.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/config/sparclet.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/config/udi.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/config/vx.exp | 26 | ||||
-rw-r--r-- | gdb/testsuite/config/vxworks29k.exp | 27 |
12 files changed, 144 insertions, 20 deletions
diff --git a/gdb/testsuite/config/abug.exp b/gdb/testsuite/config/abug.exp index 1a2f7a9..e6ade13 100644 --- a/gdb/testsuite/config/abug.exp +++ b/gdb/testsuite/config/abug.exp @@ -1 +1,20 @@ +# Copyright (C) 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + load_lib ../config/monitor.exp diff --git a/gdb/testsuite/config/cpu32bug.exp b/gdb/testsuite/config/cpu32bug.exp index 1a2f7a9..e6ade13 100644 --- a/gdb/testsuite/config/cpu32bug.exp +++ b/gdb/testsuite/config/cpu32bug.exp @@ -1 +1,20 @@ +# Copyright (C) 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + load_lib ../config/monitor.exp diff --git a/gdb/testsuite/config/est.exp b/gdb/testsuite/config/est.exp index 1a2f7a9..e6ade13 100644 --- a/gdb/testsuite/config/est.exp +++ b/gdb/testsuite/config/est.exp @@ -1 +1,20 @@ +# Copyright (C) 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + load_lib ../config/monitor.exp diff --git a/gdb/testsuite/config/hmsirom.exp b/gdb/testsuite/config/hmsirom.exp index 4198230..75fc81d 100644 --- a/gdb/testsuite/config/hmsirom.exp +++ b/gdb/testsuite/config/hmsirom.exp @@ -1,3 +1,22 @@ +# Copyright (C) 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + # Support for testing against a Hitachi SH3 target rom load_lib ../config/monitor.exp diff --git a/gdb/testsuite/config/hppro.exp b/gdb/testsuite/config/hppro.exp index f015c86..0fca142 100644 --- a/gdb/testsuite/config/hppro.exp +++ b/gdb/testsuite/config/hppro.exp @@ -1,3 +1,22 @@ +# Copyright (C) 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# bug-gdb@prep.ai.mit.edu + load_lib ../config/monitor.exp # Hppro monitor is very slow... diff --git a/gdb/testsuite/config/monitor.exp b/gdb/testsuite/config/monitor.exp index b7591e2..59f86f0 100644 --- a/gdb/testsuite/config/monitor.exp +++ b/gdb/testsuite/config/monitor.exp @@ -1,5 +1,5 @@ # Test Framework Driver for GDB driving a ROM monitor (via monitor.c). -# Copyright 1995 Free Software Foundation, Inc. +# Copyright 1995, 1997 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 @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. load_lib gdb.exp diff --git a/gdb/testsuite/config/nind.exp b/gdb/testsuite/config/nind.exp index dc8006a..d8aecdb 100644 --- a/gdb/testsuite/config/nind.exp +++ b/gdb/testsuite/config/nind.exp @@ -1,5 +1,5 @@ # Test Framework Driver -# Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc. +# Copyright (C) 1988, 1990, 1991, 1992, 1997 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 @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Please email any bugs, comments, and/or additions to this file to: # DejaGnu@cygnus.com diff --git a/gdb/testsuite/config/sparclet-old.exp b/gdb/testsuite/config/sparclet-old.exp index 9d0f1ae..5a9dd91 100644 --- a/gdb/testsuite/config/sparclet-old.exp +++ b/gdb/testsuite/config/sparclet-old.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1996 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997 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 diff --git a/gdb/testsuite/config/sparclet.exp b/gdb/testsuite/config/sparclet.exp index 4dd193c..0556719 100644 --- a/gdb/testsuite/config/sparclet.exp +++ b/gdb/testsuite/config/sparclet.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1996 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997 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 diff --git a/gdb/testsuite/config/udi.exp b/gdb/testsuite/config/udi.exp index 0c32de5..6ec7c3f 100644 --- a/gdb/testsuite/config/udi.exp +++ b/gdb/testsuite/config/udi.exp @@ -1,5 +1,5 @@ # Test Framework Driver for GDB driving Universal Debug Interface on 29K -# Copyright 1988, 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc. +# Copyright 1988, 1990, 1991, 1992, 1993, 1994, 1997 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 @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Please email any bugs, comments, and/or additions to this file to: # DejaGnu@cygnus.com diff --git a/gdb/testsuite/config/vx.exp b/gdb/testsuite/config/vx.exp index daf826e..f34452c 100644 --- a/gdb/testsuite/config/vx.exp +++ b/gdb/testsuite/config/vx.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1988, 1990, 1991, 1992, 1995 Free Software Foundation, Inc. +# Copyright (C) 1988, 1990, 1991, 1992, 1995, 1997 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 @@ -12,7 +12,7 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Please email any bugs, comments, and/or additions to this file to: # DejaGnu@cygnus.com @@ -24,7 +24,6 @@ # load_lib remote.exp load_lib gdb.exp -load_lib vxworks.exp set shell_prompt "->" set gdb_prompt "\\(vxgdb\\)" @@ -63,10 +62,13 @@ proc gdb_start { } { global reboot # get a connection to the board - set shell_id [remote_open target] - if { $shell_id < 0 } then { - perror "Couldn't connect to target." - return -1 + for { set x 0; } { $x < 3 } { incr x } { + set shell_id [remote_open target] + if { $shell_id > 0 } { + break; + } else { + remote_reboot target; + } } verbose "Spawn id for remote shell is $shell_id" @@ -107,17 +109,17 @@ proc spawn_vxgdb { } { # set the default arguments to "main", so that "run" with no # arguments will work correctly. - send "set args main\n" - expect -re ".*$gdb_prompt $" {} + send_gdb "set args main\n" + gdb_expect -re ".*$gdb_prompt $" {} verbose "Setting up target, Please wait..." # set targets hostname - send "target vxworks [target_info netport]\n" + send_gdb "target vxworks [target_info hostname]\n" set timeout 60 verbose "Timeout is now $timeout seconds" 2 - expect { + gdb_expect { -re "Done\..*$gdb_prompt $" { - verbose "Set target to [target_info netport]" 1 + verbose "Set target to [target_info hostname]" 1 } -re "net_connect: RPC: Program not registered.*$" { perror "Couldn't set GDB to target [target_info netport]." diff --git a/gdb/testsuite/config/vxworks29k.exp b/gdb/testsuite/config/vxworks29k.exp new file mode 100644 index 0000000..112b871 --- /dev/null +++ b/gdb/testsuite/config/vxworks29k.exp @@ -0,0 +1,27 @@ +# Copyright (C) 1995, 1997 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 +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +# Please email any bugs, comments, and/or additions to this file to: +# DejaGnu@cygnus.com + +# This file was written by Brendan Kehoe (brendan@cygnus.com). + +# We need this file here because the targetname for the 29k board +# is `vxworks29k', not `vxworks'. That way other tools (e.g., gcc) +# can differentiate between the stuff run on that board and others. + +verbose "Loading ${srcdir}/config/vx-gdb.exp" +source ${srcdir}/config/vx-gdb.exp |