diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-06 14:17:56 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-08-06 14:17:56 +0000 |
commit | e4195b40c50053c90146958196e229591c6be25a (patch) | |
tree | 5a89d195f594706a74f1e7a70f00009f59d85444 /gdb/varobj.c | |
parent | 6ca4eb778968d5300583213b4ebe153c7eaad6f5 (diff) | |
download | gdb-e4195b40c50053c90146958196e229591c6be25a.zip gdb-e4195b40c50053c90146958196e229591c6be25a.tar.gz gdb-e4195b40c50053c90146958196e229591c6be25a.tar.bz2 |
gdb/
Code cleanup.
* varobj.c (varobj_create): Move variables fi, old_fi and block to
a more inner block.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index b9b8e91b..35c6ce7 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; |