File:  [Coherent Logic Development] / freem / src / mdebug.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (8 months, 1 week ago) by snw
Branches: CoherentLogicDevelopment
CVS tags: start
FreeM

    1: /*
    2:  *                            *
    3:  *                           * *
    4:  *                          *   *
    5:  *                     ***************
    6:  *                      * *       * *
    7:  *                       *  MUMPS  *
    8:  *                      * *       * *
    9:  *                     ***************
   10:  *                          *   *
   11:  *                           * *
   12:  *                            *
   13:  *
   14:  *   mdebug.h
   15:  *    debugger enhancements
   16:  *
   17:  *  
   18:  *   Author: Serena Willis <jpw@coherent-logic.com>
   19:  *    Copyright (C) 1998 MUG Deutschland
   20:  *    Copyright (C) 2020 Coherent Logic Development LLC
   21:  *
   22:  *
   23:  *   This file is part of FreeM.
   24:  *
   25:  *   FreeM is free software: you can redistribute it and/or modify
   26:  *   it under the terms of the GNU Affero Public License as published by
   27:  *   the Free Software Foundation, either version 3 of the License, or
   28:  *   (at your option) any later version.
   29:  *
   30:  *   FreeM is distributed in the hope that it will be useful,
   31:  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   32:  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   33:  *   GNU Affero Public License for more details.
   34:  *
   35:  *   You should have received a copy of the GNU Affero Public License
   36:  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
   37:  *
   38:  **/
   39: 
   40: #if !defined(_MDEBUG_H)
   41: #define _MDEBUG_H
   42: 
   43: #define MAXWATCH 100
   44: 
   45: typedef struct dbg_watch {
   46:     
   47: 	/* name of variable to watch */
   48:     char *varnam;
   49: 
   50:     /* number of changes to this variable */
   51:     int chgct;
   52: 
   53:     /* pending fires */
   54:     int firect;
   55: 
   56: 
   57: } dbg_watch;
   58: 
   59: extern void dbg_init (void);
   60: extern dbg_watch *dbg_add_watch (char *varnam);
   61: extern void dbg_remove_watch (char *varnam);
   62: extern dbg_watch *dbg_find_watch (char *varnam);
   63: extern void dbg_dump_watch (char *varnam);
   64: extern char *dbg_get_watch_name (char *varnam);
   65: extern void dbg_fire_watch (char *varnam);
   66: extern void dbg_dump_watchlist (void);
   67: 
   68: 
   69: extern short dbg_enable_watch;               /* 0 = watches disabled, 1 = watches enabled */
   70: extern int dbg_pending_watches;
   71: 
   72: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>