diff options
author | Bob Manson <manson@cygnus> | 1997-03-29 19:24:07 +0000 |
---|---|---|
committer | Bob Manson <manson@cygnus> | 1997-03-29 19:24:07 +0000 |
commit | d8482235481291de2b487e5ecc586a5470913a50 (patch) | |
tree | 140e783ba15ad6acb6f7afd4f4e7b6a61c936dd1 /gdb/testsuite/gdb.base/setshow.exp | |
parent | cd6a44090f0deea3c5705c1c92236d52c3bf3c00 (diff) | |
download | gdb-d8482235481291de2b487e5ecc586a5470913a50.zip gdb-d8482235481291de2b487e5ecc586a5470913a50.tar.gz gdb-d8482235481291de2b487e5ecc586a5470913a50.tar.bz2 |
* config/monitor.exp: Use gdb_serial in preference to serial
or netport.
* lib/gdb.exp: Set GDB to [transform gdb] if we're using a remote host
and it's not already set.
* gdb.base/setshow.exp: Only test the run command if the target
isn't using a stub and if it supports argument passing.
Diffstat (limited to 'gdb/testsuite/gdb.base/setshow.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/setshow.exp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp index a23d9b7..4f93e1b 100644 --- a/gdb/testsuite/gdb.base/setshow.exp +++ b/gdb/testsuite/gdb.base/setshow.exp @@ -1,4 +1,4 @@ -# Copyright (C) 1992, 1994 Free Software Foundation, Inc. +# Copyright (C) 1992, 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 @@ -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: # bug-gdb@prep.ai.mit.edu @@ -92,9 +92,13 @@ gdb_test "info line 1" "Line 1 of .* is at address .* but contains no code.*" " #test set args gdb_test "set args foo bar blup baz bubble" "" "set args" #test show args -gdb_test "show args" "Arguments to give program being debugged when it is started is \"foo bar blup baz bubble\"..*" "show args" -#test passing args -gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args" +gdb_test "show args" "Arguments to give program being debugged when it is started is \"foo bar blup baz bubble\"..*" "show args" + +# Don't test if we can't pass args or if we're using a stub. +if { ![target_info gdb,use_stub] && ![target_info gdb,noargs] } { + #test passing args + gdb_test "run" "Starting program:.*foo bar blup baz bubble.*" "passing args" +} #test set check range on gdb_test "set check range on" "" "set check range on" #test show check range on |