From: Simon Ruderich Date: Sun, 17 Jun 2018 06:23:08 +0000 (+0200) Subject: gdb/gdbinit: don't stop on SIGUSR1 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=a1711dfb28f7d53a046e14fed0198d30b2a01568;p=config%2Fdotfiles.git gdb/gdbinit: don't stop on SIGUSR1 It's often used to reload the config. Also used to document how to change signal handling in gdb which I always forget. --- diff --git a/misc/gdb/gdbinit b/misc/gdb/gdbinit index 59b79c0..01b5d8b 100644 --- a/misc/gdb/gdbinit +++ b/misc/gdb/gdbinit @@ -34,4 +34,11 @@ set output-radix 16 # 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