From: Daniel Jacobowitz Date: Tue, 15 Jul 2008 17:53:11 +0000 (+0000) Subject: * findvar.c (read_var_value): Remove unused variable. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab8650a3279c2abf8586ee2dba8b092a895a566d;p=binutils-gdb.git * findvar.c (read_var_value): Remove unused variable. --- 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) {