Move `_initialize_varobj' to the end of varobj.c

* varobj.c (_initialize_varobj): Move to the end of file.
This commit is contained in:
Maciej W. Rozycki 2014-09-01 15:09:59 +01:00
parent e36bf69878
commit 1c3569d467
2 changed files with 22 additions and 18 deletions

View file

@ -1,3 +1,7 @@
2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
* varobj.c (_initialize_varobj): Move to the end of file.
2014-08-29 Gary Benson <gbenson@redhat.com>
* common/common-exceptions.h: New file.

View file

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