aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
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 /gcc/gdbinit.in
parent1f26ac87486d92b964b0c56823beabe28e7dcef7 (diff)
downloadgcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.zip
gcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.tar.gz
gcc-2a0da5ad16b11e37bcd3109d4fc7968568dbfc05.tar.bz2
* gdbinit.in (input_line, input_filename): Define.
From-SVN: r206183
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in2
1 files changed, 2 insertions, 0 deletions
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