Esempio n. 1
0
void
Xcode::FetchVariable (SBValue value, uint32_t expand, bool verbose)
{
	auto name = value.GetName();
	auto num_value = value.GetValueAsUnsigned(0);
	auto summary = value.GetSummary();
	auto in_scope = value.IsInScope();
	auto has_children = value.MightHaveChildren();
	auto type_1 = value.GetType();
	auto type_2 = value.GetType();
	auto type_name_1 = value.GetTypeName();
	auto type_3 = value.GetType();
	auto type_name_2 = value.GetTypeName();
	if (verbose)
		printf("%s %s = 0x%llx (%llu) %s\n",value.GetTypeName(),value.GetName(),num_value, num_value,summary);
	if (expand > 0)
	{
		auto count = value.GetNumChildren();
		for (int i = 0; i < count; i++)
		{
			SBValue child(value.GetChildAtIndex(i, lldb::eDynamicCanRunTarget, true));
			FetchVariable (child,expand-1,verbose);
		}
	}
}