Go to the documentation of this file.
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_init(void)
Initialise GDB stub, if present.
void gdb_enable(bool state)
Dynamically enable/disable GDB stub.
void gdb_on_attach(bool attached)
Called from task queue when GDB attachment status changes.
void debug_print_stack(uint32_t start, uint32_t end)
Send a stack dump to debug output.
void gdb_detach()
Detach from GDB, if attached.
@ eGDB_Attached
Definition: gdb_hooks.h:74
GdbState
Definition: gdb_hooks.h:71
GdbState gdb_present(void)
Check if GDB stub is present.
void debug_crash_callback(const struct rst_info *rst_info, uint32_t stack, uint32_t stack_end)
@ eGDB_Detached
Definition: gdb_hooks.h:73
@ eGDB_NotPresent
Definition: gdb_hooks.h:72