Removed crash logger from BearSSL

It is generally not useful since ESP8266 crashed before we reach this point
This commit is contained in:
Stephan Hadinger 2021-01-12 19:48:28 +01:00
parent 800f86d56e
commit 35d9ac9042
1 changed files with 16 additions and 16 deletions

View File

@ -121,26 +121,26 @@ uint32_t stack_thunk_light_get_max_usage()
} }
/* Print the stack from the first used 16-byte chunk to the top, decodable by the exception decoder */ /* Print the stack from the first used 16-byte chunk to the top, decodable by the exception decoder */
void stack_thunk_light_dump_stack() // void stack_thunk_light_dump_stack()
{ // {
uint32_t *pos = stack_thunk_light_top; // uint32_t *pos = stack_thunk_light_top;
while (pos < stack_thunk_light_ptr) { // while (pos < stack_thunk_light_ptr) {
if ((pos[0] != _stackPaint) || (pos[1] != _stackPaint) || (pos[2] != _stackPaint) || (pos[3] != _stackPaint)) // if ((pos[0] != _stackPaint) || (pos[1] != _stackPaint) || (pos[2] != _stackPaint) || (pos[3] != _stackPaint))
break; // break;
pos += 4; // pos += 4;
} // }
ets_printf(">>>stack>>>\n"); // ets_printf(">>>stack>>>\n");
while (pos < stack_thunk_light_ptr) { // while (pos < stack_thunk_light_ptr) {
ets_printf("%08x: %08x %08x %08x %08x\n", (int32_t)pos, pos[0], pos[1], pos[2], pos[3]); // ets_printf("%08x: %08x %08x %08x %08x\n", (int32_t)pos, pos[0], pos[1], pos[2], pos[3]);
pos += 4; // pos += 4;
} // }
ets_printf("<<<stack<<<\n"); // ets_printf("<<<stack<<<\n");
} // }
/* Called when the stack overflow is detected by a thunk. Main memory is corrupted at this point. Do not return. */ /* Called when the stack overflow is detected by a thunk. Main memory is corrupted at this point. Do not return. */
void stack_thunk_light_fatal_overflow() void stack_thunk_light_fatal_overflow()
{ {
ets_printf("FATAL ERROR: BSSL stack overflow\n"); // ets_printf("FATAL ERROR: BSSL stack overflow\n");
abort(); abort();
} }