aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNick Roberts2005-11-09 20:38:12 +0000
committerNick Roberts2005-11-09 20:38:12 +0000
commit8a3862864af3c6fbd619920686c60b920c6e050f (patch)
treecf0b8538a463508cec23f406d1e3020d47a0f75a /src
parent78e5988dddfb3e3ad1e7fa0ee97dcb32e95a9f57 (diff)
downloademacs-8a3862864af3c6fbd619920686c60b920c6e050f.tar.gz
emacs-8a3862864af3c6fbd619920686c60b920c6e050f.zip
(pp1): New user-defined function.
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index ea1ac2ef666..94169be7895 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -73,6 +73,21 @@ Print the argument as an emacs s-expression
73Works only when an inferior emacs is executing. 73Works only when an inferior emacs is executing.
74end 74end
75 75
76# Print out s-expressions from tool bar
77define pp1
78 set $tmp = $arg0
79 echo $arg0
80 printf " = "
81 set debug_print ($tmp)
82end
83document pp1
84Print the argument as an emacs s-expression
85Works only when an inferior emacs is executing.
86For use on tool bar when debugging in Emacs
87where the variable name would not otherwise
88be recorded in the GUD buffer.
89end
90
76# Print out current buffer point and boundaries 91# Print out current buffer point and boundaries
77define ppt 92define ppt
78 set $b = current_buffer 93 set $b = current_buffer