comparison src/.gdbinit @ 66776:2acb0afcc57a

(pp, pp1): Use safe_debug_print. (pv, pv1): New commands to print value of a lisp variable.
author Kim F. Storm <storm@cua.dk>
date Wed, 09 Nov 2005 23:13:56 +0000
parents f14bee895419
children 98ff41842c94
comparison
equal deleted inserted replaced
66775:91dca36c0245 66776:2acb0afcc57a
64 end 64 end
65 65
66 # Print out s-expressions 66 # Print out s-expressions
67 define pp 67 define pp
68 set $tmp = $arg0 68 set $tmp = $arg0
69 set debug_print ($tmp) 69 set safe_debug_print ($tmp)
70 end 70 end
71 document pp 71 document pp
72 Print the argument as an emacs s-expression 72 Print the argument as an emacs s-expression
73 Works only when an inferior emacs is executing. 73 Works only when an inferior emacs is executing.
74 end 74 end
76 # Print out s-expressions from tool bar 76 # Print out s-expressions from tool bar
77 define pp1 77 define pp1
78 set $tmp = $arg0 78 set $tmp = $arg0
79 echo $arg0 79 echo $arg0
80 printf " = " 80 printf " = "
81 set debug_print ($tmp) 81 set safe_debug_print ($tmp)
82 end 82 end
83 document pp1 83 document pp1
84 Print the argument as an emacs s-expression 84 Print the argument as an emacs s-expression
85 Works only when an inferior emacs is executing.
86 For use on tool bar when debugging in Emacs
87 where the variable name would not otherwise
88 be recorded in the GUD buffer.
89 end
90
91 # Print value of lisp variable
92 define pv
93 set $tmp = "$arg0"
94 set safe_debug_print ( find_symbol_value (intern ($tmp)))
95 end
96 document pv
97 Print the value of the lisp variable given as argument.
98 Works only when an inferior emacs is executing.
99 end
100
101 # Print value of lisp variable
102 define pv1
103 set $tmp = "$arg0"
104 echo $arg0
105 printf " = "
106 set safe_debug_print (find_symbol_value (intern ($tmp)))
107 end
108 document pv1
109 Print the value of the lisp variable given as argument.
85 Works only when an inferior emacs is executing. 110 Works only when an inferior emacs is executing.
86 For use on tool bar when debugging in Emacs 111 For use on tool bar when debugging in Emacs
87 where the variable name would not otherwise 112 where the variable name would not otherwise
88 be recorded in the GUD buffer. 113 be recorded in the GUD buffer.
89 end 114 end