; Add some niceties to .lldbinit

* src/.lldbinit: Handle some signals for tty Emacs.
New commands xreload and xattach. Common breakpoints.
This commit is contained in:
Gerd Möllmann 2025-01-12 08:44:18 +01:00
parent 54e4b30503
commit d00de6f166

View file

@ -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.