Anyone tried reverse-debugging in gdb?
Asked Answered
S

3

10

Has anyone tried using the new record/replay and reverse-debugging features in the newly released gdb-7.0? I am one of the gdb developer/maintainers, and I'm very eager for user feedback!

Swedish answered 9/10, 2009 at 18:52 Comment(2)
It is very slow though - you have to be able to set a break point close to where your actual problem is to enable record, if you can't do this its pretty much unusable. Limited practical application I would sayDelict
Related: #523119Thury
B
3

Hi I tried it briefly. It make life a lot easier for the cases where either I screwed up some thing while debugging or for run-many-times-find-me bugs

Bloomery answered 9/10, 2009 at 21:32 Comment(0)
S
4

Well, there is now a tutorial to help you get started: http://www.sourceware.org/gdb/wiki/ProcessRecord/Tutorial

Swedish answered 18/10, 2009 at 11:54 Comment(0)
B
3

Hi I tried it briefly. It make life a lot easier for the cases where either I screwed up some thing while debugging or for run-many-times-find-me bugs

Bloomery answered 9/10, 2009 at 21:32 Comment(0)
N
1

This definitely deserved more attention -- the reverse debugging feature ROCK FREAKING HARD. No sweat. Great work!

For a practical real-world use (and a problem with reverse-debugging), see

In GDB, how to find out who malloc'ed an address on the heap?

(Problem: it doesn't seem to support any IO (printf(), etc.) which makes it practically useless.

Neckerchief answered 27/7, 2010 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.