X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=misc%2Fgdb%2Fgdbinit;h=2c6b879078ac0e00743d1cc038bc5bfb572b09aa;hb=cf9f6df3c037f5ebaa91e27d08bc0505817120d1;hp=59b79c0784715899926b7115998ac899875d51b2;hpb=00b4c91969f0ee1fd7ea4e87a0b0e1ab9407c87c;p=config%2Fdotfiles.git diff --git a/misc/gdb/gdbinit b/misc/gdb/gdbinit index 59b79c0..2c6b879 100644 --- a/misc/gdb/gdbinit +++ b/misc/gdb/gdbinit @@ -1,6 +1,6 @@ # GDB (GNU debugger) configuration file. -# Copyright (C) 2011-2012 Simon Ruderich +# Copyright (C) 2011-2018 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 @@ -16,9 +16,8 @@ # along with this file. If not, see . -# Save command history. +# Save command history and increase size. set history save on -# And save more entries. set history size 10000 @@ -27,11 +26,18 @@ set history size 10000 set extended-prompt (\[\e[01;32m\]gdb\e[00m\]) -# Default output base is 16 (hex). +# Set default output base to hex. set output-radix 16 # Always disassemble next command/instruction. Very useful when debugging code # without debug information. set disassemble-next-line on + +# Don't stop on SIGUSR1 and instead let the program handle it. Thanks to +# peeterjot [1] for the idea (read on 2018-02-02). +# +# [1]: https://peeterjoot.wordpress.com/2010/07/07/avoiding-gdb-signal-noise/ +handle SIGUSR1 noprint nostop + # vim: ft=gdb