From a1711dfb28f7d53a046e14fed0198d30b2a01568 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 17 Jun 2018 08:23:08 +0200 Subject: [PATCH] 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. --- misc/gdb/gdbinit | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.2