From: David Malcolm Date: Fri, 17 Nov 2017 15:27:09 +0000 (+0000) Subject: gdbinit.in: add "break-on-diagnostic" command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e72eb34e279a97e997b59494f8d47170efb03be;p=gcc.git gdbinit.in: add "break-on-diagnostic" command gcc/ChangeLog: * gdbinit.in (break-on-diagnostic): New command. From-SVN: r254877 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f706890ad37..8a186a148a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-11-17 David Malcolm + + * gdbinit.in (break-on-diagnostic): New command. + 2017-11-17 Igor Tsimbalist * config/i386/i386.c (ix86_expand_epilogue): Change simple diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in index 3e1279e5b2a..ebdeaf0f2c9 100644 --- a/gcc/gdbinit.in +++ b/gcc/gdbinit.in @@ -208,6 +208,16 @@ document pcfun Print current function. end +define break-on-diagnostic +break diagnostic_show_locus +end + +document break-on-diagnostic +Put a breakpoint on diagnostic_show_locus, called whenever a diagnostic +is emitted (as opposed to those warnings that are suppressed by +command-line options). +end + # Define some macros helpful to gdb when it is expanding macros. macro define __FILE__ "gdb" macro define __LINE__ 1