提交 1396a21b 编写于 作者: M Martin Hicks 提交者: Jason Wessel

kdb: break out of kdb_ll() when command is terminated

Without this patch the "ll" linked-list traversal command won't
terminate when you hit q/Q.
Signed-off-by: NMartin Hicks <mort@sgi.com>
Signed-off-by: NJason Wessel <jason.wessel@windriver.com>
上级 d0c6f625
...@@ -2291,6 +2291,9 @@ static int kdb_ll(int argc, const char **argv) ...@@ -2291,6 +2291,9 @@ static int kdb_ll(int argc, const char **argv)
while (va) { while (va) {
char buf[80]; char buf[80];
if (KDB_FLAG(CMD_INTERRUPT))
return 0;
sprintf(buf, "%s " kdb_machreg_fmt "\n", command, va); sprintf(buf, "%s " kdb_machreg_fmt "\n", command, va);
diag = kdb_parse(buf); diag = kdb_parse(buf);
if (diag) if (diag)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册