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:
committed by
Ivan Grokhotkov
parent
0643d6e7ab
commit
170911a689
@ -3,6 +3,4 @@
|
||||
|
||||
// this header is intentionally left blank
|
||||
|
||||
bool crash_for_gdb = 1;
|
||||
|
||||
#endif //GDBSTUB_H
|
||||
|
@ -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")));
|
||||
|
||||
|
Reference in New Issue
Block a user