|
|
1.1.1.2 root 1: /*
1.1 root 2: * Mach Operating System
3: * Copyright (c) 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: */
30: /*
31: * Data access functions for debugger.
32: */
1.1.1.4 ! root 33:
! 34: #ifndef _DDB_DB_ACCESS_H_
! 35: #define _DDB_DB_ACCESS_H_
! 36:
1.1 root 37: #include <mach/boolean.h>
38: #include <machine/db_machdep.h>
39: #include <ddb/db_task_thread.h>
1.1.1.3 root 40: #include <machine/vm_param.h>
1.1 root 41:
42: /* implementation dependent access capability */
43: #define DB_ACCESS_KERNEL 0 /* only kernel space */
44: #define DB_ACCESS_CURRENT 1 /* kernel or current task space */
45: #define DB_ACCESS_ANY 2 /* any space */
46:
47: #ifndef DB_ACCESS_LEVEL
48: #define DB_ACCESS_LEVEL DB_ACCESS_KERNEL
1.1.1.2 root 49: #endif /* DB_ACCESS_LEVEL */
1.1 root 50:
51: #ifndef DB_VALID_KERN_ADDR
52: #define DB_VALID_KERN_ADDR(addr) ((addr) >= VM_MIN_KERNEL_ADDRESS \
53: && (addr) < VM_MAX_KERNEL_ADDRESS)
54: #define DB_VALID_ADDRESS(addr,user) ((user != 0) ^ DB_VALID_KERN_ADDR(addr))
55: #define DB_PHYS_EQ(task1,addr1,task2,addr2) 0
56: #define DB_CHECK_ACCESS(addr,size,task) db_is_current_task(task)
1.1.1.2 root 57: #endif /* DB_VALID_KERN_ADDR */
1.1 root 58:
59: extern int db_access_level;
60:
61: extern db_expr_t db_get_value( db_addr_t addr,
62: int size,
63: boolean_t is_signed );
64:
65: extern void db_put_value( db_addr_t addr,
66: int size,
67: db_expr_t value );
68:
69: extern db_expr_t db_get_task_value( db_addr_t addr,
70: int size,
71: boolean_t is_signed,
72: task_t task );
73:
74: extern void db_put_task_value( db_addr_t addr,
75: int size,
76: db_expr_t value,
77: task_t task );
1.1.1.4 ! root 78:
! 79: #endif /* _DDB_DB_ACCESS_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.