Add debug infos on panic

This commit is contained in:
2026-03-22 14:27:56 +01:00
parent 897775f63a
commit 15ecefb5fb
14 changed files with 282 additions and 50 deletions

View File

@@ -25,11 +25,15 @@ build_user_prog prog:
fi
cp {{ bin_path / prog + "-stripped" }} {{ "mnt/usr/bin" / prog }}
make-symbols:
cd build-tools && cargo r --bin gen-symbols --release
build: mount_filesystem
@for file in `ls user`; do \
{{ just_executable() }} release="{{ release }}" cargo_flags="{{ cargo_flags }}" build_user_prog $file ; \
done
RUSTFLAGS="-Clink-arg=-Tilm.ld --sysroot {{ justfile_directory() / "sysroot" }}" cargo b {{ cargo_flags }}
RUSTFLAGS="-Cforce-frame-pointers=yes -Clink-arg=-Tilm.ld --sysroot {{ justfile_directory() / "sysroot" }}" cargo b {{ cargo_flags }}
{{ just_executable() }} make-symbols
sync
run: build (runner f"{{bin_path / "kernel-rust"}}")
@@ -41,6 +45,7 @@ QEMU := f"qemu-system-riscv64 \
-device virtio-keyboard-pci \
-device virtio-mouse-pci \
-device loader,file=disk.img,addr=0xA0000000 \
-device loader,file=target/symbols.bin,addr=0xB0000000 \
-bios none -m 1024M {{qemu_flags}}"
# -trace \"virtio*\"