File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ void __wrap_system_restart_local() {
90
90
register uint32_t sp asm (" a1" );
91
91
uint32_t sp_dump = sp;
92
92
93
+ #if 0
93
94
if (gdb_present()) {
94
95
/* When GDBStub is present, exceptions are handled by GDBStub,
95
96
but Soft WDT will still call this function.
@@ -98,6 +99,7 @@ void __wrap_system_restart_local() {
98
99
break into GDB here. */
99
100
raise_exception();
100
101
}
102
+ #endif
101
103
102
104
struct rst_info rst_info;
103
105
memset (&rst_info, 0 , sizeof (rst_info));
@@ -239,7 +241,9 @@ static void raise_exception() {
239
241
240
242
#else
241
243
242
- __asm__ __volatile__ (" syscall" ); // no effect?
244
+ if (gdb_present ())
245
+ // *((char*)0) = 0;
246
+ __asm__ __volatile__ (" syscall" ); // triggers GDB when enabled
243
247
244
248
fake_rst_reason = FAKE_REASON_USER;
245
249
ets_printf_P (PSTR (" \n User exception (panic/abort/assert)" ));
You can’t perform that action at this time.
0 commit comments