summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authorjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 03:49:11 +0000
committerjschuh@chromium.org <jschuh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 03:49:11 +0000
commitb50b9a7791575709a81170744a746852de76cd16 (patch)
treef1244994c19067ea0c85fb902804c619a1a0cbef /chrome/app
parent3e1cdd31535460d1ade1c649587978b682e3b850 (diff)
downloadchromium_src-b50b9a7791575709a81170744a746852de76cd16.zip
chromium_src-b50b9a7791575709a81170744a746852de76cd16.tar.gz
chromium_src-b50b9a7791575709a81170744a746852de76cd16.tar.bz2
Make sure CrashDumpAndTerminateHungChildProcess uses the right base address in the remote process.
Review URL: https://chromiumcodereview.appspot.com/10533027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140940 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/breakpad_win.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc
index 0588c88..6461a5d 100644
--- a/chrome/app/breakpad_win.cc
+++ b/chrome/app/breakpad_win.cc
@@ -105,6 +105,18 @@ extern "C" void __declspec(dllexport) __cdecl DumpProcessWithoutCrash() {
}
}
+DWORD WINAPI DumpProcessWithoutCrashThread(void*) {
+ DumpProcessWithoutCrash();
+ return 0;
+}
+
+// Injects a thread into a remote process to dump state when there is no crash.
+extern "C" HANDLE __declspec(dllexport) __cdecl
+InjectDumpProcessWithoutCrash(HANDLE process) {
+ return CreateRemoteThread(process, NULL, 0, DumpProcessWithoutCrashThread,
+ 0, 0, NULL);
+}
+
// Reduces the size of the string |str| to a max of 64 chars. Required because
// breakpad's CustomInfoEntry raises an invalid_parameter error if the string
// we want to set is longer.