diff options
author | Kevin Hester <kevinh@geeksville.com> | 2013-08-11 11:38:00 -1000 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-21 15:02:18 +0200 |
commit | fa8f8f2a0255d743494e17120955421677e76567 (patch) | |
tree | fa9e60078e12fe1e31bb6445a8f8621cc8493d61 /Debug/openocd.gdbinit | |
parent | f665ace38cfa4613fb911cb68f6662b15720ffea (diff) | |
download | px4-firmware-fa8f8f2a0255d743494e17120955421677e76567.tar.gz px4-firmware-fa8f8f2a0255d743494e17120955421677e76567.tar.bz2 px4-firmware-fa8f8f2a0255d743494e17120955421677e76567.zip |
add step hooks to make stepping work correctly for non isrs
Conflicts:
Debug/openocd.gdbinit
Debug/px4fmu-v1-board.cfg
Diffstat (limited to 'Debug/openocd.gdbinit')
-rw-r--r-- | Debug/openocd.gdbinit | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Debug/openocd.gdbinit b/Debug/openocd.gdbinit index 4d2dc4c86..92d78b58d 100644 --- a/Debug/openocd.gdbinit +++ b/Debug/openocd.gdbinit @@ -1,7 +1,21 @@ target remote :3333 -mon reset halt + +# Don't let GDB get confused while stepping +define hook-step + mon cortex_m maskisr on +end +define hookpost-step + mon cortex_m maskisr off +end + +mon init +mon stm32_init +# mon reset halt mon poll mon cortex_m maskisr auto set mem inaccessible-by-default off set print pretty -source Debug/PX4
\ No newline at end of file +source Debug/PX4 + +echo PX4 resumed, press ctrl-c to interrupt\n +continue |