3 ms·
GDB is supposed to have reverse execution capability now. How does its facility compare to rr? Are they complementary, or one a pale shadow of the other, or som
by ncmncm 6y ago
GDB is supposed to have reverse execution capability now. How does its facility compare to rr? Are they complementary, or one a pale shadow of the other, or something else?
- sanxiyn 6y agorr is approximately infinitely faster than GDB reverse debugging. rr's innovation is low overhead reverse debugging. rr's typical overhead is 20% -- 2x overhead is considered unacceptable for rr. You could reverse debug coreutils with GDB fine, but it won't work for Firefox. That's why rr was written.
- ncmncm 6y agoSo, pale shadow. Thank you, this is what I needed to know. Time spent learning rr looks like a good investment.
- khuey 6y agoYou shouldn't need to learn much. rr uses gdb's existing reverse-debugging UI commands, it just swaps out the backend implementation with a far more powerful version.