From: Jan Kratochvil Date: Fri, 6 Aug 2010 14:17:56 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4195b40c50053c90146958196e229591c6be25a;p=binutils-gdb.git gdb/ Code cleanup. * varobj.c (varobj_create): Move variables fi, old_fi and block to a more inner block. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 48a996070e0..f821a1f6081 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-08-06 Jan Kratochvil + + Code cleanup. + * varobj.c (varobj_create): Move variables fi, old_fi and block to + a more inner block. + 2010-08-05 Pedro Alves * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) diff --git a/gdb/varobj.c b/gdb/varobj.c index b9b8e91b864..35c6ce75c89 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -528,9 +528,6 @@ varobj_create (char *objname, char *expression, CORE_ADDR frame, enum varobj_type type) { struct varobj *var; - struct frame_info *fi; - struct frame_info *old_fi = NULL; - struct block *block; struct cleanup *old_chain; /* Fill out a varobj structure for the (root) variable being constructed. */ @@ -539,6 +536,9 @@ varobj_create (char *objname, if (expression != NULL) { + struct frame_info *fi; + struct frame_info *old_fi = NULL; + struct block *block; char *p; enum varobj_languages lang; struct value *value = NULL;