summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-12 19:14:27 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-12 19:14:27 +0000
commit68eb4bb4214682936d8798586a2ffbb368299e62 (patch)
tree91cf9c1a8aa74a8bbb2edfe724ac98b9bd83953f /lldb/source/Core/Debugger.cpp
parent70cb84a0f6dfeed83a712b15b7336b7af9fc928f (diff)
downloadbcm5719-llvm-68eb4bb4214682936d8798586a2ffbb368299e62.tar.gz
bcm5719-llvm-68eb4bb4214682936d8798586a2ffbb368299e62.zip
Added an error message when the user tries to add a filter when a synthetic provider for the same type is already defined in the same category
The converse is also true: an error is shown when the user tries to add a synthetic provider to a category that already has a filter for the same type llvm-svn: 137493
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 0c62a4f8047..f4b640d5609 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -1837,14 +1837,28 @@ Debugger::Formatting::GetSummaryFormat(ValueObject& vobj,
return GetFormatManager().Get(vobj, entry, use_dynamic);
}
bool
-Debugger::Formatting::GetSyntheticFilter(ValueObject& vobj,
- lldb::DynamicValueType use_dynamic,
- lldb::SyntheticChildrenSP& entry)
+Debugger::Formatting::GetSyntheticChildren(ValueObject& vobj,
+ lldb::DynamicValueType use_dynamic,
+ lldb::SyntheticChildrenSP& entry)
{
return GetFormatManager().Get(vobj, entry, use_dynamic);
}
bool
+Debugger::Formatting::AnyMatches(ConstString type_name,
+ FormatCategory::FormatCategoryItems items,
+ bool only_enabled,
+ const char** matching_category,
+ FormatCategory::FormatCategoryItems* matching_type)
+{
+ return GetFormatManager().AnyMatches(type_name,
+ items,
+ only_enabled,
+ matching_category,
+ matching_type);
+}
+
+bool
Debugger::Formatting::Categories::Get(const ConstString &category, lldb::FormatCategorySP &entry)
{
entry = GetFormatManager().Category(category.GetCString());
OpenPOWER on IntegriCloud