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

gdbstub, postmortem: clean up

- Move GDB stub hooks into a separate file, provide header for it
- Use syscall instruction raise user mode exception
- Remove unused code in postmortem.c

fixup

fixup
This commit is contained in:
Ivan Grokhotkov
2018-03-09 11:42:19 +08:00
committed by Ivan Grokhotkov
parent 0643d6e7ab
commit 170911a689
6 changed files with 126 additions and 45 deletions

View File

@ -33,6 +33,7 @@ extern "C" {
#include "cont.h"
}
#include <core_version.h>
#include "gdb_hooks.h"
#define LOOP_TASK_PRIORITY 1
#define LOOP_QUEUE_SIZE 1
@ -137,12 +138,6 @@ static void do_global_ctors(void) {
(*--p)();
}
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();