summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-20 23:52:24 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-20 23:52:24 +0000
commit102bbfbaef1f52dfc770c51e39af24e14d2665dd (patch)
tree95281c8bb747972ab16a2c6db62d41c039d460be /base/process_util.h
parentab17025f9e68b3e4ac6156e5b668e5bfba7901fc (diff)
downloadchromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.zip
chromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.tar.gz
chromium_src-102bbfbaef1f52dfc770c51e39af24e14d2665dd.tar.bz2
Make printf and LOG output to cmd console for Windows
BUG=142722 Review URL: https://chromiumcodereview.appspot.com/10832309 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152432 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/base/process_util.h b/base/process_util.h
index 04c1d88d..25d2420 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -138,6 +138,12 @@ enum TerminationStatus {
BASE_EXPORT extern size_t g_oom_size;
#endif
+#if defined(OS_WIN)
+// Output multi-process printf, cout, cerr, etc to the cmd.exe console that ran
+// chrome. This is not thread-safe: only call from main thread.
+BASE_EXPORT void RouteStdioToConsole();
+#endif
+
// Returns the id of the current process.
BASE_EXPORT ProcessId GetCurrentProcId();
@@ -832,7 +838,7 @@ BASE_EXPORT malloc_zone_t* GetPurgeableZone();
// Enables stack dump to console output on exception and signals.
// When enabled, the process will quit immediately. This is meant to be used in
-// unit_tests only!
+// unit_tests only! This is not thread-safe: only call from main thread.
BASE_EXPORT bool EnableInProcessStackDumping();
// If supported on the platform, and the user has sufficent rights, increase