diff options
author | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-08-17 21:22:16 +0000 |
---|---|---|
committer | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-08-17 21:22:16 +0000 |
commit | 9982e65506acf7f5015842e795add68edb91050d (patch) | |
tree | 52e8452413d3187b0d612b9ff27666f667fc729b /src/common/mac | |
parent | Add accessor for ExceptionHandler::requesting_thread_id_ (#198). Patch by Lu... (diff) | |
download | breakpad-9982e65506acf7f5015842e795add68edb91050d.tar.xz |
Issue 199: Reviewed by Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@204 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/mac')
-rw-r--r-- | src/common/mac/dump_syms.mm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/mac/dump_syms.mm b/src/common/mac/dump_syms.mm index 7b5e8e63..d96e1ac0 100644 --- a/src/common/mac/dump_syms.mm +++ b/src/common/mac/dump_syms.mm @@ -302,11 +302,14 @@ static const int kTextSection = 1; NSString *fn = [NSString stringWithUTF8String:&table[n_strx]]; NSRange range = [fn rangeOfString:@":" options:NSBackwardsSearch]; - if (![fn length] || !range.length) + if (![fn length]) return NO; - // The function has a ":" followed by some stuff - fn = [fn substringToIndex:range.location]; + if (range.length > 0) { + // The function has a ":" followed by some stuff, so strip it off + fn = [fn substringToIndex:range.location]; + } + [self addFunction:fn line:line address:list->n_value section:list->n_sect ]; result = YES; |