Annotation of Net2/ddb/db_break.h, revision 1.1.1.3

1.1       root        1: /* 
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990 Carnegie Mellon University
                      4:  * All Rights Reserved.
                      5:  * 
                      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.
                     11:  * 
                     12:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
                     13:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
                     14:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     15:  * 
                     16:  * Carnegie Mellon requests users of this software to return to
                     17:  * 
                     18:  *  Software Distribution Coordinator  or  [email protected]
                     19:  *  School of Computer Science
                     20:  *  Carnegie Mellon University
                     21:  *  Pittsburgh PA 15213-3890
                     22:  * 
                     23:  * any improvements or extensions that they make and grant Carnegie the
                     24:  * rights to redistribute these changes.
                     25:  */
                     26: /*
1.1.1.3 ! root       27:  * db_break.h,v 1.2 1993/05/20 03:39:09 cgd Exp
        !            28:  *
1.1       root       29:  * HISTORY
1.1.1.3 ! root       30:  * db_break.h,v
        !            31:  * Revision 1.2  1993/05/20  03:39:09  cgd
        !            32:  * add explicit rcs id
        !            33:  *
        !            34:  * Revision 1.1.1.1  1993/03/21  09:46:26  cgd
1.1.1.2   root       35:  * initial import of 386bsd-0.1 sources
                     36:  *
1.1       root       37:  * Revision 1.1  1992/03/25  21:44:59  pace
                     38:  * Initial revision
                     39:  *
                     40:  * Revision 2.4  91/02/05  17:06:06  mrt
                     41:  *     Changed to new Mach copyright
                     42:  *     [91/01/31  16:17:10  mrt]
                     43:  * 
                     44:  * Revision 2.3  90/10/25  14:43:40  rwd
                     45:  *     Added map field to breakpoints.
                     46:  *     [90/10/18            rpd]
                     47:  * 
                     48:  * Revision 2.2  90/08/27  21:50:00  dbg
                     49:  *     Modularized typedef names.
                     50:  *     [90/08/20            af]
                     51:  *     Add external defintions.
                     52:  *     [90/08/07            dbg]
                     53:  *     Created.
                     54:  *     [90/07/25            dbg]
                     55:  * 
                     56:  */
                     57: /*
                     58:  *     Author: David B. Golub, Carnegie Mellon University
                     59:  *     Date:   7/90
                     60:  */
                     61: #ifndef        _DDB_DB_BREAK_H_
                     62: #define        _DDB_DB_BREAK_H_
                     63: 
                     64: #include <vm/vm_map.h>
                     65: #include <machine/db_machdep.h>
                     66: 
                     67: /*
                     68:  * Breakpoint.
                     69:  */
                     70: 
                     71: struct db_breakpoint {
                     72:        vm_map_t map;                   /* in this map */
                     73:        db_addr_t address;              /* set here */
                     74:        int     init_count;             /* number of times to skip bkpt */
                     75:        int     count;                  /* current count */
                     76:        int     flags;                  /* flags: */
                     77: #define        BKPT_SINGLE_STEP        0x2         /* to simulate single step */
                     78: #define        BKPT_TEMP               0x4         /* temporary */
                     79:        int     bkpt_inst;              /* saved instruction at bkpt */
                     80:        struct db_breakpoint *link;     /* link in in-use or free chain */
                     81: };
                     82: typedef struct db_breakpoint *db_breakpoint_t;
                     83: 
                     84: extern db_breakpoint_t db_find_breakpoint();
                     85: extern db_breakpoint_t db_find_breakpoint_here();
                     86: extern void            db_set_breakpoints();
                     87: extern void            db_clear_breakpoints();
                     88: 
                     89: extern db_breakpoint_t db_set_temp_breakpoint(/* db_addr_t addr */);
                     90: extern void            db_delete_temp_breakpoint(/* db_breakpoint_t bkpt */);
                     91: 
                     92: #endif _DDB_DB_BREAK_H_

unix.superglobalmegacorp.com

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