diff options
| author | Nick Roberts | 2005-11-09 20:38:12 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-11-09 20:38:12 +0000 |
| commit | 8a3862864af3c6fbd619920686c60b920c6e050f (patch) | |
| tree | cf0b8538a463508cec23f406d1e3020d47a0f75a /src | |
| parent | 78e5988dddfb3e3ad1e7fa0ee97dcb32e95a9f57 (diff) | |
| download | emacs-8a3862864af3c6fbd619920686c60b920c6e050f.tar.gz emacs-8a3862864af3c6fbd619920686c60b920c6e050f.zip | |
(pp1): New user-defined function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.gdbinit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/.gdbinit b/src/.gdbinit index ea1ac2ef666..94169be7895 100644 --- a/src/.gdbinit +++ b/src/.gdbinit | |||
| @@ -73,6 +73,21 @@ Print the argument as an emacs s-expression | |||
| 73 | Works only when an inferior emacs is executing. | 73 | Works only when an inferior emacs is executing. |
| 74 | end | 74 | end |
| 75 | 75 | ||
| 76 | # Print out s-expressions from tool bar | ||
| 77 | define pp1 | ||
| 78 | set $tmp = $arg0 | ||
| 79 | echo $arg0 | ||
| 80 | printf " = " | ||
| 81 | set debug_print ($tmp) | ||
| 82 | end | ||
| 83 | document pp1 | ||
| 84 | Print the argument as an emacs s-expression | ||
| 85 | Works only when an inferior emacs is executing. | ||
| 86 | For use on tool bar when debugging in Emacs | ||
| 87 | where the variable name would not otherwise | ||
| 88 | be recorded in the GUD buffer. | ||
| 89 | end | ||
| 90 | |||
| 76 | # Print out current buffer point and boundaries | 91 | # Print out current buffer point and boundaries |
| 77 | define ppt | 92 | define ppt |
| 78 | set $b = current_buffer | 93 | set $b = current_buffer |