Fix the logic in the ddb command 'show ktr /a'. Prior to r118269 it would
print until cncheckc returned a non -1, i.e. a character had been entered. After this change it would print only if cncheckc returned a character. As this was before each call to db_mach_vtrace the normal outcome was nothing was printed. With this change 'show ktr /a' will now keep printing until the user stops the command with a key press, or there is no more entries to print.
This commit is contained in:
parent
3fa3c8c7b5
commit
f9c2ec64be
@ -419,7 +419,7 @@ DB_SHOW_COMMAND(ktr, db_ktr_all)
|
||||
db_ktr_verbose |= (strchr(modif, 'V') != NULL) ? 1 : 0; /* just timestap please */
|
||||
if (strchr(modif, 'a') != NULL) {
|
||||
db_disable_pager();
|
||||
while (cncheckc() != -1)
|
||||
while (cncheckc() == -1)
|
||||
if (db_mach_vtrace() == 0)
|
||||
break;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user