Advertisement
MichaelPetch

SO 76940970 qemudbg.sh

Aug 22nd, 2023
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. qemu-system-i386 -cdrom out/SimpleOS.iso -no-shutdown -no-reboot -S -s -d int >dbg.log 2>&1 &
  2. QEMU_PID=$!
  3.  
  4. gdb out/isodir/boot/SimpleOS.bin \
  5. -ex 'target remote localhost:1234' \
  6. -ex 'layout src' \
  7. -ex 'layout regs' \
  8. -ex 'break *kmain' \
  9. -ex 'continue'
  10.  
  11. stty sane
  12. if ps -p $QEMU_PID >/dev/null
  13. then
  14. kill -9 $QEMU_PID >/dev/null
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement