Author: domipheus Date: Wed May 27 07:48:14 2015 New Revision: 238314 URL: http://llvm.org/viewvc/llvm-project?rev=238314&view=rev Log: Add a language log category.
Differential Revision: http://reviews.llvm.org/D9994 Modified: lldb/trunk/include/lldb/Core/Logging.h lldb/trunk/source/Core/Logging.cpp Modified: lldb/trunk/include/lldb/Core/Logging.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/Logging.h?rev=238314&r1=238313&r2=238314&view=diff ============================================================================== --- lldb/trunk/include/lldb/Core/Logging.h (original) +++ lldb/trunk/include/lldb/Core/Logging.h Wed May 27 07:48:14 2015 @@ -47,6 +47,7 @@ #define LIBLLDB_LOG_PLATFORM (1u << 25) #define LIBLLDB_LOG_SYSTEM_RUNTIME (1u << 26) #define LIBLLDB_LOG_JIT_LOADER (1u << 27) +#define LIBLLDB_LOG_LANGUAGE (1u << 28) #define LIBLLDB_LOG_ALL (UINT32_MAX) #define LIBLLDB_LOG_DEFAULT (LIBLLDB_LOG_PROCESS |\ LIBLLDB_LOG_THREAD |\ Modified: lldb/trunk/source/Core/Logging.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Logging.cpp?rev=238314&r1=238313&r2=238314&view=diff ============================================================================== --- lldb/trunk/source/Core/Logging.cpp (original) +++ lldb/trunk/source/Core/Logging.cpp Wed May 27 07:48:14 2015 @@ -147,6 +147,7 @@ lldb_private::DisableLog (const char **c else if (0 == ::strncasecmp(arg, "mmap", 4)) flag_bits &= ~LIBLLDB_LOG_MMAP; else if (0 == ::strcasecmp(arg, "os")) flag_bits &= ~LIBLLDB_LOG_OS; else if (0 == ::strcasecmp(arg, "jit")) flag_bits &= ~LIBLLDB_LOG_JIT_LOADER; + else if (0 == ::strcasecmp(arg, "language")) flag_bits &= ~LIBLLDB_LOG_LANGUAGE; else { feedback_strm->Printf ("error: unrecognized log category '%s'\n", arg); @@ -222,6 +223,7 @@ lldb_private::EnableLog (StreamSP &log_s else if (0 == ::strcasecmp(arg, "verbose")) flag_bits |= LIBLLDB_LOG_VERBOSE; else if (0 == ::strncasecmp(arg, "watch", 5)) flag_bits |= LIBLLDB_LOG_WATCHPOINTS; else if (0 == ::strcasecmp(arg, "jit")) flag_bits |= LIBLLDB_LOG_JIT_LOADER; + else if (0 == ::strcasecmp(arg, "language")) flag_bits |= LIBLLDB_LOG_LANGUAGE; else { feedback_strm->Printf("error: unrecognized log category '%s'\n", arg); @@ -254,6 +256,7 @@ lldb_private::ListLogCategories (Stream " expr - log expressions\n" " host - log host activities\n" " jit - log JIT events in the target\n" + " language - log language runtime events\n" " mmap - log mmap related activities\n" " module - log module activities such as when modules are created, destroyed, replaced, and more\n" " object - log object construction/destruction for important objects\n" _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits