]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gdbinit.in (input_line, input_filename): Define.
authorJason Merrill <jason@redhat.com>
Mon, 23 Dec 2013 17:51:03 +0000 (12:51 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Dec 2013 17:51:03 +0000 (12:51 -0500)
From-SVN: r206183

gcc/ChangeLog
gcc/gdbinit.in

index ab6875e977f4de823b794d63e2039cf298409886..1f170a6d56f12696a91445373dfc8d3bdcb69406 100644 (file)
@@ -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.
index aa0bf9beda6b409c4e5b397d68bfca50a96de646..79361a5bfd1ee1a26d55b1d6ebbc5fc696f7ad0c 100644 (file)
@@ -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