Annotation of Gnu-Mach/ddb/db_command.h, revision 1.1.1.3

1.1.1.2   root        1: /*
1.1       root        2:  * Mach Operating System
                      3:  * Copyright (c) 1992,1991,1990 Carnegie Mellon University
                      4:  * All Rights Reserved.
1.1.1.2   root        5:  *
1.1       root        6:  * Permission to use, copy, modify and distribute this software and its
                      7:  * documentation is hereby granted, provided that both the copyright
                      8:  * notice and this permission notice appear in all copies of the
                      9:  * software, derivative works or modified versions, and any portions
                     10:  * thereof, and that both notices appear in supporting documentation.
1.1.1.2   root       11:  *
1.1       root       12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1.1.1.2   root       15:  *
1.1       root       16:  * Carnegie Mellon requests users of this software to return to
1.1.1.2   root       17:  *
1.1       root       18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
1.1.1.2   root       22:  *
1.1       root       23:  * any improvements or extensions that they make and grant Carnegie Mellon
                     24:  * the rights to redistribute these changes.
                     25:  */
                     26: /*
                     27:  *     Author: David B. Golub, Carnegie Mellon University
                     28:  *     Date:   7/90
                     29:  */
1.1.1.3 ! root       30: 
1.1       root       31: #if MACH_KDB
                     32: 
                     33: /*
                     34:  * Command loop declarations.
                     35:  */
                     36: 
                     37: #include <machine/db_machdep.h>
                     38: #include <machine/setjmp.h>
                     39: 
1.1.1.3 ! root       40: extern void            db_command_loop(void);
        !            41: extern boolean_t       db_option(char *, int);
1.1       root       42: 
1.1.1.3 ! root       43: extern void            db_error(char *);       /* report error */
1.1       root       44: 
                     45: extern db_addr_t       db_dot;         /* current location */
                     46: extern db_addr_t       db_last_addr;   /* last explicit address typed */
                     47: extern db_addr_t       db_prev;        /* last address examined
                     48:                                           or written */
                     49: extern db_addr_t       db_next;        /* next address to be examined
                     50:                                           or written */
                     51: extern jmp_buf_t *     db_recover;     /* error recovery */
                     52: 
                     53: extern jmp_buf_t *     db_recover;     /* error recovery */
                     54: 
                     55: /*
                     56:  * Command table
                     57:  */
                     58: struct db_command {
                     59:        char *  name;           /* command name */
                     60:        void    (*fcn)();       /* function to call */
                     61:        int     flag;           /* extra info: */
                     62: #define        CS_OWN          0x1         /* non-standard syntax */
                     63: #define        CS_MORE         0x2         /* standard syntax, but may have other
                     64:                                       words at end */
                     65: #define        CS_SET_DOT      0x100       /* set dot after command */
                     66:        struct db_command *more;   /* another level of command */
                     67: };
                     68: 
1.1.1.3 ! root       69: extern boolean_t db_exec_cmd_nest(char *cmd, int size);
        !            70: 
        !            71: void db_fncall();
        !            72: 
1.1.1.2   root       73: #endif /* MACH_KDB */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.