diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2002-06-23 20:03:03 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2002-06-23 20:03:03 +0000 |
commit | 53b3e912003b3342eeac0b750beab8a6869bfcd1 (patch) | |
tree | b4fd0fb48f7a14e1182bc50d30b8f169af1b5679 /sys/ddb/db_run.c | |
parent | 074dccd5458714d89cccb2c0e8f09f2b34fc8e94 (diff) | |
download | src-53b3e912003b3342eeac0b750beab8a6869bfcd1.tar.gz src-53b3e912003b3342eeac0b750beab8a6869bfcd1.zip |
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
Notes
Notes:
svn path=/head/; revision=98694
Diffstat (limited to 'sys/ddb/db_run.c')
-rw-r--r-- | sys/ddb/db_run.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c index 4b4875fd4f52..a1c0387e7196 100644 --- a/sys/ddb/db_run.c +++ b/sys/ddb/db_run.c @@ -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)) { |