mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
move Debug to platforms/nuttx
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Various PX4-specific macros
|
# Various PX4-specific macros
|
||||||
#
|
#
|
||||||
source Debug/NuttX
|
source platforms/nuttx/Debug/NuttX
|
||||||
source Debug/ARMv7M
|
source platforms/nuttx/Debug/ARMv7M
|
||||||
|
|
||||||
echo Loading PX4 GDB macros. Use 'help px4' for more information.\n
|
echo Loading PX4 GDB macros. Use 'help px4' for more information.\n
|
||||||
|
|
||||||
@@ -10,4 +10,4 @@ attach 1
|
|||||||
monitor vector_catch disable hard
|
monitor vector_catch disable hard
|
||||||
set mem inaccessible-by-default off
|
set mem inaccessible-by-default off
|
||||||
set print pretty
|
set print pretty
|
||||||
source Debug/PX4
|
source platforms/nuttx/Debug/PX4
|
||||||
@@ -15,7 +15,7 @@ mon poll
|
|||||||
mon cortex_m maskisr auto
|
mon cortex_m maskisr auto
|
||||||
set mem inaccessible-by-default off
|
set mem inaccessible-by-default off
|
||||||
set print pretty
|
set print pretty
|
||||||
source Debug/PX4
|
source platforms/nuttx/Debug/PX4
|
||||||
|
|
||||||
echo PX4 resumed, press ctrl-c to interrupt\n
|
echo PX4 resumed, press ctrl-c to interrupt\n
|
||||||
continue
|
continue
|
||||||
@@ -108,7 +108,7 @@ then
|
|||||||
>> $stacksfile
|
>> $stacksfile
|
||||||
else
|
else
|
||||||
arm-none-eabi-gdb $elf --batch -ex "set print asm-demangle on" \
|
arm-none-eabi-gdb $elf --batch -ex "set print asm-demangle on" \
|
||||||
-ex "source $root/Debug/Nuttx.py" \
|
-ex "source $root/platforms/nuttx/Debug/Nuttx.py" \
|
||||||
-ex "show mybt $taskname" \
|
-ex "show mybt $taskname" \
|
||||||
2> $gdberrfile \
|
2> $gdberrfile \
|
||||||
| sed -n 's/0\.0:\(#.*\)/\1/p' \
|
| sed -n 's/0\.0:\(#.*\)/\1/p' \
|
||||||
@@ -4,4 +4,4 @@ attach 1
|
|||||||
monitor vector_catch disable hard
|
monitor vector_catch disable hard
|
||||||
set mem inaccessible-by-default off
|
set mem inaccessible-by-default off
|
||||||
set print pretty
|
set print pretty
|
||||||
source ${PX4_SOURCE_DIR}/Debug/PX4
|
source ${PX4_SOURCE_DIR}/platforms/nuttx/Debug/PX4
|
||||||
|
|||||||
Reference in New Issue
Block a user