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:
parent
20256b0bed
commit
c6cb86cc6a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user