Use a static volatile variable:
static volatile _d;
...
void myfunction(){
if(some_condition){
_d; // debugger
}
}Hardware timers (on STM32) is already paused when a breakpoint is hit. See: #8
https://sourceware.org/gdb/onlinedocs/gdb/Memory.html
x addrx/10x &dmabuf
Use up when a breakpoint is hit. (See: https://www.cse.unsw.edu.au/~learn/debugging/modules/gdb_call_stack/)