Becoming A GDB Power User - Greg Law - CppCon 2015
Becoming A GDB Power User - Greg Law - CppCon 2015
Greg Law
Co-founder and CEO, Undo software
▪ TUI mode
▪ Python
▪ Reversible debugging
class MyPrinter(object):
def __init__(self,val):
self.val = val
def to_string(self):
return ( self.val[‘member’])
import gdb.printing
pp = gdb.printing.RegexpCollectionPrettyPrinter('mystruct')
gdb.events.stop.connect( stop_handler)
And finally...
▪ gcc’s -g and -O are orthogonal; gcc -Og is optimised but doesn’t mess up debug
▪ see also gdb dashboard on github
Copyright Undo Ltd, 2015