summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/FormatManager.cpp
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2011-08-22 17:34:47 +0000
committerEnrico Granata <granata.enrico@gmail.com>2011-08-22 17:34:47 +0000
commitdef5391ae5274e2df84176cde36bb1c44fbc95bd (patch)
tree63eec05890c61bc86e7eec2c0977ef6a4e186cd7 /lldb/source/Core/FormatManager.cpp
parent4b8e8ce37f4dd0fcc91aed5034ea8401fe2fdf41 (diff)
downloadbcm5719-llvm-def5391ae5274e2df84176cde36bb1c44fbc95bd.tar.gz
bcm5719-llvm-def5391ae5274e2df84176cde36bb1c44fbc95bd.zip
- Support for Python namespaces:
If you have a Python module foo, in order to use its contained objects in LLDB you do not need to use 'from foo import *'. You can use 'import foo', and then refer to items in foo as 'foo.bar', and LLDB will know how to resolve bar as a member of foo. Accordingly, GNU libstdc++ formatters have been moved from the global namespace to gnu_libstdcpp and a few test cases are also updated to reflect the new convention. Python docs suggest using a plain 'import' en lieu of 'from-import'. llvm-svn: 138244
Diffstat (limited to 'lldb/source/Core/FormatManager.cpp')
-rw-r--r--lldb/source/Core/FormatManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp
index cc69ff1b8fd..27ed7841060 100644
--- a/lldb/source/Core/FormatManager.cpp
+++ b/lldb/source/Core/FormatManager.cpp
@@ -447,17 +447,17 @@ FormatManager::FormatManager() :
SyntheticChildrenSP(new SyntheticScriptProvider(true,
false,
false,
- "StdVectorSynthProvider")));
+ "gnu_libstdcpp.StdVectorSynthProvider")));
Category(m_gnu_cpp_category_name)->GetRegexSyntheticNavigator()->Add(RegularExpressionSP(new RegularExpression("std::map<")),
SyntheticChildrenSP(new SyntheticScriptProvider(true,
false,
false,
- "StdMapSynthProvider")));
+ "gnu_libstdcpp.StdMapSynthProvider")));
Category(m_gnu_cpp_category_name)->GetRegexSyntheticNavigator()->Add(RegularExpressionSP(new RegularExpression("std::list<")),
SyntheticChildrenSP(new SyntheticScriptProvider(true,
false,
false,
- "StdListSynthProvider")));
+ "gnu_libstdcpp.StdListSynthProvider")));
// DO NOT change the order of these calls, unless you WANT a change in the priority of these categories
EnableCategory(m_system_category_name);
OpenPOWER on IntegriCloud