Add "make diag".

This commit is contained in:
Alexander Myltsev 2023-02-01 14:51:48 +04:00
parent eff482f932
commit 13fdddc36d

View File

@ -41,6 +41,13 @@ ejudge.sh: image.bin
echo >>$@ "exec qemu-system-i386 -nographic -drive format=raw,file=image.bin -serial mon:stdio" echo >>$@ "exec qemu-system-i386 -nographic -drive format=raw,file=image.bin -serial mon:stdio"
chmod +x $@ chmod +x $@
diag:
-uname -a
-$(CC) --version
-$(LD) -v
-gcc --version
-ld -v
debug-boot-nox: image.bin mbr.elf debug-boot-nox: image.bin mbr.elf
qemu-system-i386 -nographic -drive format=raw,file=$< -s -S & qemu-system-i386 -nographic -drive format=raw,file=$< -s -S &
$(GDB) mbr.elf \ $(GDB) mbr.elf \