mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 23:42:57 +00:00
Move `_initialize_varobj' to the end of varobj.c
* varobj.c (_initialize_varobj): Move to the end of file.
This commit is contained in:
parent
e36bf69878
commit
1c3569d467
@ -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.
|
||||
|
36
gdb/varobj.c
36
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user