Don't print an extra newline after the instruction when printing for

single stepping of multiple instructions (e.g., s/p,<count> and n/p).
db_print_loc_and_inst() already prints a newline on all arches although
it probably shouldn't.

Especially on SMP systems, single stepping tends to deadlock or panic
too quickly to be useful for anything except finding bugs in itself,
but with printing "itself" includes console drivers so it is useful
for generating stress tests for console drivers.
This commit is contained in:
Bruce Evans 2016-08-14 13:23:02 +00:00
parent 29f11c7d8b
commit cecc0aa9f9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=304078

View File

@ -145,7 +145,6 @@ db_stop_at_pc(bool *is_breakpoint)
if (db_sstep_print) {
db_printf("\t\t");
db_print_loc_and_inst(pc);
db_printf("\n");
}
return (false); /* continue */
}
@ -165,7 +164,6 @@ db_stop_at_pc(bool *is_breakpoint)
for (i = db_call_depth; --i > 0; )
db_printf(" ");
db_print_loc_and_inst(pc);
db_printf("\n");
}
}
if (inst_call(ins))