* gdbinit.in (pel): Define.
authorMarek Polacek <polacek@redhat.com>
Tue, 4 Feb 2014 15:34:24 +0000 (15:34 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 4 Feb 2014 15:34:24 +0000 (15:34 +0000)
From-SVN: r207474

gcc/ChangeLog
gcc/gdbinit.in

index 9647593b9b228a3d18b9220f7e52ed2e3d37718d..63ba4a474743bb1841603efd5429d0c3fe8a4ae7 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-04  Marek Polacek  <polacek@redhat.com>
+
+       * gdbinit.in (pel): Define.
+
 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
index c388f8ac704818209c5319772242f08d62f500b9..25c530aa222e3743118f453b265ae7ce6fcbbdc0 100644 (file)
@@ -190,6 +190,15 @@ document pbm
 Dump the bitmap that is in $ as a comma-separated list of numbers.
 end
 
+define pel
+output expand_location ($)
+echo \n
+end
+
+document pel
+Print expanded location of $.
+end
+
 # Define some macros helpful to gdb when it is expanding macros.
 macro define __FILE__ "gdb"
 macro define __LINE__ 1