diff options
author | Bob Manson <manson@cygnus> | 1997-06-29 04:05:41 +0000 |
---|---|---|
committer | Bob Manson <manson@cygnus> | 1997-06-29 04:05:41 +0000 |
commit | b14f3a01ff28b660a68d7c0a1909b3afd12a7d1f (patch) | |
tree | 9115a5c4f7681685bc3c19d4d1d9f5eaf35fc08c /gdb/testsuite/lib | |
parent | 50fb79778f49e57f1f5d72a05e296d94b6c1c05e (diff) | |
download | gdb-b14f3a01ff28b660a68d7c0a1909b3afd12a7d1f.zip gdb-b14f3a01ff28b660a68d7c0a1909b3afd12a7d1f.tar.gz gdb-b14f3a01ff28b660a68d7c0a1909b3afd12a7d1f.tar.bz2 |
* lib/gdb.exp(default_gdb_start): Use gdb_opts host feature.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index e217d38..6994c6d 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -709,16 +709,13 @@ proc default_gdb_start { } { return 0; } - if [is_remote host] { - set res [remote_spawn host "$GDB -nw $GDBFLAGS --command gdbinit"]; - } else { + if ![is_remote host] { if { [which $GDB] == 0 } then { perror "$GDB does not exist." exit 1 } - - set res [remote_spawn host "$GDB -nw $GDBFLAGS"]; } + set res [remote_spawn host "$GDB -nw $GDBFLAGS [host_info gdb_opts]"]; if { $res < 0 || $res == "" } { perror "Spawning $GDB failed." return 1; |