]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - misc/gdb/gdbinit
01b5d8b9902b15e2cedfac2525dbff968ca5a53f
[config/dotfiles.git] / misc / gdb / gdbinit
1 # GDB (GNU debugger) configuration file.
2
3 # Copyright (C) 2011-2012  Simon Ruderich
4 #
5 # This file is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This file is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17
18
19 # Save command history.
20 set history save on
21 # And save more entries.
22 set history size 10000
23
24
25 # Set prompt. Bold green "gdb" in parentheses. Trailing whitespace is
26 # necessary.
27 set extended-prompt (\[\e[01;32m\]gdb\e[00m\]) 
28
29
30 # Default output base is 16 (hex).
31 set output-radix 16
32
33 # Always disassemble next command/instruction. Very useful when debugging code
34 # without debug information.
35 set disassemble-next-line on
36
37
38 # Don't stop on SIGUSR1 and instead let the program handle it. Thanks to
39 # peeterjot [1] for the idea (read on 2018-02-02).
40 #
41 # [1]: https://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/
42 handle SIGUSR1 noprint nostop
43
44 # vim: ft=gdb