diff options
author | Maciej W. Rozycki <macro@codesourcery.com> | 2014-09-01 15:09:59 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@codesourcery.com> | 2014-09-01 15:09:59 +0100 |
commit | 1c3569d4671201a9473e4b7af353a2c339027df1 (patch) | |
tree | 18f74fa08bd01c47e7edc7f57b815f7b39f76ebc | |
parent | e36bf698787936b2412e05007dfe77dee98ed2e8 (diff) | |
download | gdb-1c3569d4671201a9473e4b7af353a2c339027df1.zip gdb-1c3569d4671201a9473e4b7af353a2c339027df1.tar.gz gdb-1c3569d4671201a9473e4b7af353a2c339027df1.tar.bz2 |
Move `_initialize_varobj' to the end of varobj.c
* varobj.c (_initialize_varobj): Move to the end of file.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/varobj.c | 36 |
2 files changed, 22 insertions, 18 deletions
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 <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. 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); +} |