]> git.eshelyaron.com Git - emacs.git/commit
New file lisp/emacs-lisp/debug-early.el for backtraces in early bootstrap
authorAlan Mackenzie <acm@muc.de>
Wed, 2 Feb 2022 20:35:39 +0000 (20:35 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 2 Feb 2022 20:35:39 +0000 (20:35 +0000)
commitaa795a6223c31ec8804f2824c435dba3091c115f
tree3ab30ccf54019c835d584ae9ae72ec6341e2b123
parentb6a51e05c9714827737708ce7fb2068f285005ce
New file lisp/emacs-lisp/debug-early.el for backtraces in early bootstrap

This is also used in batch mode in general.

* lisp/debug-early.el (debug-early-backtrace, debug-early): New functions.

* lisp/loadup.el (top level): Load debug-early.el as first file.

* src/eval.c (signal_or_quit): Remove the condition in the batch mode section
of not being in dumping or bootstrap, since it is no longer needed.  Test that
'debug-early's symbol-function is bound.  Ensure there is enough working space
in specpdl and eval_depth.
(syms_of_eval): New DEFSYM for Qdebug_early.  Initialise Vdebugger to
Qdebug_early rather than Qnil.
lisp/emacs-lisp/debug-early.el [new file with mode: 0644]
lisp/loadup.el
src/eval.c