forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a run_tests flag that captures core dumps from engine unit tests …
…and runs a GDB script (flutter#27742)
- Loading branch information
1 parent
169bb4c
commit 9d840d1
Showing
2 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Gather information from a core dump. | ||
# | ||
# This script can be invoked by the run_tests.py script after an | ||
# engine test crashes. | ||
|
||
BUILDROOT=$1 | ||
EXE=$2 | ||
CORE=$3 | ||
OUTPUT=$4 | ||
|
||
UNAME=$(uname) | ||
if [ "$UNAME" == "Linux" ]; then | ||
if [ -x "$(command -v gdb)" ]; then | ||
GDB=gdb | ||
else | ||
GDB=$BUILDROOT/third_party/android_tools/ndk/prebuilt/linux-x86_64/bin/gdb | ||
fi | ||
echo "GDB=$GDB" | ||
$GDB $EXE $CORE --batch -ex "thread apply all bt" > $OUTPUT | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters