From b34b32e7f91f07a66bf936b7050ac6fbdd69a239 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 27 Mar 1995 16:05:08 +0000 Subject: * lib/gdb.exp (default_gdb_version): A version number must start with a digit, but other than that contains all characters up to the first whitespace character. --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/testsuite/lib') diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index e91db0e..cec1f27 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -63,7 +63,7 @@ proc default_gdb_version {} { global GDBFLAGS if {[which $GDB] != 0} then { set tmp [exec echo "q" | $GDB -nw $GDBFLAGS] - regexp " \[0-9.\]+" $tmp version + regexp " \[0-9\]\[^ \t\n\]+" $tmp version clone_output "[which $GDB] version$version -nw $GDBFLAGS \n" } else { warning "$GDB does not exist" -- cgit v1.1