scripts/addToolVersion: fix for gdb versions >= 7.2

Signed-off-by: Cody P Schafer <dev@codyps.com>
This commit is contained in:
Cody P Schafer 2014-07-19 02:52:07 -04:00 committed by Yann E. MORIN
parent 22126a402e
commit 6b1a230482

View File

@ -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