1/* 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 9 unchanged lines hidden (view full) --- 18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 19 * School of Computer Science 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie the 24 * rights to redistribute these changes. 25 * |
26 * $Id: db_sym.h,v 1.8 1995/05/30 07:57:11 rgrimes Exp $ |
27 */ 28 29#ifndef _DDB_DB_SYM_H_ |
30#define _DDB_DB_SYM_H_ |
31 32/* 33 * Author: Alessandro Forin, Carnegie Mellon University 34 * Date: 8/90 35 */ 36 37/* 38 * This module can handle multiple symbol tables --- 30 unchanged lines hidden (view full) --- 69extern boolean_t db_qualify_ambiguous_names; 70 /* if TRUE, check across symbol tables 71 * for multiple occurrences of a name. 72 * Might slow down quite a bit */ 73 74/* 75 * Functions exported by the symtable module 76 */ |
77void db_add_symbol_table __P((char *, char *, char *, char *)); |
78 /* extend the list of symbol tables */ 79 |
80db_sym_t db_search_symbol __P((db_addr_t, db_strategy_t, db_expr_t *)); |
81 /* find symbol given value */ 82 |
83void db_symbol_values __P((db_sym_t, char **, db_expr_t *)); |
84 /* return name and value of symbol */ 85 86#define db_find_sym_and_offset(val,namep,offp) \ 87 db_symbol_values(db_search_symbol(val,DB_STGY_ANY,offp),namep,0) 88 /* find name&value given approx val */ 89 90#define db_find_xtrn_sym_and_offset(val,namep,offp) \ 91 db_symbol_values(db_search_symbol(val,DB_STGY_XTRN,offp),namep,0) 92 /* ditto, but no locals */ 93 |
94int db_eqname __P((char *, char *, char)); |
95 /* strcmp, modulo leading char */ 96 |
97void db_printsym __P((db_expr_t, db_strategy_t)); |
98 /* print closest symbol to a value */ |
99 |
100boolean_t db_line_at_pc __P((db_sym_t, char **, int *, db_expr_t)); 101int db_sym_numargs __P((db_sym_t, int *, char **)); 102 103boolean_t X_db_line_at_pc __P((db_symtab_t *symtab, db_sym_t cursym, 104 char **filename, int *linenum, 105 db_expr_t off)); 106db_sym_t X_db_lookup __P((db_symtab_t *stab, char *symstr)); 107db_sym_t X_db_search_symbol __P((db_symtab_t *symtab, db_addr_t off, 108 db_strategy_t strategy, 109 db_expr_t *diffp)); 110void X_db_sym_init __P((int *symtab, char *esymtab, char *name)); 111int X_db_sym_numargs __P((db_symtab_t *, db_sym_t, int *, 112 char **)); 113void X_db_symbol_values __P((db_sym_t sym, char **namep, 114 db_expr_t *valuep)); 115 116#endif /* !_DDB_DB_SYM_H_ */ |