why use qemu '-kernel' option can't hit '0x7c00' breakpoint
Posted: Sat Aug 13, 2022 8:10 am
env:
qemu-system-i386
QEMU emulator version 7.0.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
hi:
I use "qemu-system-i386 -kernel Prekernel" to run my kernel and then I use lldb to debug it, I add '0x7c00' breakpoint, then I run 'c' in lldb,it was not hit the '0x7c00' breakpiont, but if I use qemu '-cdrom' option, it can hit '0x7c00' breakpoint! I don't know why, it confuse me! any help is greatly appreciated!
qemu-system-i386
QEMU emulator version 7.0.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
hi:
I use "qemu-system-i386 -kernel Prekernel" to run my kernel and then I use lldb to debug it, I add '0x7c00' breakpoint, then I run 'c' in lldb,it was not hit the '0x7c00' breakpiont, but if I use qemu '-cdrom' option, it can hit '0x7c00' breakpoint! I don't know why, it confuse me! any help is greatly appreciated!