Commit 7e45eb6d authored by alex@thinkpad's avatar alex@thinkpad
Browse files

QEMU install: keep the 64-bit gdb warning prompt on Mac and WSL (to be tested)

--HG--
branch : qemu
parent 19f5eb6fd447
......@@ -69,17 +69,19 @@ function valid_arm_gdb {
if [ "$ALLOW_64BIT_GDB" != "y" ]; then
if arm-none-eabi-gdb -v | grep -q "host=x86_64"; then
# 64-bit version - doesn't work well
# fixme: this may get printed more than once
echo "*** WARNING: 64-bit GDB is known to have issues."
if [ $(uname) == "Darwin" ] || [ -n "$(uname -a | grep Microsoft)" ]; then
# we don't have a 64-bit option on these systems
# just warn, about it, but consider it valid
return 0
else
# systems assumed to be able to run a 32-bit GDB
# consider the 64-bit one invalid
return 1
# just warn about it (--strict is used for that), but consider it valid
if [ "$1" != "--strict" ]; then
return 0
fi
fi
# systems assumed to be able to run a 32-bit GDB
# consider the 64-bit one invalid
echo "*** WARNING: 64-bit GDB is known to have issues."
return 1
fi
fi
......@@ -302,7 +304,7 @@ if ! valid_arm_gdb; then
fi
# make sure we have a valid arm-none-eabi-gdb (regardless of operating system)
if ! valid_arm_gdb; then
if ! valid_arm_gdb --strict; then
if ! arm-none-eabi-gdb -v &> /dev/null; then
echo "*** Please set up a valid arm-none-eabi-gdb before continuing."
exit 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment