aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2014-09-01 15:09:59 +0100
committerMaciej W. Rozycki <macro@codesourcery.com>2014-09-01 15:09:59 +0100
commit1c3569d4671201a9473e4b7af353a2c339027df1 (patch)
tree18f74fa08bd01c47e7edc7f57b815f7b39f76ebc /gdb/varobj.c
parentdaily update (diff)
downloadbinutils-gdb-1c3569d4671201a9473e4b7af353a2c339027df1.tar.gz
binutils-gdb-1c3569d4671201a9473e4b7af353a2c339027df1.tar.bz2
binutils-gdb-1c3569d4671201a9473e4b7af353a2c339027df1.zip
Move `_initialize_varobj' to the end of varobj.c
* varobj.c (_initialize_varobj): Move to the end of file.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 1c4bae947bb..45a19e1b384 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -2726,24 +2726,6 @@ all_root_varobjs (void (*func) (struct varobj *var, void *data), void *data)
(*func) (var_root->rootvar, data);
}
}
-
-extern void _initialize_varobj (void);
-void
-_initialize_varobj (void)
-{
- int sizeof_table = sizeof (struct vlist *) * VAROBJ_TABLE_SIZE;
-
- varobj_table = xmalloc (sizeof_table);
- memset (varobj_table, 0, sizeof_table);
-
- add_setshow_zuinteger_cmd ("varobj", class_maintenance,
- &varobjdebug,
- _("Set varobj debugging."),
- _("Show varobj debugging."),
- _("When non-zero, varobj debugging is enabled."),
- NULL, show_varobjdebug,
- &setdebuglist, &showdebuglist);
-}
/* Invalidate varobj VAR if it is tied to locals and re-create it if it is
defined on globals. It is a helper for varobj_invalidate.
@@ -2786,3 +2768,21 @@ varobj_invalidate (void)
{
all_root_varobjs (varobj_invalidate_iter, NULL);
}
+
+extern void _initialize_varobj (void);
+void
+_initialize_varobj (void)
+{
+ int sizeof_table = sizeof (struct vlist *) * VAROBJ_TABLE_SIZE;
+
+ varobj_table = xmalloc (sizeof_table);
+ memset (varobj_table, 0, sizeof_table);
+
+ add_setshow_zuinteger_cmd ("varobj", class_maintenance,
+ &varobjdebug,
+ _("Set varobj debugging."),
+ _("Show varobj debugging."),
+ _("When non-zero, varobj debugging is enabled."),
+ NULL, show_varobjdebug,
+ &setdebuglist, &showdebuglist);
+}