[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d00de6f166a: ; Add some niceties to .lldbinit
From: |
Gerd Moellmann |
Subject: |
master d00de6f166a: ; Add some niceties to .lldbinit |
Date: |
Sun, 12 Jan 2025 02:46:40 -0500 (EST) |
branch: master
commit d00de6f166af77e686d0dd7a0d22fcf8f0e09f37
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
; Add some niceties to .lldbinit
* src/.lldbinit: Handle some signals for tty Emacs.
New commands xreload and xattach. Common breakpoints.
---
src/.lldbinit | 15 +++++++++++++++
1 file changed, 15 insertions(+)
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')
# Load our Python files
command script import emacs_lldb
+# Reload emacs_lldb.py
+command alias xreload command script import emacs_lldb
+
# Print with children provider, depth 2.
command alias xprint frame variable -P 2
+# Attach to future Emacs. On a tty, it might be advisable to redirect
+# Emacs' stderr to some log file so that one can see the output of
+# xdebug_print and other output to stderr.
+command alias xattach process attach --waitfor --name emacs --continue
+
+# For tty Emacs
+process handle SIGWINCH --pass true --stop false --notify false
+process handle SIGINT --pass true --stop false --notify false
+
+b emacs_abort
+b die
+
# end.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d00de6f166a: ; Add some niceties to .lldbinit,
Gerd Moellmann <=