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