Add debug infos on panic
This commit is contained in:
7
justfile
7
justfile
@@ -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*\"
|
||||
|
||||
Reference in New Issue
Block a user