diff options
| author | Eli Zaretskii | 2006-03-25 18:01:38 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-03-25 18:01:38 +0000 |
| commit | 4fccedb5bb646a440e8e2f66cde25a25616ae092 (patch) | |
| tree | 21b282b74096f82fb944dd3035fc32e65d86b986 /src | |
| parent | 945b01119fd383fd35b5d10d8d406d0ddaeec0ec (diff) | |
| download | emacs-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/.gdbinit | 18 | ||||
| -rw-r--r-- | src/ChangeLog | 9 |
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 | |||
| 58 | end | 58 | end |
| 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!). | ||
| 61 | define pr | 64 | define 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 | ||
| 63 | end | 69 | end |
| 64 | document pr | 70 | document pr |
| 65 | Print the emacs s-expression which is $. | 71 | Print the emacs s-expression which is $. |
| @@ -69,7 +75,10 @@ end | |||
| 69 | # Print out s-expressions | 75 | # Print out s-expressions |
| 70 | define pp | 76 | define 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 | ||
| 73 | end | 82 | end |
| 74 | document pp | 83 | document pp |
| 75 | Print the argument as an emacs s-expression | 84 | Print 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 | ||
| 85 | end | 97 | end |
| 86 | document pp1 | 98 | document pp1 |
| 87 | Print the argument as an emacs s-expression | 99 | Print the argument as an emacs s-expression |
| @@ -94,7 +106,10 @@ end | |||
| 94 | # Print value of lisp variable | 106 | # Print value of lisp variable |
| 95 | define pv | 107 | define 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 | ||
| 98 | end | 113 | end |
| 99 | document pv | 114 | document pv |
| 100 | Print the value of the lisp variable given as argument. | 115 | Print 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 | ||
| 110 | end | 128 | end |
| 111 | document pv1 | 129 | document pv1 |
| 112 | Print the value of the lisp variable given as argument. | 130 | Print 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 @@ | |||
| 1 | 2006-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 | |||
| 1 | 2006-03-24 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2006-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. |