summaryrefslogtreecommitdiff
path: root/components/gdb/libcpu/cortexm/gdb_handler.c
blob: 05904224c210fbe7b923644e2b0bf26130d5a195 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <rtthread.h>
#include <gdb_stub.h>

void rt_hw_debugmon_exception(void *regs)
{
#ifdef RT_USING_GDB
    gdb_arch_late();
    gdb_handle_exception(SIGTRAP, regs);
    gdb_arch_exit();
#endif
}