aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/config
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-08 03:56:15 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-08 03:56:15 +0000
commit83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4 (patch)
tree7bc495f5a38719162bac8efbe50d58ac9ea32bdf /gdb/testsuite/config
parentd02c80cdf4c8426e911e897c4c6a9aa950354b1b (diff)
downloadgdb-83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4.zip
gdb-83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4.tar.gz
gdb-83f66e8f3b8f3b6b31e243cc6308f2ffada1e4d4.tar.bz2
* config/sim.exp (gdb_load): Handle $arg == "".
* lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run. * gdb.objc/basicclass.exp: Use gdb_run_cmd.
Diffstat (limited to 'gdb/testsuite/config')
-rw-r--r--gdb/testsuite/config/sim.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/config/sim.exp b/gdb/testsuite/config/sim.exp
index 5d8a93d..6ecdc52 100644
--- a/gdb/testsuite/config/sim.exp
+++ b/gdb/testsuite/config/sim.exp
@@ -1,5 +1,5 @@
# Test Framework Driver for GDB driving a builtin simulator
-# Copyright 1994, 1997, 1998 Free Software Foundation, Inc.
+# Copyright 1994, 1997, 1998, 2004 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
@@ -55,7 +55,9 @@ proc gdb_load { arg } {
global GDB
global gdb_prompt
- if [gdb_file_cmd $arg] then { return -1 }
+ if { $arg != "" } {
+ if [gdb_file_cmd $arg] then { return -1 }
+ }
gdb_target_sim