Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
30709764352f
Commit
7e45eb6d
authored
Jan 07, 2018
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/qemu/install.sh
View file @
30709764
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment