]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ddb/db_aout.h
8b03e052d3128fc0e0666a25f5f76eee052123e7
[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 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
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
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
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.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * @OSF_COPYRIGHT@
27 */
28 /*
29 * Symbol table routines for a.out format files.
30 */
31
32 #ifndef _DDB_DB_AOUT_H_
33 #define _DDB_DB_AOUT_H_
34
35 #include <machine/db_machdep.h> /* data types */
36 #include <ddb/db_sym.h> /* db_symtab_t */
37
38 boolean_t aout_db_sym_init(
39 char * symtab,
40 char * esymtab,
41 char * name,
42 char * task_addr);
43
44 db_sym_t aout_db_lookup(
45 db_symtab_t *stab,
46 char * symstr);
47
48 int aout_db_lookup_incomplete(
49 db_symtab_t *stab,
50 char * symstr,
51 char ** name,
52 int *len,
53 int *toadd);
54
55 int aout_db_print_completion(
56 db_symtab_t *stab,
57 char * symstr);
58
59 db_sym_t aout_db_search_symbol(
60 db_symtab_t *symtab,
61 db_addr_t off,
62 db_strategy_t strategy,
63 db_expr_t *diffp); /* in/out */
64
65 void aout_db_symbol_values(
66 db_sym_t sym,
67 char **namep,
68 db_expr_t *valuep);
69
70 db_sym_t aout_db_search_by_addr(
71 db_symtab_t *stab,
72 db_addr_t addr,
73 char **file,
74 char **func,
75 int *line,
76 db_expr_t *diff,
77 int *args);
78
79 boolean_t aout_db_line_at_pc(
80 db_symtab_t *stab,
81 db_sym_t sym,
82 char **file,
83 int *line,
84 db_expr_t pc);
85
86 int aout_db_qualified_print_completion(
87 db_symtab_t *stab,
88 char *sym);
89
90 void aout_db_init(void);
91
92 #endif /* !_DDB_DB_AOUT_H_ */