1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-01 03:26:58 +03:00

Add gdb stub library

This commit is contained in:
Ivan Grokhotkov
2015-10-07 00:56:24 +03:00
parent 4f35207951
commit ed785b5f0b
6 changed files with 427 additions and 4 deletions

View File

@ -129,8 +129,12 @@ static void do_global_ctors(void) {
(*p)();
}
extern "C" void __gdb_init() {}
extern "C" void gdb_init(void) __attribute__ ((weak, alias("__gdb_init")));
void init_done() {
system_set_os_print(1);
gdb_init();
do_global_ctors();
esp_schedule();
}