mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-13 22:23:04 +00:00
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:
parent
2583337c7c
commit
76f3741a0f
@ -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
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user