From a37a065c3392ab52abd6a896ac1e95b4878cafad Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Sun, 24 Jul 2011 00:14:56 +0000 Subject: Python synthetic children: - you can now define a Python class as a synthetic children producer for a type the class must adhere to this "interface": def __init__(self, valobj, dict): def get_child_at_index(self, index): def get_child_index(self, name): then using type synth add -l className typeName (e.g. type synth add -l fooSynthProvider foo) (This is still WIP with lots to be added) A small test case is available also as reference llvm-svn: 135865 --- lldb/source/Core/Debugger.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index d7538f60d42..dff2eb00fe8 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1746,6 +1746,12 @@ GetFormatManager() { return g_format_manager; } +void +Debugger::Formatting::ForceUpdate() +{ + GetFormatManager().Changed(); +} + bool Debugger::Formatting::ValueFormats::Get(ValueObject& vobj, ValueFormat::SharedPointer &entry) { @@ -1796,7 +1802,7 @@ Debugger::Formatting::GetSummaryFormat(ValueObject& vobj, } bool Debugger::Formatting::GetSyntheticFilter(ValueObject& vobj, - lldb::SyntheticFilterSP& entry) + lldb::SyntheticChildrenSP& entry) { return GetFormatManager().Get(vobj, entry); } -- cgit v1.2.3