1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +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

@ -3,6 +3,4 @@
// this header is intentionally left blank
bool crash_for_gdb = 1;
#endif //GDBSTUB_H

View File

@ -792,5 +792,11 @@ 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")));
bool ATTR_GDBINIT gdb_present()
{
return true;
}
extern void gdb_do_break() __attribute__((alias("gdbstub_do_break_wrapper")));
extern void gdb_init() __attribute__((alias("gdbstub_init")));