forked from PX4/PX4-Autopilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add step hooks to make stepping work correctly for non isrs
Conflicts: Debug/openocd.gdbinit Debug/px4fmu-v1-board.cfg
- Loading branch information
1 parent
f665ace
commit fa8f8f2
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
source Debug/PX4 | ||
|
||
echo PX4 resumed, press ctrl-c to interrupt\n | ||
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters