Abort on double panics

This commit is contained in:
Zhang Junyang
2024-08-06 02:32:08 +00:00
committed by Tate, Hongliang Tian
parent fe68b4b510
commit 05564ecd4f
3 changed files with 20 additions and 3 deletions

View File

@ -230,7 +230,7 @@ pub fn trace_panic_from_log(qemu_log: File, bin_path: PathBuf) {
.spawn()
.unwrap();
for line in lines.into_iter().rev() {
if line.contains("printing stack trace:") {
if line.contains("Printing stack trace:") {
println!("[OSDK] The kernel seems panicked. Parsing stack trace for source lines:");
trace_exists = true;
}