diff options
author | 2017-08-10 19:39:38 +0000 | |
---|---|---|
committer | 2017-08-10 19:39:38 +0000 | |
commit | ad2055864b311e8c2c01dce2b12ff2f887bb22e4 (patch) | |
tree | 2147a7aed8d81c97a80f17b80d741156c0da7675 /sys/ddb/db_expr.c | |
parent | Move the solock()/sounlock() dance outside of sobind(). (diff) | |
download | wireguard-openbsd-ad2055864b311e8c2c01dce2b12ff2f887bb22e4.tar.xz wireguard-openbsd-ad2055864b311e8c2c01dce2b12ff2f887bb22e4.zip |
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*/ } |