diff options
author | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 18:21:20 +0000 |
---|---|---|
committer | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-03 18:21:20 +0000 |
commit | 9289af828c3cb0323a4655aac6264d06e9b0a409 (patch) | |
tree | 5587be77175d42c70a39a79c41099400dda45c70 /chrome/app | |
parent | cac984cfed7c91fe452ceb15afa519777267a9b6 (diff) | |
download | chromium_src-9289af828c3cb0323a4655aac6264d06e9b0a409.zip chromium_src-9289af828c3cb0323a4655aac6264d06e9b0a409.tar.gz chromium_src-9289af828c3cb0323a4655aac6264d06e9b0a409.tar.bz2 |
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
Diffstat (limited to 'chrome/app')
-rw-r--r-- | chrome/app/breakpad_linux.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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. |