Faster Debugging with Watchpoints | Interrupt
Watchpoints can also aid in halting execution before a stack overflow occurs. Let’s run a different command in the app, math_example, and investigate: shell> math_example Running math_function() # Debugger should have halted · Program received signal SIGTRAP, Trace/breakpoint trap. 0x00000998 in HardFault_Handler () (gdb) x/a $sp 0x1fffffd0: 0x0 <g_pfnVectors> Yikes, we have hit another hardfault. What’s interesting here is our stack pointer...
Watchpoints can also aid in halting execution before a stack overflow occurs. Let’s run a different command in the app, math_example, and investigate: shell> math_example Running math_function() # Debugger should have halted · Program received signal SIGTRAP, Trace/breakpoint trap. 0x00000998 in HardFault_Handler () (gdb) x/a $sp 0x1fffffd0: 0x0
