From: Maciej W. Rozycki Date: Mon, 1 Sep 2014 14:09:59 +0000 (+0100) Subject: Move `_initialize_varobj' to the end of varobj.c X-Git-Tag: binutils-2_25~429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c3569d4671201a9473e4b7af353a2c339027df1;p=external%2Fbinutils.git Move `_initialize_varobj' to the end of varobj.c * varobj.c (_initialize_varobj): Move to the end of file. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 07f0c5e..8963878 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-09-01 Maciej W. Rozycki + + * varobj.c (_initialize_varobj): Move to the end of file. + 2014-08-29 Gary Benson * common/common-exceptions.h: New file. diff --git a/gdb/varobj.c b/gdb/varobj.c index 1c4bae9..45a19e1 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); +}