|
|
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 "AS IS"
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 Mellon
24: * the rights to redistribute these changes.
25: */
26:
27: #ifndef _DDB_DB_TASK_THREAD_H_
28: #define _DDB_DB_TASK_THREAD_H_
29:
30: #include <kern/task.h>
31: #include <kern/thread.h>
32:
33: #define db_current_task() \
34: ((current_thread())? current_thread()->task: TASK_NULL)
35: #define db_target_space(thread, user_space) \
36: ((!(user_space))? TASK_NULL: \
37: (thread)? (thread)->task: db_current_task())
38: #define db_is_current_task(task) \
39: ((task) == TASK_NULL || (task) == db_current_task())
40:
41: extern task_t db_default_task; /* default target task */
42: extern thread_t db_default_thread; /* default target thread */
43:
44: extern int db_lookup_task(/* task_t */);
45: extern int db_lookup_thread(/* thread_t */);
46: extern int db_lookup_task_thread(/* task_t, thread_t */);
47: extern boolean_t db_check_thread_address_valid(/* db_expr_t */);
48: extern boolean_t db_get_next_thread(/* thread_t *, int */);
49: extern void db_init_default_thread();
50:
51: #endif _DDB_DB_TASK_THREAD_H_
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.