Skip to content

Commit 779f17e

Browse files
committed
Add stacks and clients ctl commands
1 parent 6b5e23e commit 779f17e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ctl.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,11 @@ run_ctl_line(const char *str)
8484
} else if (strncmp(str, "add stack", strlen("add stack")) == 0) {
8585
add_stack(current_stack());
8686
}
87+
#ifdef TRACE
88+
if (strncmp(str, "stacks", strlen("stacks")) == 0) {
89+
dump_stacks();
90+
} else if (strncmp(str, "clients", strlen("clients")) == 0) {
91+
dump_clients();
92+
}
93+
#endif
8794
}

0 commit comments

Comments
 (0)