forked from Github_Repos/cvw
modify debug.sh to not rely on external GDB script
This commit is contained in:
parent
4bf95714eb
commit
409dd48706
@ -9,6 +9,13 @@ tcpPort=1239
|
|||||||
-nographic \
|
-nographic \
|
||||||
-bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio \
|
-bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio \
|
||||||
-singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on \
|
-singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on \
|
||||||
> ./qemu-serial) # \
|
> ./qemu-serial \
|
||||||
#-gdb tcp::$tcpPort -S \
|
-gdb tcp::$tcpPort -S) \
|
||||||
#& riscv64-unknown-elf-gdb -quiet -x debug.gdb -ex "debug $tcpPort \"$imageDir/vmlinux\""
|
& riscv64-unknown-elf-gdb -quiet \
|
||||||
|
-ex "set pagination off" \
|
||||||
|
-ex "set logging overwrite on" \
|
||||||
|
-ex "set logging redirect on" \
|
||||||
|
-ex "set confirm off" \
|
||||||
|
-ex "target extended-remote :$tcpPort" \
|
||||||
|
-ex "maintenance packet Qqemu.PhyMemMode:1" \
|
||||||
|
-ex "file $imageDir/vmlinux"
|
||||||
|
Loading…
Reference in New Issue
Block a user