mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
Fix gas_version.
This commit is contained in:
@ -24,10 +24,9 @@ proc gas_version {} {
|
|||||||
catch "exec $AS -version < /dev/null" tmp
|
catch "exec $AS -version < /dev/null" tmp
|
||||||
# Should find a way to discard constant parts, keep whatever's
|
# Should find a way to discard constant parts, keep whatever's
|
||||||
# left, so the version string could be almost anything at all...
|
# left, so the version string could be almost anything at all...
|
||||||
regexp " \[0-9\]\[0-9\.a-zA-Z-\]+" $tmp version
|
regexp "version (cygnus-|)\[-0-9.a-zA-Z-\]+" $tmp version
|
||||||
set tmp $version
|
set tmp $version
|
||||||
regexp "\[0-9\.a-zA-Z-\]+" $tmp version
|
clone_output "[which $AS] $version\n"
|
||||||
clone_output "[which $AS] version $version\n"
|
|
||||||
unset tmp
|
unset tmp
|
||||||
unset version
|
unset version
|
||||||
}
|
}
|
||||||
@ -123,6 +122,9 @@ proc gas_test { file as_opts var_opts testname } {
|
|||||||
want_no_output "$testname ($extra_opts)"
|
want_no_output "$testname ($extra_opts)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if [info exists errorInfo] then {
|
||||||
|
unset errorInfo
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proc gas_test_ignore_stdout { file as_opts testname } {
|
proc gas_test_ignore_stdout { file as_opts testname } {
|
||||||
|
Reference in New Issue
Block a user