1 # GDB (GNU debugger) configuration file.
3 # Copyright (C) 2011-2018 Simon Ruderich
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.
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.
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/>.
19 # Save command history and increase size.
21 set history size 10000
24 # Set prompt. Bold green "gdb" in parentheses. Trailing whitespace is
26 set extended-prompt (\[\e[01;32m\]gdb\e[00m\])
29 # Set default output base to hex.
32 # Always disassemble next command/instruction. Very useful when debugging code
33 # without debug information.
34 set disassemble-next-line on
37 # Don't stop on SIGUSR1 and instead let the program handle it. Thanks to
38 # peeterjot [1] for the idea (read on 2018-02-02).
40 # [1]: https://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/
41 handle SIGUSR1 noprint nostop