mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-12 17:14:36 +02:00
esp_system: let panic handler break on debug mode on software abort
This commit is contained in:
committed by
Renz Bagaporo
parent
af9b1131a3
commit
29ebfc3f46
@@ -327,10 +327,6 @@ void __attribute__((noreturn)) panic_abort(const char *details)
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (1) {
|
*((int *) 0) = 0; // should be an invalid operation on targets
|
||||||
if (esp_cpu_in_ocd_debug_mode()) {
|
while(1);
|
||||||
cpu_hal_break();
|
|
||||||
}
|
|
||||||
*((int *) 0) = 0; // should be an invalid operation on targets
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user