[FOLD] Clarify some sig-checking code
[REMOVE] Improve gdb compat