aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-12-23 12:51:03 -0500
committerJason Merrill <jason@gcc.gnu.org>2013-12-23 12:51:03 -0500
commit2a0da5ad16b11e37bcd3109d4fc7968568dbfc05 (patch)
tree556fbc660c4a36250cd412d047f3f1e7f4530196
parent1f26ac87486d92b964b0c56823beabe28e7dcef7 (diff)
downloadgcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.zip
gcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.tar.gz
gcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.tar.bz2
* gdbinit.in (input_line, input_filename): Define.
From-SVN: r206183
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/gdbinit.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ab6875e..1f170a6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,7 @@
2013-12-23 Jason Merrill <jason@redhat.com>
+ * gdbinit.in (input_line, input_filename): Define.
+
* cgraph.h (struct cgraph_node): Add calls_comdat_local.
(symtab_comdat_local_p, symtab_in_same_comdat_p): New.
* cif-code.def: Add USES_COMDAT_LOCAL.
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index aa0bf9b..79361a5 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -195,6 +195,8 @@ macro define __FILE__ "gdb"
macro define __LINE__ 1
macro define __FUNCTION__ "gdb"
macro define __null 0
+macro define input_line expand_location(input_location).line
+macro define input_filename expand_location(input_location).file
# Gracefully handle aborts in functions used from gdb.
set unwindonsignal on