summaryrefslogtreecommitdiff
path: root/sys/ddb/db_expr.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-10 19:39:39 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-08-10 19:39:39 +0000
commitc5b1161eac7a9e74a903806fba19f36288845966 (patch)
tree6334a2f6bc3483792fc83ed111dca25acb2db2fc /sys/ddb/db_expr.c
parente55a17530b2fdc822fc5210e1c6702ed306d77b0 (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.c4
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*/
}