I was glossing over the following, and thought to share it here, and perhaps gather some feedback on its usefulness for debugging operating systems.
There's a technique for debugging so you can 'replay' things. Appearently QEMU also supports this kind of behavior.
https://www.qemu.org/docs/master/system/replay.html
You can replay, and within the replay do things like rewind debugging. This supports things like interrupts, clock-sources etc. etc.
I'm still struggling on GDB stuff still admittedly... but I thought perhaps more experienced os-devvers might have some insights to share around this?
qemu replay for debugging
-
- Member
- Posts: 5494
- Joined: Mon Mar 25, 2013 7:01 pm
Re: qemu replay for debugging
Rewind debugging is great for those situations where you can catch the CPU in a particular state but can't figure out how it got there. I've used it elsewhere, but I didn't know QEMU could do it too.