esp_system: let panic handler break on debug mode on software abort

This commit is contained in:
Renz Christian Bagaporo 2020-02-18 13:27:30 +05:00 committed by Renz Bagaporo
parent af9b1131a3
commit 29ebfc3f46

View file

@ -327,10 +327,6 @@ void __attribute__((noreturn)) panic_abort(const char *details)
#endif
#endif
while (1) {
if (esp_cpu_in_ocd_debug_mode()) {
cpu_hal_break();
}
*((int *) 0) = 0; // should be an invalid operation on targets
}
*((int *) 0) = 0; // should be an invalid operation on targets
while(1);
}