Undodb-gdb is a drop-in replacement for gdb on Linux, so using it from Eclipse is simply a question of telling Eclipse to use the undodb-gdb executable rather than gdb.
However, to take advantage of graphical reverse debugging commands, it is also necessary to configure Eclipse for reversible debugging.
To do this:
- From the 'Run' menu, choose 'Debug Configurations...'
- Double-click C/C++ Applications
- Choose the 'debugger' tab
- Replace 'gdb' with 'undodb-gdb' in the debugger text box
- Check "enable reverse debugging"
- Click 'Apply'
- Click 'Close'
- From the 'Window' menu choose 'Customize perspective...'
- Choose 'Command Groups Availability' tab.
- Check "Reverse Debugging" from the 'Available command groups' selection box on the left
- Click OK
See our screencast: Using UndoDB with Eclipse