How to debug a boot loader?
-
29-06-2021 - |
题
I debugged small programs using gdb.
I have source code of GRUB. Second stage of GRUB is written in C. Can I debug it using gdb ?
Is it possible to debug a boot loader ? If yes, then how ?
解决方案
- I would check out bochs
- You can also use gdb with bochs
- OSDev has a wealth of information on debugging a bootloader
不隶属于 StackOverflow