From 2dcd617a8f60103766b0ede0a6167ca6fa3cec76 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 4 Jan 2018 22:45:33 -0500 Subject: [PATCH] move Debug to platforms/nuttx --- {Debug => platforms/nuttx/Debug}/ARMv7M | 0 {Debug => platforms/nuttx/Debug}/NuttX | 0 {Debug => platforms/nuttx/Debug}/NuttX_BMP | 0 {Debug => platforms/nuttx/Debug}/Nuttx.py | 0 {Debug => platforms/nuttx/Debug}/PX4 | 4 ++-- {Debug => platforms/nuttx/Debug}/dot.gdbinit | 2 +- {Debug => platforms/nuttx/Debug}/memdump | 0 {Debug => platforms/nuttx/Debug}/olimex-px4fmu-debug.cfg | 0 {Debug => platforms/nuttx/Debug}/openocd.gdbinit | 2 +- {Debug => platforms/nuttx/Debug}/poor-mans-profiler.sh | 2 +- {Debug => platforms/nuttx/Debug}/px4fmu-board.cfg | 0 {Debug => platforms/nuttx/Debug}/runopenocd.sh | 0 platforms/nuttx/gdbinit.in | 2 +- 13 files changed, 6 insertions(+), 6 deletions(-) rename {Debug => platforms/nuttx/Debug}/ARMv7M (100%) rename {Debug => platforms/nuttx/Debug}/NuttX (100%) rename {Debug => platforms/nuttx/Debug}/NuttX_BMP (100%) rename {Debug => platforms/nuttx/Debug}/Nuttx.py (100%) rename {Debug => platforms/nuttx/Debug}/PX4 (94%) rename {Debug => platforms/nuttx/Debug}/dot.gdbinit (91%) rename {Debug => platforms/nuttx/Debug}/memdump (100%) rename {Debug => platforms/nuttx/Debug}/olimex-px4fmu-debug.cfg (100%) rename {Debug => platforms/nuttx/Debug}/openocd.gdbinit (91%) rename {Debug => platforms/nuttx/Debug}/poor-mans-profiler.sh (98%) rename {Debug => platforms/nuttx/Debug}/px4fmu-board.cfg (100%) rename {Debug => platforms/nuttx/Debug}/runopenocd.sh (100%) diff --git a/Debug/ARMv7M b/platforms/nuttx/Debug/ARMv7M similarity index 100% rename from Debug/ARMv7M rename to platforms/nuttx/Debug/ARMv7M diff --git a/Debug/NuttX b/platforms/nuttx/Debug/NuttX similarity index 100% rename from Debug/NuttX rename to platforms/nuttx/Debug/NuttX diff --git a/Debug/NuttX_BMP b/platforms/nuttx/Debug/NuttX_BMP similarity index 100% rename from Debug/NuttX_BMP rename to platforms/nuttx/Debug/NuttX_BMP diff --git a/Debug/Nuttx.py b/platforms/nuttx/Debug/Nuttx.py similarity index 100% rename from Debug/Nuttx.py rename to platforms/nuttx/Debug/Nuttx.py diff --git a/Debug/PX4 b/platforms/nuttx/Debug/PX4 similarity index 94% rename from Debug/PX4 rename to platforms/nuttx/Debug/PX4 index e99228ee0c..b3d06c0e06 100644 --- a/Debug/PX4 +++ b/platforms/nuttx/Debug/PX4 @@ -1,8 +1,8 @@ # # Various PX4-specific macros # -source Debug/NuttX -source Debug/ARMv7M +source platforms/nuttx/Debug/NuttX +source platforms/nuttx/Debug/ARMv7M echo Loading PX4 GDB macros. Use 'help px4' for more information.\n diff --git a/Debug/dot.gdbinit b/platforms/nuttx/Debug/dot.gdbinit similarity index 91% rename from Debug/dot.gdbinit rename to platforms/nuttx/Debug/dot.gdbinit index d70410bc78..315e0f0601 100644 --- a/Debug/dot.gdbinit +++ b/platforms/nuttx/Debug/dot.gdbinit @@ -10,4 +10,4 @@ attach 1 monitor vector_catch disable hard set mem inaccessible-by-default off set print pretty -source Debug/PX4 +source platforms/nuttx/Debug/PX4 diff --git a/Debug/memdump b/platforms/nuttx/Debug/memdump similarity index 100% rename from Debug/memdump rename to platforms/nuttx/Debug/memdump diff --git a/Debug/olimex-px4fmu-debug.cfg b/platforms/nuttx/Debug/olimex-px4fmu-debug.cfg similarity index 100% rename from Debug/olimex-px4fmu-debug.cfg rename to platforms/nuttx/Debug/olimex-px4fmu-debug.cfg diff --git a/Debug/openocd.gdbinit b/platforms/nuttx/Debug/openocd.gdbinit similarity index 91% rename from Debug/openocd.gdbinit rename to platforms/nuttx/Debug/openocd.gdbinit index 92d78b58db..9619ba529e 100644 --- a/Debug/openocd.gdbinit +++ b/platforms/nuttx/Debug/openocd.gdbinit @@ -15,7 +15,7 @@ mon poll mon cortex_m maskisr auto set mem inaccessible-by-default off set print pretty -source Debug/PX4 +source platforms/nuttx/Debug/PX4 echo PX4 resumed, press ctrl-c to interrupt\n continue diff --git a/Debug/poor-mans-profiler.sh b/platforms/nuttx/Debug/poor-mans-profiler.sh similarity index 98% rename from Debug/poor-mans-profiler.sh rename to platforms/nuttx/Debug/poor-mans-profiler.sh index 1b1e4b272f..10af1c159a 100755 --- a/Debug/poor-mans-profiler.sh +++ b/platforms/nuttx/Debug/poor-mans-profiler.sh @@ -108,7 +108,7 @@ then >> $stacksfile else 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" \ 2> $gdberrfile \ | sed -n 's/0\.0:\(#.*\)/\1/p' \ diff --git a/Debug/px4fmu-board.cfg b/platforms/nuttx/Debug/px4fmu-board.cfg similarity index 100% rename from Debug/px4fmu-board.cfg rename to platforms/nuttx/Debug/px4fmu-board.cfg diff --git a/Debug/runopenocd.sh b/platforms/nuttx/Debug/runopenocd.sh similarity index 100% rename from Debug/runopenocd.sh rename to platforms/nuttx/Debug/runopenocd.sh diff --git a/platforms/nuttx/gdbinit.in b/platforms/nuttx/gdbinit.in index fd1b1c451e..665c601375 100644 --- a/platforms/nuttx/gdbinit.in +++ b/platforms/nuttx/gdbinit.in @@ -4,4 +4,4 @@ attach 1 monitor vector_catch disable hard set mem inaccessible-by-default off set print pretty -source ${PX4_SOURCE_DIR}/Debug/PX4 +source ${PX4_SOURCE_DIR}/platforms/nuttx/Debug/PX4