diff options
author | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-10-12 14:00:19 +0000 |
---|---|---|
committer | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-10-12 14:00:19 +0000 |
commit | 375928a0a6dc734d4d93cc61588d2335e6742908 (patch) | |
tree | 4a5e05e75794e8895fa0e526dec55744ca6d0ca1 /src/client/mac/sender | |
parent | Handling reading arm executable. (diff) | |
download | breakpad-375928a0a6dc734d4d93cc61588d2335e6742908.tar.xz |
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
Diffstat (limited to 'src/client/mac/sender')
-rw-r--r-- | src/client/mac/sender/uploader.m | 6 |
1 files changed, 6 insertions, 0 deletions
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 <fcntl.h> #import <pwd.h> #import <sys/stat.h> +#include <TargetConditionals.h> #import <unistd.h> #import <SystemConfiguration/SystemConfiguration.h> @@ -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 } //============================================================================= |