aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-11-17 15:27:09 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-11-17 15:27:09 +0000
commit6e72eb34e279a97e997b59494f8d47170efb03be (patch)
treed71985429ec1de20984d1ed3efae0bf550e63b2c /gcc
parent6a10fff4e2c2fc4bc5c3f313c08698d83c2292a1 (diff)
downloadgcc-6e72eb34e279a97e997b59494f8d47170efb03be.zip
gcc-6e72eb34e279a97e997b59494f8d47170efb03be.tar.gz
gcc-6e72eb34e279a97e997b59494f8d47170efb03be.tar.bz2
gdbinit.in: add "break-on-diagnostic" command
gcc/ChangeLog: * gdbinit.in (break-on-diagnostic): New command. From-SVN: r254877
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gdbinit.in10
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f706890..8a186a1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2017-11-17 David Malcolm <dmalcolm@redhat.com>
+
+ * gdbinit.in (break-on-diagnostic): New command.
+
2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
* config/i386/i386.c (ix86_expand_epilogue): Change simple
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index 3e1279e..ebdeaf0 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