Re: [PATCH] gdbinit.in: add "break-on-diagnostic" command

2017-11-16 Thread Jeff Law
On 11/16/2017 12:08 PM, David Malcolm wrote: > It's useful to be able to put a breakpoint on the *emission* of > a diagnostic (without having to step past all of the warnings > that are suppressed because of command-line options). > > The invocation: > > (gdb) break diagnostic_show_locus > > h

[PATCH] gdbinit.in: add "break-on-diagnostic" command

2017-11-16 Thread David Malcolm
It's useful to be able to put a breakpoint on the *emission* of a diagnostic (without having to step past all of the warnings that are suppressed because of command-line options). The invocation: (gdb) break diagnostic_show_locus has been my approach for this for a while (it even works in the