diff options
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 |