Skip to content

Commit

Permalink
Tools: added script to make using a crash_dump.bin easier - OV3-955
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and Lokesh Ramina committed Sep 29, 2023
1 parent 33bb7d8 commit 99b877a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tools/debug/gdb_crashdump.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 99b877a

Please sign in to comment.