diff options
| author | Gerd Möllmann | 2025-01-12 08:44:18 +0100 |
|---|---|---|
| committer | Gerd Möllmann | 2025-01-12 08:46:28 +0100 |
| commit | d00de6f166af77e686d0dd7a0d22fcf8f0e09f37 (patch) | |
| tree | b1cb9e016d2fec7c1799bbe533eb234b12dc3b40 /src | |
| parent | 54e4b305032d4dadbee286179fa78e01d4d15182 (diff) | |
| download | emacs-d00de6f166af77e686d0dd7a0d22fcf8f0e09f37.tar.gz emacs-d00de6f166af77e686d0dd7a0d22fcf8f0e09f37.zip | |
; Add some niceties to .lldbinit
* src/.lldbinit: Handle some signals for tty Emacs.
New commands xreload and xattach. Common breakpoints.
Diffstat (limited to 'src')
| -rw-r--r-- | src/.lldbinit | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/.lldbinit b/src/.lldbinit index 55523fa2719..17676a2dc4c 100644 --- a/src/.lldbinit +++ b/src/.lldbinit | |||
| @@ -30,7 +30,22 @@ script -- sys.path.append('../etc') | |||
| 30 | # Load our Python files | 30 | # Load our Python files |
| 31 | command script import emacs_lldb | 31 | command script import emacs_lldb |
| 32 | 32 | ||
| 33 | # Reload emacs_lldb.py | ||
| 34 | command alias xreload command script import emacs_lldb | ||
| 35 | |||
| 33 | # Print with children provider, depth 2. | 36 | # Print with children provider, depth 2. |
| 34 | command alias xprint frame variable -P 2 | 37 | command alias xprint frame variable -P 2 |
| 35 | 38 | ||
| 39 | # Attach to future Emacs. On a tty, it might be advisable to redirect | ||
| 40 | # Emacs' stderr to some log file so that one can see the output of | ||
| 41 | # xdebug_print and other output to stderr. | ||
| 42 | command alias xattach process attach --waitfor --name emacs --continue | ||
| 43 | |||
| 44 | # For tty Emacs | ||
| 45 | process handle SIGWINCH --pass true --stop false --notify false | ||
| 46 | process handle SIGINT --pass true --stop false --notify false | ||
| 47 | |||
| 48 | b emacs_abort | ||
| 49 | b die | ||
| 50 | |||
| 36 | # end. | 51 | # end. |