From c45b12b4225be716eba98f8305eebe36b2b19dbb Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Thu, 16 Dec 2010 22:52:38 +0000 Subject: Fix MinidumpGenerator::WriteExceptionStream for writing cross-architecture dumps R=mark at http://breakpad.appspot.com/244001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@747 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/mac/handler/minidump_generator.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client/mac/handler') diff --git a/src/client/mac/handler/minidump_generator.cc b/src/client/mac/handler/minidump_generator.cc index 2e9765ad..8d670429 100644 --- a/src/client/mac/handler/minidump_generator.cc +++ b/src/client/mac/handler/minidump_generator.cc @@ -870,13 +870,10 @@ MinidumpGenerator::WriteExceptionStream(MDRawDirectory *exception_stream) { exception_ptr->exception_record.exception_flags = exception_code_; breakpad_thread_state_data_t state; - mach_msg_type_number_t stateCount + mach_msg_type_number_t state_count = static_cast(sizeof(state)); - if (thread_get_state(exception_thread_, - BREAKPAD_MACHINE_THREAD_STATE, - state, - &stateCount) != KERN_SUCCESS) + if (!GetThreadState(exception_thread_, state, &state_count)) return false; if (!WriteContext(state, &exception_ptr->thread_context)) -- cgit v1.2.1