Supply the symbol table as an argument to X_db_symbol_values (required for elf).

This commit is contained in:
Doug Rabson 1998-06-28 00:55:02 +00:00
parent 7045d394b1
commit 6edf3d9144
3 changed files with 8 additions and 6 deletions

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_aout.c,v 1.19 1997/09/28 08:34:46 phk Exp $
* $Id: db_aout.c,v 1.20 1998/06/07 17:09:36 dfr Exp $
*/
/*
@ -198,7 +198,8 @@ X_db_search_symbol(symtab, off, strategy, diffp)
* Return the name and value for a symbol.
*/
void
X_db_symbol_values(sym, namep, valuep)
X_db_symbol_values(symtab, sym, namep, valuep)
db_symtab_t *symtab;
db_sym_t sym;
char **namep;
db_expr_t *valuep;

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_sym.c,v 1.21 1998/06/07 17:09:38 dfr Exp $
* $Id: db_sym.c,v 1.22 1998/06/10 10:56:13 dfr Exp $
*/
/*
@ -256,7 +256,7 @@ db_symbol_values(sym, namep, valuep)
return;
}
X_db_symbol_values(sym, namep, &value);
X_db_symbol_values(db_last_symtab, sym, namep, &value);
if (db_symbol_is_ambiguous(sym))
*namep = db_qualify(sym, db_last_symtab->name);

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_sym.h,v 1.13 1997/06/30 23:49:17 bde Exp $
* $Id: db_sym.h,v 1.14 1997/06/30 23:54:49 bde Exp $
*/
#ifndef _DDB_DB_SYM_H_
@ -101,7 +101,8 @@ db_sym_t X_db_search_symbol __P((db_symtab_t *symtab, db_addr_t off,
db_expr_t *diffp));
int X_db_sym_numargs __P((db_symtab_t *, db_sym_t, int *,
char **));
void X_db_symbol_values __P((db_sym_t sym, char **namep,
void X_db_symbol_values __P((db_symtab_t *symtab,
db_sym_t sym, char **namep,
db_expr_t *valuep));
#endif /* !_DDB_DB_SYM_H_ */