diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-01 19:53:02 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-01 19:53:02 +0000 |
commit | 3b1e54df460ca3280260692c647072bf5a5468a8 (patch) | |
tree | c5f38aa6957412189922f32fdabfa78e4ea1b240 /ld | |
parent | 9cfdc91a9ad0aecfb44f3a94395c82931add130f (diff) | |
download | gdb-3b1e54df460ca3280260692c647072bf5a5468a8.zip gdb-3b1e54df460ca3280260692c647072bf5a5468a8.tar.gz gdb-3b1e54df460ca3280260692c647072bf5a5468a8.tar.bz2 |
* lib/ld.exp (default_ld_version): Fix for current version
printing.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/lib/ld.exp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/testsuite/lib/ld.exp b/ld/testsuite/lib/ld.exp index 820824d..849a6d8 100644 --- a/ld/testsuite/lib/ld.exp +++ b/ld/testsuite/lib/ld.exp @@ -12,10 +12,9 @@ proc default_ld_version { ld } { catch "exec $ld --version" tmp set tmp [prune_system_crud $host_triplet $tmp] - regexp "version.*$" $tmp version - - if [info exists version] then { - clone_output "$ld $version\n" + regexp "\[^\n\]* (cygnus-|)(\[-0-9.a-zA-Z-\]+)\[\r\n\].*" $tmp version cyg number + if [info exists number] then { + clone_output "$ld $number\n" } } |