X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=misc%2Fgdb%2Fgdbinit;fp=misc%2Fgdb%2Fgdbinit;h=59b79c0784715899926b7115998ac899875d51b2;hp=0000000000000000000000000000000000000000;hb=8ccb9052dca010073caa5df18c71e6c2a7200fcc;hpb=54e498cc877f4e05b5788b0a886ee02546f41a47 diff --git a/misc/gdb/gdbinit b/misc/gdb/gdbinit new file mode 100644 index 0000000..59b79c0 --- /dev/null +++ b/misc/gdb/gdbinit @@ -0,0 +1,37 @@ +# GDB (GNU debugger) configuration file. + +# Copyright (C) 2011-2012 Simon Ruderich +# +# This file is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this file. If not, see . + + +# Save command history. +set history save on +# And save more entries. +set history size 10000 + + +# Set prompt. Bold green "gdb" in parentheses. Trailing whitespace is +# necessary. +set extended-prompt (\[\e[01;32m\]gdb\e[00m\]) + + +# Default output base is 16 (hex). +set output-radix 16 + +# Always disassemble next command/instruction. Very useful when debugging code +# without debug information. +set disassemble-next-line on + +# vim: ft=gdb