diff options
author | Daniel Jacobowitz <drow@false.org> | 2009-11-10 20:54:55 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2009-11-10 20:54:55 +0000 |
commit | fa33544892e1a4aaf94c7a37a708fd6af5b0c6cd (patch) | |
tree | 533e4a6aaa83a51ca0979c736fb1223d3a24b1a5 /gdb/testsuite/lib | |
parent | e124be18d99cd6dd93e4fb6fc292ca37f4d1d161 (diff) | |
download | gdb-fa33544892e1a4aaf94c7a37a708fd6af5b0c6cd.zip gdb-fa33544892e1a4aaf94c7a37a708fd6af5b0c6cd.tar.gz gdb-fa33544892e1a4aaf94c7a37a708fd6af5b0c6cd.tar.bz2 |
* lib/gdb.exp (default_gdb_version): Use --version instead of
--command.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 53253b3..d42f84e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -104,13 +104,7 @@ proc default_gdb_version {} { global GDB global INTERNAL_GDBFLAGS GDBFLAGS global gdb_prompt - set fileid [open "gdb_cmd" w]; - puts $fileid "q"; - close $fileid; - set cmdfile [remote_download host "gdb_cmd"]; - set output [remote_exec host "$GDB $INTERNAL_GDBFLAGS --command $cmdfile"] - remote_file build delete "gdb_cmd"; - remote_file host delete "$cmdfile"; + set output [remote_exec host "$GDB $INTERNAL_GDBFLAGS --version"] set tmp [lindex $output 1]; set version "" regexp " \[0-9\]\[^ \t\n\r\]+" "$tmp" version |