aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows/crash_generation/client_info.cc
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-25 15:34:00 +0000
committermark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-25 15:34:00 +0000
commitc5782715455a9bd7d9d03d5d9a429e4228b7f090 (patch)
tree7105d294d634c24509c16185e1991b27f50d6d8b /src/client/windows/crash_generation/client_info.cc
parentSpeculatively back out r989 per http://codereview.chromium.org/10805065/ : (diff)
downloadbreakpad-c5782715455a9bd7d9d03d5d9a429e4228b7f090.tar.xz
Speculatively back out r984. See http://codereview.chromium.org/10805065/
and http://build.chromium.org/p/chromium/builders/NACL%20Tests%20%28x64%29/builds/34563 chrome src/native_client/tests/inbrowser_crash_test/crash_dump_tester.py says that the observed failures are a symptom of crash_service.exe itself crashing. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@999 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows/crash_generation/client_info.cc')
-rw-r--r--src/client/windows/crash_generation/client_info.cc45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/client/windows/crash_generation/client_info.cc b/src/client/windows/crash_generation/client_info.cc
index 294096f3..60bbac82 100644
--- a/src/client/windows/crash_generation/client_info.cc
+++ b/src/client/windows/crash_generation/client_info.cc
@@ -31,8 +31,6 @@
#include "client/windows/common/ipc_protocol.h"
static const wchar_t kCustomInfoProcessUptimeName[] = L"ptime";
-static const wchar_t kCustomDataStreamCustomFieldName[] = L"custom-data-stream";
-static const size_t kMaxCustomDataStreamSize = 100 * 1024 * 1024;
static const size_t kMaxCustomInfoEntries = 4096;
namespace google_breakpad {
@@ -50,7 +48,6 @@ ClientInfo::ClientInfo(CrashGenerationServer* crash_server,
ex_info_(ex_info),
assert_info_(assert_info),
custom_client_info_(custom_client_info),
- custom_data_stream_(NULL),
thread_id_(thread_id),
process_handle_(NULL),
dump_requested_handle_(NULL),
@@ -89,11 +86,6 @@ bool ClientInfo::Initialize() {
}
ClientInfo::~ClientInfo() {
- if (custom_data_stream_) {
- delete custom_data_stream_;
- custom_data_stream_ = NULL;
- }
-
if (dump_request_wait_handle_) {
// Wait for callbacks that might already be running to finish.
UnregisterWaitEx(dump_request_wait_handle_, INVALID_HANDLE_VALUE);
@@ -207,43 +199,6 @@ bool ClientInfo::PopulateCustomInfo() {
return (bytes_count != read_count);
}
-bool ClientInfo::PopulateCustomDataStream() {
- for (SIZE_T i = 0; i < custom_client_info_.count; ++i) {
- if (_wcsicmp(kCustomDataStreamCustomFieldName,
- custom_client_info_.entries[i].name) != 0) {
- continue;
- }
- wchar_t address_str[CustomInfoEntry::kValueMaxLength];
- memcpy(address_str, custom_client_info_.entries[i].value,
- CustomInfoEntry::kValueMaxLength);
- wchar_t* size_str = wcschr(address_str, ':');
- if (!size_str)
- return false;
-
- size_str[0] = 0;
- ++size_str;
- void* address = reinterpret_cast<void*>(_wcstoi64(address_str, NULL, 16));
- long size = wcstol(size_str, NULL, 16);
- if (size <= 0 || size > kMaxCustomDataStreamSize)
- return false;
-
- custom_data_stream_ = reinterpret_cast<CustomDataStream*>(
- new u_int8_t[sizeof(CustomDataStream) + size - 1]);
-
- SIZE_T bytes_count = 0;
- if (!ReadProcessMemory(process_handle_, address,
- custom_data_stream_->stream, size, &bytes_count)) {
- delete custom_data_stream_;
- custom_data_stream_ = NULL;
- return false;
- }
-
- return true;
- }
-
- return false;
-}
-
CustomClientInfo ClientInfo::GetCustomInfo() const {
CustomClientInfo custom_info;
custom_info.entries = custom_info_entries_.get();