mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-01 03:26:58 +03:00
If GDBStub library is used, break into gdb on assert and panic
This commit is contained in:
@ -127,6 +127,9 @@ static void do_global_ctors(void) {
|
||||
extern "C" void __gdb_init() {}
|
||||
extern "C" void gdb_init(void) __attribute__ ((weak, alias("__gdb_init")));
|
||||
|
||||
extern "C" void __gdb_do_break(){}
|
||||
extern "C" void gdb_do_break(void) __attribute__ ((weak, alias("__gdb_do_break")));
|
||||
|
||||
void init_done() {
|
||||
system_set_os_print(1);
|
||||
gdb_init();
|
||||
|
Reference in New Issue
Block a user