aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2006-03-25 18:01:38 +0000
committerEli Zaretskii2006-03-25 18:01:38 +0000
commit4fccedb5bb646a440e8e2f66cde25a25616ae092 (patch)
tree21b282b74096f82fb944dd3035fc32e65d86b986 /src
parent945b01119fd383fd35b5d10d8d406d0ddaeec0ec (diff)
downloademacs-4fccedb5bb646a440e8e2f66cde25a25616ae092.tar.gz
emacs-4fccedb5bb646a440e8e2f66cde25a25616ae092.zip
(pr, pp, pp1, pv, pv1): Force print_output_debug_flag to zero
before calling debug_print or safe_debug_print.
Diffstat (limited to 'src')
-rw-r--r--src/.gdbinit18
-rw-r--r--src/ChangeLog9
2 files changed, 27 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index aeabe19100e..12a9d014026 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -58,8 +58,14 @@ define xgettype
58end 58end
59 59
60# Set up something to print out s-expressions. 60# Set up something to print out s-expressions.
61# We save and restore print_output_debug_flag to prevent the w32 port
62# from calling OutputDebugString, which causes GDB to display each
63# character twice (yuk!).
61define pr 64define pr
65 set $output_debug = print_output_debug_flag
66 set print_output_debug_flag = 0
62 set debug_print ($) 67 set debug_print ($)
68 set print_output_debug_flag = $output_debug
63end 69end
64document pr 70document pr
65Print the emacs s-expression which is $. 71Print the emacs s-expression which is $.
@@ -69,7 +75,10 @@ end
69# Print out s-expressions 75# Print out s-expressions
70define pp 76define pp
71 set $tmp = $arg0 77 set $tmp = $arg0
78 set $output_debug = print_output_debug_flag
79 set print_output_debug_flag = 0
72 set safe_debug_print ($tmp) 80 set safe_debug_print ($tmp)
81 set print_output_debug_flag = $output_debug
73end 82end
74document pp 83document pp
75Print the argument as an emacs s-expression 84Print the argument as an emacs s-expression
@@ -81,7 +90,10 @@ define pp1
81 set $tmp = $arg0 90 set $tmp = $arg0
82 echo $arg0 91 echo $arg0
83 printf " = " 92 printf " = "
93 set $output_debug = print_output_debug_flag
94 set print_output_debug_flag = 0
84 set safe_debug_print ($tmp) 95 set safe_debug_print ($tmp)
96 set print_output_debug_flag = $output_debug
85end 97end
86document pp1 98document pp1
87Print the argument as an emacs s-expression 99Print the argument as an emacs s-expression
@@ -94,7 +106,10 @@ end
94# Print value of lisp variable 106# Print value of lisp variable
95define pv 107define pv
96 set $tmp = "$arg0" 108 set $tmp = "$arg0"
109 set $output_debug = print_output_debug_flag
110 set print_output_debug_flag = 0
97 set safe_debug_print ( find_symbol_value (intern ($tmp))) 111 set safe_debug_print ( find_symbol_value (intern ($tmp)))
112 set print_output_debug_flag = $output_debug
98end 113end
99document pv 114document pv
100Print the value of the lisp variable given as argument. 115Print the value of the lisp variable given as argument.
@@ -106,7 +121,10 @@ define pv1
106 set $tmp = "$arg0" 121 set $tmp = "$arg0"
107 echo $arg0 122 echo $arg0
108 printf " = " 123 printf " = "
124 set $output_debug = print_output_debug_flag
125 set print_output_debug_flag = 0
109 set safe_debug_print (find_symbol_value (intern ($tmp))) 126 set safe_debug_print (find_symbol_value (intern ($tmp)))
127 set print_output_debug_flag = $output_debug
110end 128end
111document pv1 129document pv1
112Print the value of the lisp variable given as argument. 130Print the value of the lisp variable given as argument.
diff --git a/src/ChangeLog b/src/ChangeLog
index 15267b42d45..bc9a29f8978 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12006-03-25 Eli Zaretskii <eliz@gnu.org>
2
3 * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
4 to zero before calling debug_print or safe_debug_print.
5
6 * print.c (print_output_debug_flag): New global variable.
7 (Fexternal_debugging_output) [WINDOWSNT]: Don't call
8 OutputDebugString if print_output_debug_flag is zero.
9
12006-03-24 Paul Eggert <eggert@cs.ucla.edu> 102006-03-24 Paul Eggert <eggert@cs.ucla.edu>
2 11
3 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it. 12 * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.