Add logging to ProcessWindows.
llvm-svn: 236776
diff --git a/lldb/source/Core/Log.cpp b/lldb/source/Core/Log.cpp
index a830754..d2de299 100644
--- a/lldb/source/Core/Log.cpp
+++ b/lldb/source/Core/Log.cpp
@@ -208,11 +208,18 @@
void
Log::Error(const char *format, ...)
{
- char *arg_msg = nullptr;
va_list args;
va_start(args, format);
- ::vasprintf(&arg_msg, format, args);
+ VAError(format, args);
va_end(args);
+}
+
+
+void
+Log::VAError(const char *format, va_list args)
+{
+ char *arg_msg = nullptr;
+ ::vasprintf(&arg_msg, format, args);
if (arg_msg == nullptr)
return;
@@ -221,6 +228,7 @@
free(arg_msg);
}
+
//----------------------------------------------------------------------
// Printing of errors that ARE fatal. Exit with ERR exit code
// immediately.