Page 1 of 1

qemu replay for debugging

Posted: Thu Aug 29, 2024 6:34 am
by sh42
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?

Re: qemu replay for debugging

Posted: Fri Aug 30, 2024 1:12 pm
by Octocontrabass
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.