diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-11-30 12:22:15 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2017-11-30 12:22:15 +0000 |
commit | 22767031082dd3f46ff87d00ebcf9bafd1fa4ddb (patch) | |
tree | 79125c11182055016607ff69ce285f2b8bea209a /sys/ddb | |
parent | b58e7aacf605605099c3f41573a70994e2ba207d (diff) | |
download | src-22767031082dd3f46ff87d00ebcf9bafd1fa4ddb.tar.gz src-22767031082dd3f46ff87d00ebcf9bafd1fa4ddb.zip |
Notes
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_variables.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/ddb/db_variables.c b/sys/ddb/db_variables.c index b20b93a34fb2..d69c9804ff56 100644 --- a/sys/ddb/db_variables.c +++ b/sys/ddb/db_variables.c @@ -134,6 +134,17 @@ db_set_cmd(db_expr_t dummy1, bool dummy2, db_expr_t dummy3, char *dummy4) int t; t = db_read_token(); + if (t == tEOL) { + for (vp = db_vars; vp < db_evars; vp++) { + if (!db_read_variable(vp, &value)) { + db_printf("$%s\n", vp->name); + continue; + } + db_printf("$%-8s = %ld\n", + vp->name, (unsigned long)value); + } + return; + } if (t != tDOLLAR) { db_error("Unknown variable\n"); return; |