|
|
Subscribe / Log in / New account

Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

Posted May 4, 2021 19:44 UTC (Tue) by bjacob (guest, #58566)
In reply to: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer) by MattBBaker
Parent article: Instant replay: Debugging C and C++ programs with rr (Red Hat Developer)

rr should show you the exact correct values in `info registers` at any time, yet that does not require storing that much information. The basic idea of rr is that most instructions in a program are deterministic, the only non-determinism is localized at relatively few points in the program's execution (typically: I/O). So in order to allow you to rewind back to any point and show the correct values in `info registers`, rr only needs to state from those relatively few non-determinism sources, rewind back to there, then re-play forward from there.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds