mirror of https://github.com/arendst/Tasmota.git
Removed crash logger from BearSSL
It is generally not useful since ESP8266 crashed before we reach this point
This commit is contained in:
parent
800f86d56e
commit
35d9ac9042
|
@ -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 */
|
||||
void stack_thunk_light_dump_stack()
|
||||
{
|
||||
uint32_t *pos = stack_thunk_light_top;
|
||||
while (pos < stack_thunk_light_ptr) {
|
||||
if ((pos[0] != _stackPaint) || (pos[1] != _stackPaint) || (pos[2] != _stackPaint) || (pos[3] != _stackPaint))
|
||||
break;
|
||||
pos += 4;
|
||||
}
|
||||
ets_printf(">>>stack>>>\n");
|
||||
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]);
|
||||
pos += 4;
|
||||
}
|
||||
ets_printf("<<<stack<<<\n");
|
||||
}
|
||||
// void stack_thunk_light_dump_stack()
|
||||
// {
|
||||
// uint32_t *pos = stack_thunk_light_top;
|
||||
// while (pos < stack_thunk_light_ptr) {
|
||||
// if ((pos[0] != _stackPaint) || (pos[1] != _stackPaint) || (pos[2] != _stackPaint) || (pos[3] != _stackPaint))
|
||||
// break;
|
||||
// pos += 4;
|
||||
// }
|
||||
// ets_printf(">>>stack>>>\n");
|
||||
// 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]);
|
||||
// pos += 4;
|
||||
// }
|
||||
// ets_printf("<<<stack<<<\n");
|
||||
// }
|
||||
|
||||
/* 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()
|
||||
{
|
||||
ets_printf("FATAL ERROR: BSSL stack overflow\n");
|
||||
// ets_printf("FATAL ERROR: BSSL stack overflow\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue