mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-23 14:42:26 +00:00
gdb: Update 300-gdb.sh for multiple compilers
Update 300-gdb.sh to use the new config options. Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Bryan Hundven <bryanhundven@gmail.com> Reviewed-by: Yann Diorcet <diorcetyann@gmail.com>
This commit is contained in:
parent
8ce2abf57d
commit
cfd4437bf7
@ -188,11 +188,11 @@ do_debug_gdb_build() {
|
||||
if [ "${CT_GDB_INSTALL_GDBINIT}" = "y" ]; then
|
||||
CT_DoLog EXTRA "Installing '.gdbinit' template"
|
||||
# See in scripts/build/internals.sh for why we do this
|
||||
if [ -f "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/BASE-VER" ]; then
|
||||
gcc_version=$( cat "${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/BASE-VER" )
|
||||
if [ -f "${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/gcc/BASE-VER" ]; then
|
||||
gcc_version=$( cat "${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/gcc/BASE-VER" )
|
||||
else
|
||||
gcc_version=$( sed -r -e '/version_string/!d; s/^.+= "([^"]+)".*$/\1/;' \
|
||||
"${CT_SRC_DIR}/gcc-${CT_CC_VERSION}/gcc/version.c" \
|
||||
gcc_version=$( sed -r -e '/version_string/!d; s/^.+= "([^"]+)".*$/\1/;' \
|
||||
"${CT_SRC_DIR}/gcc-${CT_CC_GCC_VERSION}/gcc/version.c" \
|
||||
)
|
||||
fi
|
||||
${sed} -r \
|
||||
|
Loading…
Reference in New Issue
Block a user