From: Daniel Jacobowitz Date: Tue, 10 Nov 2009 20:54:55 +0000 (+0000) Subject: * lib/gdb.exp (default_gdb_version): Use --version instead of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa33544892e1a4aaf94c7a37a708fd6af5b0c6cd;p=binutils-gdb.git * lib/gdb.exp (default_gdb_version): Use --version instead of --command. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 29e213dccdc..f00932aa49a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-11-10 Daniel Jacobowitz + + * lib/gdb.exp (default_gdb_version): Use --version instead of + --command. + 2009-11-10 Nathan Sidwell * lib/gdb.exp (gdb_compile_test): New. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 53253b348cd..d42f84ee232 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