gdb/
Code cleanup. * varobj.c (varobj_create): Move variables fi, old_fi and block to a more inner block.
This commit is contained in:
parent
6ca4eb7789
commit
e4195b40c5
2 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue