From ab8650a3279c2abf8586ee2dba8b092a895a566d Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 15 Jul 2008 17:53:11 +0000 Subject: [PATCH] * findvar.c (read_var_value): Remove unused variable. --- gdb/ChangeLog | 4 ++++ gdb/findvar.c | 2 -- 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 + + * findvar.c (read_var_value): Remove unused variable. + 2008-07-15 Luis Machado * 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) { -- 2.30.2