qemu replay for debugging

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
sh42
Posts: 13
Joined: Sat Aug 17, 2024 4:45 pm

qemu replay for debugging

Post 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?
Octocontrabass
Member
Member
Posts: 5440
Joined: Mon Mar 25, 2013 7:01 pm

Re: qemu replay for debugging

Post 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.
Post Reply