]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_aout.h
xnu-792.17.14.tar.gz
[apple/xnu.git] / osfmk / ddb / db_aout.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_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 License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28 /*
29 * @OSF_COPYRIGHT@
30 */
31 /*
32 * Symbol table routines for a.out format files.
33 */
34
35 #ifndef _DDB_DB_AOUT_H_
36 #define _DDB_DB_AOUT_H_
37
38 #include <machine/db_machdep.h> /* data types */
39 #include <ddb/db_sym.h> /* db_symtab_t */
40
41 boolean_t aout_db_sym_init(
42 char * symtab,
43 char * esymtab,
44 char * name,
45 char * task_addr);
46
47 db_sym_t aout_db_lookup(
48 db_symtab_t *stab,
49 char * symstr);
50
51 int aout_db_lookup_incomplete(
52 db_symtab_t *stab,
53 char * symstr,
54 char ** name,
55 int *len,
56 int *toadd);
57
58 int aout_db_print_completion(
59 db_symtab_t *stab,
60 char * symstr);
61
62 db_sym_t aout_db_search_symbol(
63 db_symtab_t *symtab,
64 db_addr_t off,
65 db_strategy_t strategy,
66 db_expr_t *diffp); /* in/out */
67
68 void aout_db_symbol_values(
69 db_sym_t sym,
70 char **namep,
71 db_expr_t *valuep);
72
73 db_sym_t aout_db_search_by_addr(
74 db_symtab_t *stab,
75 db_addr_t addr,
76 char **file,
77 char **func,
78 int *line,
79 db_expr_t *diff,
80 int *args);
81
82 boolean_t aout_db_line_at_pc(
83 db_symtab_t *stab,
84 db_sym_t sym,
85 char **file,
86 int *line,
87 db_expr_t pc);
88
89 int aout_db_qualified_print_completion(
90 db_symtab_t *stab,
91 char *sym);
92
93 void aout_db_init(void);
94
95 #endif /* !_DDB_DB_AOUT_H_ */