Skip to content

Commit

Permalink
kdb: break out of kdb_ll() when command is terminated
Browse files Browse the repository at this point in the history
Without this patch the "ll" linked-list traversal command won't
terminate when you hit q/Q.

Signed-off-by: Martin Hicks <mort@sgi.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
  • Loading branch information
Martin Hicks authored and jwessel committed Jul 22, 2010
1 parent d0c6f62 commit 1396a21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kernel/debug/kdb/kdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,9 @@ static int kdb_ll(int argc, const char **argv)
while (va) {
char buf[80];

if (KDB_FLAG(CMD_INTERRUPT))
return 0;

sprintf(buf, "%s " kdb_machreg_fmt "\n", command, va);
diag = kdb_parse(buf);
if (diag)
Expand Down

0 comments on commit 1396a21

Please sign in to comment.