mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
some editing of data visualization error messages to make them more meaningful
debugging printfs() for data visualization turned into a meaningful log: - introduced a new log category `types' in channel `lldb' llvm-svn: 135773
This commit is contained in:
@@ -134,6 +134,7 @@ lldb_private::DisableLog (Args &args, Stream *feedback_strm)
|
||||
else if (0 == ::strncasecmp(arg, "conn", 4)) flag_bits &= ~LIBLLDB_LOG_CONNECTION;
|
||||
else if (0 == ::strncasecmp(arg, "host", 4)) flag_bits &= ~LIBLLDB_LOG_HOST;
|
||||
else if (0 == ::strncasecmp(arg, "unwind", 6)) flag_bits &= ~LIBLLDB_LOG_UNWIND;
|
||||
else if (0 == ::strncasecmp(arg, "types", 5)) flag_bits &= ~LIBLLDB_LOG_TYPES;
|
||||
else
|
||||
{
|
||||
feedback_strm->Printf ("error: unrecognized log category '%s'\n", arg);
|
||||
@@ -200,6 +201,7 @@ lldb_private::EnableLog (StreamSP &log_stream_sp, uint32_t log_options, Args &ar
|
||||
else if (0 == ::strncasecmp(arg, "conn", 4)) flag_bits |= LIBLLDB_LOG_CONNECTION;
|
||||
else if (0 == ::strncasecmp(arg, "host", 4)) flag_bits |= LIBLLDB_LOG_HOST;
|
||||
else if (0 == ::strncasecmp(arg, "unwind", 6)) flag_bits |= LIBLLDB_LOG_UNWIND;
|
||||
else if (0 == ::strncasecmp(arg, "types", 5)) flag_bits |= LIBLLDB_LOG_TYPES;
|
||||
else
|
||||
{
|
||||
feedback_strm->Printf("error: unrecognized log category '%s'\n", arg);
|
||||
@@ -238,5 +240,6 @@ lldb_private::ListLogCategories (Stream *strm)
|
||||
"\tstep - log step related activities\n"
|
||||
"\tunwind - log stack unwind activities\n"
|
||||
"\tverbose - enable verbose logging\n"
|
||||
"\twatch - log watchpoint related activities\n");
|
||||
"\twatch - log watchpoint related activities\n"
|
||||
"\ttypes - log type system related activities\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user