]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_coff.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ddb / db_coff.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30 /*
31 * @OSF_COPYRIGHT@
32 *
33 */
34 /*
35 * HISTORY
36 *
37 * Revision 1.1.1.1 1998/09/22 21:05:47 wsanchez
38 * Import of Mac OS X kernel (~semeria)
39 *
40 * Revision 1.1.1.1 1998/03/07 02:26:09 wsanchez
41 * Import of OSF Mach kernel (~mburg)
42 *
43 * Revision 1.1.2.1 1995/02/23 16:34:08 alanl
44 * Initial file creation.
45 * [95/02/06 sjs]
46 *
47 * $EndLog$
48 */
49
50 #ifndef _DDB_DB_COFF_H_
51 #define _DDB_DB_COFF_H_
52
53 #define DB_NO_AOUT 1
54
55
56 /*
57 * Symbol table routines for COFF format files.
58 */
59
60 boolean_t coff_db_sym_init(
61 char * symtab,
62 char * esymtab,
63 char * name,
64 char * task_addr);
65
66 db_sym_t coff_db_lookup(
67 db_symtab_t *stab,
68 char * symstr);
69
70 int coff_db_lookup_incomplete(
71 db_symtab_t *stab,
72 char * symstr,
73 char ** name,
74 int *len,
75 int *toadd);
76
77 int coff_db_print_completion(
78 db_symtab_t *stab,
79 char * symstr);
80
81 db_sym_t coff_db_search_symbol(
82 db_symtab_t *symtab,
83 db_addr_t off,
84 db_strategy_t strategy,
85 db_expr_t *diffp); /* in/out */
86
87 void coff_db_symbol_values(
88 db_sym_t sym,
89 char **namep,
90 db_expr_t *valuep);
91
92 db_sym_t coff_db_search_by_addr(
93 db_symtab_t *stab,
94 db_addr_t addr,
95 char **file,
96 char **func,
97 int *line,
98 db_expr_t *diff,
99 int *args);
100
101 boolean_t coff_db_line_at_pc(
102 db_symtab_t *stab,
103 db_sym_t sym,
104 char **file,
105 int *line,
106 db_expr_t pc);
107
108 int coff_db_qualified_print_completion(
109 db_symtab_t *stab,
110 char *sym);
111
112 void coff_db_init(void);
113
114 #endif /* !_DDB_DB_COFF_H_ */