22 #include <esp_systemapi.h> 57 #define gdb_do_break() __asm__("int $0x03") 58 #elif defined(ARCH_ESP8266) 59 #define gdb_do_break() __asm__("break 0,0") 60 #elif defined(ARCH_ESP32) 61 #define gdb_do_break() cpu_hal_break() 62 #elif defined(ARCH_RP2040) 63 #define gdb_do_break() __asm__("bkpt #0") 66 #define gdb_do_break() \ void gdb_detach()
Detach from GDB, if attached.
void gdb_on_attach(bool attached)
Called from task queue when GDB attachment status changes.
Definition: gdb_hooks.h:73
void debug_print_stack(uint32_t start, uint32_t end)
Send a stack dump to debug output.
GdbState
Definition: gdb_hooks.h:71
GdbState gdb_present(void)
Check if GDB stub is present.
Definition: gdb_hooks.h:74
void debug_crash_callback(const struct rst_info *rst_info, uint32_t stack, uint32_t stack_end)
void gdb_init(void)
Initialise GDB stub, if present.
void gdb_enable(bool state)
Dynamically enable/disable GDB stub.
Definition: gdb_hooks.h:72