FreeBSD/sys/ddb/db_sym.c
/*
 * Return name and value of a symbol
 */
Return name and value of a symbol
Return name and value of a symbol
void
db_symbol_values(c_db_sym_t sym, const char **namep, db_expr_t *valuep)
{
	db_expr_t	value;
	if (sym == DB_SYM_NULL) {
		*namep = NULL;
		return;
	}
	X_db_symbol_values(db_last_symtab, sym, namep, &value);
	if (db_symbol_is_ambiguous(sym))
		*namep = db_qualify(sym, db_last_symtab->name);
	if (valuep)
		*valuep = value;
}
void db_symbol_values ( c_db_sym_t sym , const char * * namep , db_expr_t * valuep ) { db_expr_t value ; if ( sym == DB_SYM_NULL ) { * namep = NULL ; return ; } X_db_symbol_values ( db_last_symtab , sym , namep , & value ) ; if ( db_symbol_is_ambiguous ( sym ) ) * namep = db_qualify ( sym , db_last_symtab -> name ) ; if ( valuep ) * valuep = value ; }
Return name and value of a symbol
Return name and value of a symbol