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