From 9289af828c3cb0323a4655aac6264d06e9b0a409 Mon Sep 17 00:00:00 2001 From: "vangelis@chromium.org" Date: Thu, 3 Feb 2011 18:21:20 +0000 Subject: Adding crash reporting on Linux for the GPU process. BUG=49577 TEST=Tested as follows: 1. Set GYP_DEFINES="linux_breakpad=1" 2. From src/ issue: ./build/gyp_chromium -f make 3. Build chromium 4. Run: chrome --enable-crash-reporter 5. Visit a page that causes the gpu process to be launched (e.g. "about:gpu") 6. Go to "about:gpucrash" to force a gpu process crash 7. Verify that a .dmp file is create in ~/.config/chromium/Crash\ Reports/ Review URL: http://codereview.chromium.org/6368072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73639 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/breakpad_linux.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/app') diff --git a/chrome/app/breakpad_linux.cc b/chrome/app/breakpad_linux.cc index 15d6e65..e471e55 100644 --- a/chrome/app/breakpad_linux.cc +++ b/chrome/app/breakpad_linux.cc @@ -646,7 +646,7 @@ void EnableCrashDumping(const bool unattended) { } } -// Currently Non-Browser = Renderer, Plugins and Native Client +// Currently Non-Browser = Renderer, Plugins, Native Client and Gpu static bool NonBrowserCrashHandler(const void* crash_context, size_t crash_context_size, void* context) { @@ -748,7 +748,8 @@ void InitCrashReporter() { } else if (process_type == switches::kRendererProcess || process_type == switches::kPluginProcess || process_type == switches::kZygoteProcess || - process_type == switches::kNaClLoaderProcess) { + process_type == switches::kNaClLoaderProcess || + process_type == switches::kGpuProcess) { // We might be chrooted in a zygote or renderer process so we cannot call // GetCollectStatsConsent because that needs access the the user's home // dir. Instead, we set a command line flag for these processes. -- cgit v1.1