mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-11 19:24:10 +01:00
f6de7ff54f
This fixes the gdb stepi command to allow the M3 core to make forward progress even when interrupts are pending. M3 Core interrupts are masked/unmasked in pre and post command hooks. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@636 ebee16cc-31ac-478f-84a7-5cbb03baadba
37 lines
562 B
Plaintext
37 lines
562 B
Plaintext
target remote localhost:3333
|
|
monitor reset halt
|
|
monitor cortex_m3 vector_catch all
|
|
file ./build/openpilot/OpenPilot.elf
|
|
|
|
define hook-step
|
|
monitor cortex_m3 maskisr on
|
|
end
|
|
define hookpost-step
|
|
monitor cortex_m3 maskisr off
|
|
end
|
|
|
|
define hook-stepi
|
|
monitor cortex_m3 maskisr on
|
|
end
|
|
|
|
define hookpost-stepi
|
|
monitor cortex_m3 maskisr off
|
|
end
|
|
|
|
define hook-next
|
|
monitor cortex_m3 maskisr on
|
|
end
|
|
|
|
define hookpost-next
|
|
monitor cortex_m3 maskisr off
|
|
end
|
|
|
|
define hook-finish
|
|
monitor cortex_m3 maskisr on
|
|
end
|
|
|
|
define hookpost-finish
|
|
monitor cortex_m3 maskisr off
|
|
end
|
|
|