From 3376e74aef0bd84a8dd3ef7c0c08a6a2d298dd7d Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 9 Apr 2019 01:10:15 -0700 Subject: debug support: crude debugger removed. * debug.c (debug_depth, debug_quit_s): Variables removed. (step_mode, next_depth, breakpoints, last_command, cols): Static variables removed. (debug_check): C99 inline instantiation removed. (help, show_bindings): Static functions removed. (debug): Function removed. (debug_set_state): Now takes one int argument, returns int. It's anticipated that the new debug system will have a simple on-off switch; there won't be a debug_depth hack. (debug_restore_state): Function removed. (debug_init): Emptied. * debug.h (debug_depth, debug_state_t): Declarations removed. (debug_enter, debug_leave, debug_return): Macros removed. (debug_check): Inline function removed. (debug_set_state): Declaration updated. (debug_restore_state): Declaration removed. (debug_frame, debug_end): Macros removed. * eval.c (do_eval, me_interp_macro): Debugging support scrubbed. * lisplib.c (lisplib_try_load): Adapt to debug_set_state interface change. * match.c (h_fun, do_match_line, v_fun, match_files, match_fun): Debugging support scrubbed. * parser.y (parse_once): Adapt to debug_set_state interface change. * protsym.c: Regenerated. * signal.h (debug_depth): Declaration removed. (EJ_DBG_MEMB, EJ_DBG_SAVE, EJ_DBG_REST): Macros removed. (EJ_OPT_MEMB, EJ_OPT_SAVE, EJ_OPT_REST): Reduced to unconditionally empty definitions for future use. * unwind.c (uw_push_debug): Function removed. * unwind.h (uw_frtype_t): UW_DBG enum member removed. (struct uw_debug): struct declaration removed. (union uw_frame): db member removed. (uw_push_debug): Declaration removed. * txr.1: Debugger doc removed. --- signal.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'signal.h') diff --git a/signal.h b/signal.h index 3ba2758a..fc98590b 100644 --- a/signal.h +++ b/signal.h @@ -26,20 +26,9 @@ */ -#if CONFIG_DEBUG_SUPPORT -extern int debug_depth; -#define EJ_DBG_MEMB volatile int dbg_depth; -#define EJ_DBG_SAVE(EJB) (EJB).dbg_depth = debug_depth, -#define EJ_DBG_REST(EJB) debug_depth = (EJB).dbg_depth, -#else -#define EJ_DBG_MEMB -#define EJ_DBG_SAVE(EJB) -#define EJ_DBG_REST(EJB) -#endif - -#define EJ_OPT_MEMB EJ_DBG_MEMB -#define EJ_OPT_SAVE(EJB) EJ_DBG_SAVE(EJB) -#define EJ_OPT_REST(EJB) EJ_DBG_REST(EJB) +#define EJ_OPT_MEMB +#define EJ_OPT_SAVE(EJB) +#define EJ_OPT_REST(EJB) #if __i386__ -- cgit v1.2.3