aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2017-11-30 12:22:15 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2017-11-30 12:22:15 +0000
commit22767031082dd3f46ff87d00ebcf9bafd1fa4ddb (patch)
tree79125c11182055016607ff69ce285f2b8bea209a /sys/ddb
parentb58e7aacf605605099c3f41573a70994e2ba207d (diff)
downloadsrc-22767031082dd3f46ff87d00ebcf9bafd1fa4ddb.tar.gz
src-22767031082dd3f46ff87d00ebcf9bafd1fa4ddb.zip
Notes
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_variables.c11
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;