aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1995-03-27 16:05:08 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1995-03-27 16:05:08 +0000
commitb34b32e7f91f07a66bf936b7050ac6fbdd69a239 (patch)
tree94d25de848bfa8ad9d0c4da7eab36af044751d71 /gdb/testsuite
parentd894a6e99ba49caad2dd7d39c608b87048accc8c (diff)
downloadgdb-b34b32e7f91f07a66bf936b7050ac6fbdd69a239.zip
gdb-b34b32e7f91f07a66bf936b7050ac6fbdd69a239.tar.gz
gdb-b34b32e7f91f07a66bf936b7050ac6fbdd69a239.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/lib/gdb.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index f27584c..59e7f04 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+Mon Mar 27 08:00:34 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * 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.
+
Sun Mar 26 13:19:32 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
* gdb.base/commands.exp (breakpoint_command_test): New tests.
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"