Sunday, May 23, 2010

My gdbinit file

set print pretty on
set print object on
set print static-members on
set print vtbl on
set print demangle on
set demangle-style gnu-v3

python
import sys
sys.path.insert(0, '/home/amit/downloads/gdb_printers/python')
from libstdcxx.v6.printers import register_libstdcxx_printers
register_libstdcxx_printers (None)
end
#source ~/bin/gdbinit_stl
#source ~/bin/gdbinit_boost

1 comment:

Unknown said...

For the above to work, I need to install gdb printers: see http://sourceware.org/gdb/wiki/STLSupport