CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Tools/debug/gdb_crashdump.sh
Views: 1798
1
#!/usr/bin/env bash
2
3
# script to more easily get a backtrace from an ArduPilot crash_dump.bin
4
5
[ $# -eq 2 ] || {
6
echo "Usage: gdb_crashdump.sh ELF_FILE CRASH_DUMP"
7
exit 1
8
}
9
10
ELF_FILE=$1
11
CRASH_DUMP=$2
12
13
arm-none-eabi-gdb -nx "$ELF_FILE" -ex "set target-charset ASCII" -ex "target remote | modules/CrashDebug/bins/lin64/CrashDebug --elf $ELF_FILE --dump $CRASH_DUMP"
14
15