ins is only set and unused, but only when we're not doing software

single stepping. Only set it when we're doing that by bending
style(9) rules a little to avoid even worse #ifdef soup.
This commit is contained in:
Warner Losh 2014-08-14 16:01:51 +00:00
parent 20256b0bed
commit c6cb86cc6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269982

View File

@ -188,14 +188,14 @@ db_restart_at_pc(watchpt)
if ((db_run_mode == STEP_COUNT) ||
(db_run_mode == STEP_RETURN) ||
(db_run_mode == STEP_CALLT)) {
db_expr_t ins;
/*
* We are about to execute this instruction,
* so count it now.
*/
ins = db_get_value(pc, sizeof(int), FALSE);
#ifdef SOFTWARE_SSTEP
db_expr_t ins =
#endif
db_get_value(pc, sizeof(int), FALSE);
db_inst_count++;
db_load_count += inst_load(ins);
db_store_count += inst_store(ins);