gdb_handler.c 201 字节
Newer Older
wzyy2's avatar
wzyy2 已提交
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
}