]> git.eshelyaron.com Git - emacs.git/commitdiff
(pp1): New user-defined function.
authorNick Roberts <nickrob@snap.net.nz>
Wed, 9 Nov 2005 20:38:12 +0000 (20:38 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Wed, 9 Nov 2005 20:38:12 +0000 (20:38 +0000)
src/.gdbinit

index ea1ac2ef666337b52118088aece6b15abddada1e..94169be78958ed508816d0498c5fbb71d544a8ae 100644 (file)
@@ -73,6 +73,21 @@ Print the argument as an emacs s-expression
 Works only when an inferior emacs is executing.
 end
 
+# Print out s-expressions from tool bar
+define pp1
+  set $tmp = $arg0
+  echo $arg0
+  printf " = "
+  set debug_print ($tmp)
+end
+document pp1
+Print the argument as an emacs s-expression
+Works only when an inferior emacs is executing.
+For use on tool bar when debugging in Emacs
+where the variable name would not otherwise
+be recorded in the GUD buffer.
+end
+
 # Print out current buffer point and boundaries
 define ppt
   set $b = current_buffer