Skip to content

Instantly share code, notes, and snippets.

@azat
Last active January 26, 2016 15:45
Show Gist options
  • Save azat/7767184 to your computer and use it in GitHub Desktop.
Save azat/7767184 to your computer and use it in GitHub Desktop.
gdb init
#
# https://github.com/azat/dot_files/blob/master/gdb/gdbinit
#
#
# System-wide GDB initialization file.
#
set disassembly-flavor intel
set confirm off
set verbose off
set print pretty
set complaints 0
set history filename ~/.gdb_history
set history save
set history expansion on
set default-collect $_ret, $regs, $locals, $args
set auto-load safe-path $debugdir:$datadir/auto-load:/usr/share
# Disable printing of static members. Qt has too many, it clutters the output
set print static-members off
# Show the real classname of object instances - e.g. (Kded *) 0x8073440 instead of (class QObject *) 0x8073440
set print object
# TODO: support style like vim/subl have
set filename-display basename
directory $cwd:$cdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment