summaryrefslogtreecommitdiffstats
path: root/lldb/examples/summaries/cocoa/Logger.py
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-02-09 01:44:23 +0000
committerEnrico Granata <egranata@apple.com>2013-02-09 01:44:23 +0000
commite1fb1654c801621930af3a1822147f220e2e2df9 (patch)
tree3aa7f0bb8167c8cc18889af94b3736a75fc971fb /lldb/examples/summaries/cocoa/Logger.py
parent7dab26b87cd4e957e1bc55e0b9ffbba9a7a3c19a (diff)
downloadbcm5719-llvm-e1fb1654c801621930af3a1822147f220e2e2df9.tar.gz
bcm5719-llvm-e1fb1654c801621930af3a1822147f220e2e2df9.zip
Quick fix for the libc++ std::map synthetic children provider
If you try to access any child > 0 without having touched child 0, LLDB won't be able to reconstruct type information from the debug info. Previously, we would fail. Now, we simply go fetch child 0 and then come back. llvm-svn: 174795
Diffstat (limited to 'lldb/examples/summaries/cocoa/Logger.py')
-rw-r--r--lldb/examples/summaries/cocoa/Logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/examples/summaries/cocoa/Logger.py b/lldb/examples/summaries/cocoa/Logger.py
index 8044416e5ba..91d503c3121 100644
--- a/lldb/examples/summaries/cocoa/Logger.py
+++ b/lldb/examples/summaries/cocoa/Logger.py
@@ -58,10 +58,10 @@ class FileLogger:
self.file = None
# to enable logging:
-# define Logger._lldb_formatters_debug_level to any number greater than 0
+# define lldb.formatters.Logger._lldb_formatters_debug_level to any number greater than 0
# if you define it to any value greater than 1, the log will be automatically flushed after each write (slower but should make sure most of the stuff makes it to the log even if we crash)
# if you define it to any value greater than 2, the calling function's details will automatically be logged (even slower, but provides additional details)
-# if you need the log to go to a file instead of on screen, define Logger._lldb_formatters_debug_filename to a valid filename
+# if you need the log to go to a file instead of on screen, define lldb.formatters.Logger._lldb_formatters_debug_filename to a valid filename
class Logger:
def __init__(self,autoflush=False,logcaller=False):
global _lldb_formatters_debug_level
OpenPOWER on IntegriCloud