debug/gdb: add handling of 7_0_or_later

We'll need to differentiate gdb 7.0 or later, from gdb prior to 7.0
This commit is contained in:
Yann E. MORIN" 2010-03-20 18:49:15 +01:00
parent 2583337c7c
commit 76f3741a0f
2 changed files with 12 additions and 0 deletions

View File

@ -19,11 +19,13 @@ config GDB_V_7_0_1
bool
prompt "7.0.1 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select GDB_7_0_or_later
config GDB_V_7_0
bool
prompt "7.0 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select GDB_7_0_or_later
config GDB_V_6_8
bool
@ -37,6 +39,9 @@ config GDB_V_snapshot
endchoice
config GDB_7_0_or_later
bool
config GDB_VERSION
string
# Don't remove next line

View File

@ -118,6 +118,13 @@ addToolVersion() {
SedExpr1="${SedExpr1}\n select LIBC_UCLIBC_0_9_30_or_later"
fi
;;
gdb)
# gdb-7.0 and above have special handling
ver_M=$(echo "${version}...." |cut -d . -f 1)
if [ ${ver_M} -ge 7 ]; then
SedExpr1="${SedExpr1}\n select GDB_7_0_or_later"
fi
;;
esac
SedExpr2=" default \"${version}\" if ${config_ver_option}"
"${sed}" -r -i -e 's/^(# CT_INSERT_VERSION_BELOW)$/\1\n\n'"${SedExpr1}"'/;' "${file}"