summaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index b41adb21426..58a2d252d08 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -1,4 +1,4 @@
-# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+# Copyright (C) 2001-2014 Free Software Foundation, Inc.
#
# This file is part of GCC.
#
@@ -209,6 +209,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