diff options
author | Cody P Schafer <dev@codyps.com> | 2014-07-19 02:52:07 -0400 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2014-07-19 12:22:31 +0200 |
commit | 6b1a2304821ab303cd84c22cd039eab0289d9e60 (patch) | |
tree | 7f2b7e9c50e002de9c8eaa48c3d18ef949a9146c | |
parent | 22126a402e2d1ab3a85c8546faa3e129fcb03d20 (diff) | |
download | crosstool-ng-6b1a2304821ab303cd84c22cd039eab0289d9e60.tar.gz crosstool-ng-6b1a2304821ab303cd84c22cd039eab0289d9e60.tar.bz2 crosstool-ng-6b1a2304821ab303cd84c22cd039eab0289d9e60.zip |
scripts/addToolVersion: fix for gdb versions >= 7.2
Signed-off-by: Cody P Schafer <dev@codyps.com>
-rwxr-xr-x | scripts/addToolVersion.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/addToolVersion.sh b/scripts/addToolVersion.sh index 5822a4b4..fe67c2db 100755 --- a/scripts/addToolVersion.sh +++ b/scripts/addToolVersion.sh @@ -167,7 +167,11 @@ addToolVersion() { # gdb-7.0 and above have special handling ver_M=$(getVersionField "${version}" . 1) if [ ${ver_M} -ge 7 ]; then - SedExpr1="${SedExpr1}\n select GDB_7_0_or_later" + if [ ${ver_m} -ge 2 ]; then + SedExpr1="${SedExpr1}\n select GDB_7_2_or_later" + else + SedExpr1="${SedExpr1}\n select GDB_7_0_or_later" + fi fi ;; esac |