Split the declaration and the initialization of two variables.

This has the fortunate side effect of stopping GCC from
reporting warnings about unused variables on sparc64.

Reviewed by:	bde
This commit is contained in:
Maxime Henrion 2002-06-23 20:03:03 +00:00
parent 074dccd545
commit 53b3e91200
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98694

View File

@ -129,10 +129,10 @@ db_stop_at_pc(is_breakpoint)
}
}
if (db_run_mode == STEP_RETURN) {
db_expr_t ins = db_get_value(pc, sizeof(int), FALSE);
/* continue until matching return */
db_expr_t ins;
ins = db_get_value(pc, sizeof(int), FALSE);
if (!inst_trap_return(ins) &&
(!inst_return(ins) || --db_call_depth != 0)) {
if (db_sstep_print) {
@ -152,10 +152,10 @@ db_stop_at_pc(is_breakpoint)
}
}
if (db_run_mode == STEP_CALLT) {
db_expr_t ins = db_get_value(pc, sizeof(int), FALSE);
/* continue until call or return */
db_expr_t ins;
ins = db_get_value(pc, sizeof(int), FALSE);
if (!inst_call(ins) &&
!inst_return(ins) &&
!inst_trap_return(ins)) {