mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-26 17:42:18 +03:00
If GDBStub library is used, break into gdb on assert and panic
This commit is contained in:
@ -787,4 +787,9 @@ void ATTR_GDBINIT gdbstub_init() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void ATTR_GDBFN gdbstub_do_break_wrapper() {
|
||||
gdbstub_do_break();
|
||||
}
|
||||
|
||||
extern void gdb_do_break() __attribute__((weak, alias("gdbstub_do_break_wrapper")));
|
||||
extern void gdb_init() __attribute__((weak, alias("gdbstub_init")));
|
||||
|
Reference in New Issue
Block a user