diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-08-10 19:39:39 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-08-10 19:39:39 +0000 |
commit | c5b1161eac7a9e74a903806fba19f36288845966 (patch) | |
tree | 6334a2f6bc3483792fc83ed111dca25acb2db2fc /sys/ddb/db_expr.c | |
parent | e55a17530b2fdc822fc5210e1c6702ed306d77b0 (diff) |
With a CTF kernel, DDB's print command will now pretty-print symbols.
Casting a type is not yet supported.
ok kettenis@, jasper@
Diffstat (limited to 'sys/ddb/db_expr.c')
-rw-r--r-- | sys/ddb/db_expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c index 387df7cb0b0..7c68b1ca1dd 100644 --- a/sys/ddb/db_expr.c +++ b/sys/ddb/db_expr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_expr.c,v 1.13 2016/04/19 12:23:25 mpi Exp $ */ +/* $OpenBSD: db_expr.c,v 1.14 2017/08/10 19:39:38 mpi Exp $ */ /* $NetBSD: db_expr.c,v 1.5 1996/02/05 01:56:58 christos Exp $ */ /* @@ -54,7 +54,7 @@ db_term(db_expr_t *valuep) t = db_read_token(); if (t == tIDENT) { - if (!db_value_of_name(db_tok_string, valuep)) { + if (db_symbol_by_name(db_tok_string, valuep) == NULL) { db_error("Symbol not found\n"); /*NOTREACHED*/ } |