This includes some assorted fixes from upstream plus an adaptation of the patch in b988fa74ec18de6214b18f723e48331d9a7802ae which includes heap memory regions in the minidump. Since our support for that is more extensive than upstream breakpad the resulting change reflects this. Last but not least the fixes for bug 1489094 and bug 1511140 were split out as patches to be applied to the unmodified breakpad sources. They will be reintegrated as soon as we fork breakpad for good. Differential Revision: https://phabricator.services.mozilla.com/D16326
25 lines
905 B
Diff
25 lines
905 B
Diff
diff --git a/src/common/mac/MachIPC.h b/src/common/mac/MachIPC.h
|
|
--- a/src/common/mac/MachIPC.h
|
|
+++ b/src/common/mac/MachIPC.h
|
|
@@ -90,18 +90,20 @@
|
|
//
|
|
// char messageString[] = "Hello server!\n";
|
|
// message.SetData(messageString, strlen(messageString)+1);
|
|
//
|
|
// kern_return_t result = sender.SendMessage(message, 1000); // timeout 1000ms
|
|
//
|
|
|
|
namespace google_breakpad {
|
|
+#ifndef PRINT_MACH_RESULT
|
|
#define PRINT_MACH_RESULT(result_, message_) \
|
|
printf(message_" %s (%d)\n", mach_error_string(result_), result_ );
|
|
+#endif
|
|
|
|
//==============================================================================
|
|
// A wrapper class for mach_msg_port_descriptor_t (with same memory layout)
|
|
// with convenient constructors and accessors
|
|
class MachMsgPortDescriptor : public mach_msg_port_descriptor_t {
|
|
public:
|
|
// General-purpose constructor
|
|
MachMsgPortDescriptor(mach_port_t in_name,
|