aboutsummaryrefslogtreecommitdiff
path: root/src/client/ios
diff options
context:
space:
mode:
authoryuwu@google.com <yuwu@google.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-07-15 18:33:10 +0000
committeryuwu@google.com <yuwu@google.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2013-07-15 18:33:10 +0000
commitfce16c18561d2dc589e81b7a38d05a5fc0009bd9 (patch)
treeff5173569396beaece88241770d849ac6c26d55d /src/client/ios
parentDetect corrupt symbol files during minidump processing. Recover from the err... (diff)
downloadbreakpad-fce16c18561d2dc589e81b7a38d05a5fc0009bd9.tar.xz
Check env var BreakpadMinidumpLocation first, if set, use it as BREAKPAD_DUMP_DIRECTORY.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1201 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/ios')
-rw-r--r--src/client/ios/Breakpad.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm
index e8c4240b..77f79ba9 100644
--- a/src/client/ios/Breakpad.mm
+++ b/src/client/ios/Breakpad.mm
@@ -327,8 +327,11 @@ bool Breakpad::ExtractParameters(NSDictionary *parameters) {
NSString *urlStr = [parameters objectForKey:@BREAKPAD_URL];
NSString *vendor =
[parameters objectForKey:@BREAKPAD_VENDOR];
- NSString *dumpSubdirectory =
- [parameters objectForKey:@BREAKPAD_DUMP_DIRECTORY];
+ // We check both parameters and the environment variable here.
+ char *envVarDumpSubdirectory = getenv(BREAKPAD_DUMP_DIRECTORY);
+ NSString *dumpSubdirectory = envVarDumpSubdirectory ?
+ [[NSString alloc] initWithUTF8String:envVarDumpSubdirectory] :
+ [parameters objectForKey:@BREAKPAD_DUMP_DIRECTORY];
NSDictionary *serverParameters =
[parameters objectForKey:@BREAKPAD_SERVER_PARAMETER_DICT];