aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit38
-rw-r--r--src/ChangeLog5
2 files changed, 7 insertions, 36 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index b60c14fe289..fc8eab6d1df 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -67,10 +67,7 @@ end
67# from calling OutputDebugString, which causes GDB to display each 67# from calling OutputDebugString, which causes GDB to display each
68# character twice (yuk!). 68# character twice (yuk!).
69define pr 69define pr
70 set $output_debug = print_output_debug_flag 70 pp $
71 set print_output_debug_flag = 0
72 set debug_print ($)
73 set print_output_debug_flag = $output_debug
74end 71end
75document pr 72document pr
76Print the emacs s-expression which is $. 73Print the emacs s-expression which is $.
@@ -90,48 +87,17 @@ Print the argument as an emacs s-expression
90Works only when an inferior emacs is executing. 87Works only when an inferior emacs is executing.
91end 88end
92 89
93# Print out s-expressions from tool bar
94define pp1
95 set $tmp = $arg0
96 set $output_debug = print_output_debug_flag
97 set print_output_debug_flag = 0
98 set safe_debug_print ($tmp)
99 set print_output_debug_flag = $output_debug
100end
101document pp1
102Print the argument as an emacs s-expression.
103Works only when an inferior emacs is executing.
104For use on tool bar when debugging in Emacs
105where the variable name would not otherwise
106be recorded in the GUD buffer.
107end
108
109# Print value of lisp variable 90# Print value of lisp variable
110define pv 91define pv
111 set $tmp = "$arg0" 92 set $tmp = "$arg0"
112 set $output_debug = print_output_debug_flag 93 set $output_debug = print_output_debug_flag
113 set print_output_debug_flag = 0 94 set print_output_debug_flag = 0
114 set safe_debug_print ( find_symbol_value (intern ($tmp)))
115 set print_output_debug_flag = $output_debug
116end
117document pv
118Print the value of the lisp variable given as argument.
119Works only when an inferior emacs is executing.
120end
121
122# Print value of lisp variable
123define pv1
124 set $tmp = "$arg0"
125 set $output_debug = print_output_debug_flag
126 set print_output_debug_flag = 0
127 set safe_debug_print (find_symbol_value (intern ($tmp))) 95 set safe_debug_print (find_symbol_value (intern ($tmp)))
128 set print_output_debug_flag = $output_debug 96 set print_output_debug_flag = $output_debug
129end 97end
130document pv1 98document pv
131Print the value of the lisp variable given as argument. 99Print the value of the lisp variable given as argument.
132Works only when an inferior emacs is executing. 100Works only when an inferior emacs is executing.
133For use when debugging in Emacs where the variable
134name would not otherwise be recorded in the GUD buffer.
135end 101end
136 102
137# Print out current buffer point and boundaries 103# Print out current buffer point and boundaries
diff --git a/src/ChangeLog b/src/ChangeLog
index 0be59675192..2353cc1eca2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12012-02-04 Andreas Schwab <schwab@linux-m68k.org>
2
3 * .gdbinit (pp1, pv1): Remove redundant defines.
4 (pr): Use pp.
5
12012-02-04 Chong Yidong <cyd@gnu.org> 62012-02-04 Chong Yidong <cyd@gnu.org>
2 7
3 * nsterm.m: Declare a global (Bug#10694). 8 * nsterm.m: Declare a global (Bug#10694).