Code cleanup.
	* varobj.c (varobj_create): Move variables fi, old_fi and block to
	a more inner block.
This commit is contained in:
Jan Kratochvil 2010-08-06 14:17:56 +00:00
parent 6ca4eb7789
commit e4195b40c5
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* varobj.c (varobj_create): Move variables fi, old_fi and block to
a more inner block.
2010-08-05 Pedro Alves <pedro@codesourcery.com>
* configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)

View File

@ -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;