From c9a8bbd7f5308b9d165b0d21ff9b49bcd4fc070e Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 6 Aug 2015 22:10:18 -0700 Subject: Suppress debug stepping into auto-loaded library code. * debug.c (debug_set_state, debug_restore_state): New functions. * debug.h (debug_state_t): New type. (debug_set_state, debug_restore_state): Declared, and defined as dummy macros in non-debug-support build. * lisplib.c (opt_dbg_autoload): New global variable. (lisplib_try_load): Disable or enable debugging around library loading based on opt_dbg_autoload option. * lisplib.h (opt_dbg_autoload): Declared. * txr.c (help): List --debug-autoload option. (no_dbg_support): New static function to avoid repeated code. (txr_main): Add debugger option. Change duplicate no debug support error messages into calls to no_dbg_support. * txr.1: Document --debug-autoload --- txr.1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index e30f47a7..bf5a553f 100644 --- a/txr.1 +++ b/txr.1 @@ -671,6 +671,13 @@ See the .code gc-set-delta function for a description. +.meIP --debug-autoload +This option turns on debugging, like +.code --debugger +but also arranges for stepping into the auto-load processing of +\*(TL library code. Normally, debugging through the evaluations +triggered by auto-loading is suppressed. + .coIP --help Prints usage summary on standard output, and terminates successfully. -- cgit v1.2.3