From b14f3a01ff28b660a68d7c0a1909b3afd12a7d1f Mon Sep 17 00:00:00 2001 From: Bob Manson Date: Sun, 29 Jun 1997 04:05:41 +0000 Subject: [PATCH] * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature. --- gdb/testsuite/ChangeLog | 2 ++ gdb/testsuite/lib/gdb.exp | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cd4f56b87b..9d9c4bb24e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,7 @@ Sat Jun 28 13:31:11 1997 Bob Manson + * lib/gdb.exp(default_gdb_start): Use gdb_opts host feature. + * gdb.c++/virtfunc.exp: Remove setting of libs variable. Fri Jun 27 07:44:25 1997 Fred Fish diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index e217d380be..6994c6d787 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; -- 2.34.1