mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: added script to make using a crash_dump.bin easier
This commit is contained in:
parent
3bdcff263d
commit
08e22095a9
13
Tools/debug/gdb_crashdump.sh
Executable file
13
Tools/debug/gdb_crashdump.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# script to more easily get a backtrace from an ArduPilot crash_dump.bin
|
||||||
|
|
||||||
|
[ $# -eq 2 ] || {
|
||||||
|
echo "Usage: gdb_crashdump.sh ELF_FILE CRASH_DUMP"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
ELF_FILE=$1
|
||||||
|
CRASH_DUMP=$2
|
||||||
|
|
||||||
|
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"
|
Loading…
Reference in New Issue
Block a user