aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-07-15 17:53:11 +0000
committerDaniel Jacobowitz <drow@false.org>2008-07-15 17:53:11 +0000
commitab8650a3279c2abf8586ee2dba8b092a895a566d (patch)
tree8ad9ba21940fd11c2a85ee4214e17f5573d8332b
parent8c90c1370d95c5a3e70010dce217f163faea4a4b (diff)
downloadgdb-ab8650a3279c2abf8586ee2dba8b092a895a566d.zip
gdb-ab8650a3279c2abf8586ee2dba8b092a895a566d.tar.gz
gdb-ab8650a3279c2abf8586ee2dba8b092a895a566d.tar.bz2
* findvar.c (read_var_value): Remove unused variable.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/findvar.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f411219..24f247a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * findvar.c (read_var_value): Remove unused variable.
+
2008-07-15 Luis Machado <luisgpm@br.ibm.com>
* infrun.c (handle_inferior_event): Tag threads as stopped
diff --git a/gdb/findvar.c b/gdb/findvar.c
index efe5af8..1b11e59 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -494,13 +494,11 @@ read_var_value (struct symbol *var, struct frame_info *frame)
case LOC_REGISTER:
case LOC_REGPARM_ADDR:
{
- struct block *b;
int regno = SYMBOL_VALUE (var);
struct value *regval;
if (frame == NULL)
return 0;
- b = get_frame_block (frame, 0);
if (SYMBOL_CLASS (var) == LOC_REGPARM_ADDR)
{