Skip to content

Commit 545e066

Browse files
committed
Bug 1135201: Use most-recent available gdb
Older versions of gdb don't support certain features, such as new versions of the DWARF format in this case. Changing the prefered gdb version to the most recent one ensures that we support as many features as possible.
1 parent 55afe11 commit 545e066

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run-gdb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ esac
2828
HOST_OS=$(uname -s | tr "[[:upper:]]" "[[:lower:]]")-x86
2929

3030
if [ -z "${GDB}" ]; then
31-
if [ -d prebuilt ]; then
32-
GDB=prebuilt/${HOST_OS}/toolchain/${TARGET_TRIPLE}-4.4.x/bin/${TARGET_TRIPLE}-gdb
33-
elif [ -d prebuilts ]; then
31+
if [ -d prebuilts ]; then
3432
GDB=prebuilts/gcc/${HOST_OS}/${TARGET_ARCH}/${TARGET_TRIPLE}-4.8/bin/${TARGET_TRIPLE}-gdb
3533
# If new version doesn't exist fallback to old version.
3634
[ -f "${GDB}" ] || GDB=prebuilts/gcc/${HOST_OS}/${TARGET_ARCH}/${TARGET_TRIPLE}-4.7/bin/${TARGET_TRIPLE}-gdb
@@ -39,6 +37,8 @@ if [ -z "${GDB}" ]; then
3937
if [ -d $PYTHON_DIR ]; then
4038
export PYTHONHOME=$PYTHON_DIR
4139
fi
40+
elif [ -d prebuilt ]; then
41+
GDB=prebuilt/${HOST_OS}/toolchain/${TARGET_TRIPLE}-4.4.x/bin/${TARGET_TRIPLE}-gdb
4242
else
4343
echo "Not sure where gdb is located. Override using GDB= or fix the script."
4444
exit 1

0 commit comments

Comments
 (0)