aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-04-26 23:02:33 +0000
committerNick Roberts2006-04-26 23:02:33 +0000
commit5cd35d2cf0ff1d78ba48e7c1a67efa8f1afdbefe (patch)
tree8eb2fb6adb3c724c2b9f8c3654cd4beb025a08f9
parent4a113e3fafc76300676f8c0382a86719e870f73f (diff)
downloademacs-5cd35d2cf0ff1d78ba48e7c1a67efa8f1afdbefe.tar.gz
emacs-5cd35d2cf0ff1d78ba48e7c1a67efa8f1afdbefe.zip
(pp1, pv1): Only print value as expression is now printed out by gud-print.
(pv1): Correct doc string.
-rw-r--r--src/.gdbinit11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index 12a9d014026..5b2b358a22f 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -88,15 +88,13 @@ end
88# Print out s-expressions from tool bar 88# Print out s-expressions from tool bar
89define pp1 89define pp1
90 set $tmp = $arg0 90 set $tmp = $arg0
91 echo $arg0
92 printf " = "
93 set $output_debug = print_output_debug_flag 91 set $output_debug = print_output_debug_flag
94 set print_output_debug_flag = 0 92 set print_output_debug_flag = 0
95 set safe_debug_print ($tmp) 93 set safe_debug_print ($tmp)
96 set print_output_debug_flag = $output_debug 94 set print_output_debug_flag = $output_debug
97end 95end
98document pp1 96document pp1
99Print the argument as an emacs s-expression 97Print the argument as an emacs s-expression.
100Works only when an inferior emacs is executing. 98Works only when an inferior emacs is executing.
101For use on tool bar when debugging in Emacs 99For use on tool bar when debugging in Emacs
102where the variable name would not otherwise 100where the variable name would not otherwise
@@ -119,8 +117,6 @@ end
119# Print value of lisp variable 117# Print value of lisp variable
120define pv1 118define pv1
121 set $tmp = "$arg0" 119 set $tmp = "$arg0"
122 echo $arg0
123 printf " = "
124 set $output_debug = print_output_debug_flag 120 set $output_debug = print_output_debug_flag
125 set print_output_debug_flag = 0 121 set print_output_debug_flag = 0
126 set safe_debug_print (find_symbol_value (intern ($tmp))) 122 set safe_debug_print (find_symbol_value (intern ($tmp)))
@@ -129,9 +125,8 @@ end
129document pv1 125document pv1
130Print the value of the lisp variable given as argument. 126Print the value of the lisp variable given as argument.
131Works only when an inferior emacs is executing. 127Works only when an inferior emacs is executing.
132For use on tool bar when debugging in Emacs 128For use when debugging in Emacs where the variable
133where the variable name would not otherwise 129name would not otherwise be recorded in the GUD buffer.
134be recorded in the GUD buffer.
135end 130end
136 131
137# Print out current buffer point and boundaries 132# Print out current buffer point and boundaries