[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/19] ddb/db_run.c: remove set but unused variable
From: |
Marin Ramesa |
Subject: |
[PATCH 07/19] ddb/db_run.c: remove set but unused variable |
Date: |
Wed, 20 Nov 2013 13:53:49 +0100 |
* ddb/db_run.c (ins): Remove variable.
---
ddb/db_run.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/ddb/db_run.c b/ddb/db_run.c
index 7aaeb46..01893db 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -176,14 +176,13 @@ db_restart_at_pc(watchpt, task)
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_task_value(pc, sizeof(int), FALSE, task);
+ db_get_task_value(pc, sizeof(int), FALSE, task);
db_inst_count++;
db_load_count += inst_load(ins);
db_store_count += inst_store(ins);
@@ -192,7 +191,7 @@ db_restart_at_pc(watchpt, task)
brpc = next_instr_address(pc,1,task);
if ((brpc != pc) && (inst_branch(ins) || inst_call(ins))) {
/* Note: this ~assumes an instruction <= sizeof(int) */
- ins = db_get_task_value(brpc, sizeof(int), FALSE, task);
+ db_get_task_value(brpc, sizeof(int), FALSE, task);
db_inst_count++;
db_load_count += inst_load(ins);
db_store_count += inst_store(ins);
--
1.8.1.4
- Re: [PATCH 03/19] Fix call of function with qualified void return type, (continued)
- [PATCH 04/19] ddb/db_examine.c: fix signedness, Marin Ramesa, 2013/11/20
- [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Marin Ramesa, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Guillem Jover, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Marin Ramesa, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Samuel Thibault, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Marin Ramesa, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Samuel Thibault, 2013/11/20
- Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name, Marin Ramesa, 2013/11/20
[PATCH 06/19] ddb: fix implicit declaration of function, Marin Ramesa, 2013/11/20
[PATCH 07/19] ddb/db_run.c: remove set but unused variable,
Marin Ramesa <=
[PATCH 08/19] ddb/db_run.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/11/20
[PATCH 09/19] ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP, Marin Ramesa, 2013/11/20
[PATCH 10/19] ddb/db_sym.c: add parentheses around assignment used as truth value, Marin Ramesa, 2013/11/20