diff options
| author | Andreas Schwab | 2012-02-04 20:57:12 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2012-02-04 20:57:12 +0100 |
| commit | 3723ec07bf3a91a786ba4d5deba68f3d0eda2494 (patch) | |
| tree | 74f0ac805f03f9d16d5bdf5067567c123dbf614e /src | |
| parent | 34c999980444dc3aea494fbf87d71d858fbc3f0f (diff) | |
| download | emacs-3723ec07bf3a91a786ba4d5deba68f3d0eda2494.tar.gz emacs-3723ec07bf3a91a786ba4d5deba68f3d0eda2494.zip | |
* .gdbinit (pp1, pv1): Remove redundant defines.
(pr): Use pp.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 38 | ||||
| -rw-r--r-- | src/ChangeLog | 5 |
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!). |
| 69 | define pr | 69 | define 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 | ||
| 74 | end | 71 | end |
| 75 | document pr | 72 | document pr |
| 76 | Print the emacs s-expression which is $. | 73 | Print the emacs s-expression which is $. |
| @@ -90,48 +87,17 @@ Print the argument as an emacs s-expression | |||
| 90 | Works only when an inferior emacs is executing. | 87 | Works only when an inferior emacs is executing. |
| 91 | end | 88 | end |
| 92 | 89 | ||
| 93 | # Print out s-expressions from tool bar | ||
| 94 | define 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 | ||
| 100 | end | ||
| 101 | document pp1 | ||
| 102 | Print the argument as an emacs s-expression. | ||
| 103 | Works only when an inferior emacs is executing. | ||
| 104 | For use on tool bar when debugging in Emacs | ||
| 105 | where the variable name would not otherwise | ||
| 106 | be recorded in the GUD buffer. | ||
| 107 | end | ||
| 108 | |||
| 109 | # Print value of lisp variable | 90 | # Print value of lisp variable |
| 110 | define pv | 91 | define 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 | ||
| 116 | end | ||
| 117 | document pv | ||
| 118 | Print the value of the lisp variable given as argument. | ||
| 119 | Works only when an inferior emacs is executing. | ||
| 120 | end | ||
| 121 | |||
| 122 | # Print value of lisp variable | ||
| 123 | define 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 |
| 129 | end | 97 | end |
| 130 | document pv1 | 98 | document pv |
| 131 | Print the value of the lisp variable given as argument. | 99 | Print the value of the lisp variable given as argument. |
| 132 | Works only when an inferior emacs is executing. | 100 | Works only when an inferior emacs is executing. |
| 133 | For use when debugging in Emacs where the variable | ||
| 134 | name would not otherwise be recorded in the GUD buffer. | ||
| 135 | end | 101 | end |
| 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 @@ | |||
| 1 | 2012-02-04 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * .gdbinit (pp1, pv1): Remove redundant defines. | ||
| 4 | (pr): Use pp. | ||
| 5 | |||
| 1 | 2012-02-04 Chong Yidong <cyd@gnu.org> | 6 | 2012-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). |