1 # GDB (GNU debugger) configuration file.
3 # Copyright (C) 2011-2012 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.
21 # And save more entries.
22 set history size 10000
25 # Set prompt. Bold green "gdb" in parentheses. Trailing whitespace is
27 set extended-prompt (\[\e[01;32m\]gdb\e[00m\])
30 # Default output base is 16 (hex).
33 # Always disassemble next command/instruction. Very useful when debugging code
34 # without debug information.
35 set disassemble-next-line on
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).
41 # [1]: https://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/
42 handle SIGUSR1 noprint nostop