summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 f4112195f93..24f247a0218 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 efe5af81e1c..1b11e59d0bc 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)
{