From 375928a0a6dc734d4d93cc61588d2335e6742908 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Wed, 12 Oct 2011 14:00:19 +0000 Subject: Breakpad implementation for ios. To be noted: 1) All is done in process, as multi-process is not allowed on ios. 2) Dump are saved when a crash occures but are not automatically send to the server. 3) Breakpad.h contains function to check if a dump must be uploaded, and to upload a dump. 4) The code is copy pasting a log of Breakpad implementation for Mac OS. It might be possible to do some refactoring. Review URL: http://breakpad.appspot.com/309003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@868 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/mac/sender/uploader.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/mac/sender/uploader.m') diff --git a/src/client/mac/sender/uploader.m b/src/client/mac/sender/uploader.m index 9961d239..4f34d4db 100644 --- a/src/client/mac/sender/uploader.m +++ b/src/client/mac/sender/uploader.m @@ -27,8 +27,10 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#import #import #import +#include #import #import @@ -241,6 +243,9 @@ NSString *const kDefaultServerType = @"google"; //============================================================================= - (BOOL)readLogFileData { +#if TARGET_OS_IPHONE + return NO; +#else unsigned int logFileCounter = 0; NSString *logPath; @@ -331,6 +336,7 @@ NSString *const kDefaultServerType = @"google"; return NO; } return YES; +#endif // TARGET_OS_IPHONE } //============================================================================= -- cgit v1.2.1