changeset 66772:f14bee895419

(pp1): New user-defined function.
author Nick Roberts <nickrob@snap.net.nz>
date Wed, 09 Nov 2005 20:38:12 +0000
parents 19d0e5968971
children c5546b7db46b
files src/.gdbinit
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/.gdbinit	Wed Nov 09 20:33:46 2005 +0000
+++ b/src/.gdbinit	Wed Nov 09 20:38:12 2005 +0000
@@ -73,6 +73,21 @@
 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