aboutsummaryrefslogtreecommitdiff
path: root/gcc/gdbinit.in
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-02-04 15:34:24 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-02-04 15:34:24 +0000
commit71e55f045cb13d89d797c0468cc52d5f6ba257bc (patch)
treead11dfb0eb609edffe8ea782dab071b16a91d8a4 /gcc/gdbinit.in
parent229e56f91e19b4b7015139a6cbe5fc77cec2ebe1 (diff)
downloadgcc-71e55f045cb13d89d797c0468cc52d5f6ba257bc.zip
gcc-71e55f045cb13d89d797c0468cc52d5f6ba257bc.tar.gz
gcc-71e55f045cb13d89d797c0468cc52d5f6ba257bc.tar.bz2
* gdbinit.in (pel): Define.
From-SVN: r207474
Diffstat (limited to 'gcc/gdbinit.in')
-rw-r--r--gcc/gdbinit.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/gdbinit.in b/gcc/gdbinit.in
index c388f8a..25c530a 100644
--- a/gcc/gdbinit.in
+++ b/gcc/gdbinit.in
@@ -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