aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/minidump_generator.cc
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-04-25 00:37:19 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-04-25 00:37:19 +0000
commit4c39c138fe2a68206c2143d7401a113a1c4b130b (patch)
tree3fce0e66f9fafc93cfc16c5db17458222cbf832a /src/client/mac/handler/minidump_generator.cc
parentAdd one more parameter to the ClientDumpRequestCallback in crash generation s... (diff)
downloadbreakpad-4c39c138fe2a68206c2143d7401a113a1c4b130b.tar.xz
Issue 258: Added test cases for ReadTaskMemory, reorganized project file, renamed filenames inside comments
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@263 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/minidump_generator.cc')
-rw-r--r--src/client/mac/handler/minidump_generator.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/mac/handler/minidump_generator.cc b/src/client/mac/handler/minidump_generator.cc
index 1bc4407c..996940fb 100644
--- a/src/client/mac/handler/minidump_generator.cc
+++ b/src/client/mac/handler/minidump_generator.cc
@@ -268,9 +268,16 @@ bool MinidumpGenerator::WriteStackFromStartAddress(
bool result;
if (dynamic_images_) {
+ kern_return_t kr;
+
void *stack_memory = ReadTaskMemory(crashing_task_,
(void*)start_addr,
- size);
+ size,
+ &kr);
+
+ if(stack_memory == NULL) {
+ return false;
+ }
result = memory.Copy(stack_memory, size);
free(stack_memory);