breakpad/src/common/mac
Chingjun Lau f7428bc397 Fix macos_dump_syms when __eh_frame is included in the dSYM file.
macho_reader assumes that every section in a segment exists, or none of the
sections exist in the file (for dSYM files).

https://reviews.llvm.org/D94460?id=315965 added __eh_frame section to the
__TEXT segments in dSYM files. All the other sections are removed, but still
have non-zero size in the header. macho_reader only looks at `fileoff` and
`filesize` fields to determine the size of the segment, but it looks at `addr`
and `size` to determine the size of the section, therefore it determines that
the sections would not fit in the segment and refused to parse the file.

In this case the removed sections all have offset == 0. Ignore such cases.

Change-Id: Ife771f7b302c1bc81c673b1103492c41321b5e3e
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2911204
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
2021-05-21 18:56:41 +00:00
..
testing Remove GTM_ENABLE_LEAKS and GTMGarbageCollection 2016-04-21 13:20:17 -07:00
arch_utilities.cc Add mac dump_syms support for arm64e 2018-11-26 18:29:35 +00:00
arch_utilities.h Add custom implementation of NXGetArchInfoXXX to allow adding new arch. 2012-10-03 16:20:53 +00:00
bootstrap_compat.cc Funnel all bootstrap_register calls through a routine that doesn't care that 2012-02-21 21:24:43 +00:00
bootstrap_compat.h Funnel all bootstrap_register calls through a routine that doesn't care that 2012-02-21 21:24:43 +00:00
Breakpad.xcconfig Fixes up dump_syms build on OS X so it works with ELF. 2016-05-12 11:38:09 -07:00
BreakpadDebug.xcconfig Clean up build for 64 bit. 2010-07-19 20:43:49 +00:00
BreakpadRelease.xcconfig Rewrite SimpleStringDictionary with NonAllocatingMap. 2013-04-24 18:15:48 +00:00
byteswap.h Fix Mac Breakpad host tools to build in Linux cross-compile 2015-09-16 06:46:55 -04:00
dump_syms.cc Correct native symbol upload and UUID. 2021-03-08 17:38:32 +00:00
dump_syms.h Automatically capture debugID in Mac OS symupload tool. 2021-03-02 19:22:16 +00:00
encoding_util.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
encoding_util.m Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
file_id.cc Fix Mac Breakpad host tools to build in Linux cross-compile 2015-09-16 06:46:55 -04:00
file_id.h breakpad: Remove semicolons, iOS edition. 2019-02-25 21:43:47 +00:00
GTMDefines.h Update links 2016-11-18 17:24:37 +00:00
GTMLogger.h Update GTM files to latest from 2012-09-21 07:55:17 +00:00
GTMLogger.m Update GTM and enable -Wundef and strict C++11 flags. 2014-02-26 16:14:04 +00:00
HTTPGetRequest.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPGetRequest.m Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPMultipartUpload.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPMultipartUpload.m Fix v1 symupload protocol in Mac client. 2020-07-31 21:47:18 +00:00
HTTPPutRequest.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPPutRequest.m Correct native symbol upload and UUID. 2021-03-08 17:38:32 +00:00
HTTPRequest.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPRequest.m Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPSimplePostRequest.h Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
HTTPSimplePostRequest.m Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
launch_reporter.cc Mac: Add support for in-process crash reporting to Breakpad. 2014-09-15 22:48:18 +00:00
launch_reporter.h Mac: Add support for in-process crash reporting to Breakpad. 2014-09-15 22:48:18 +00:00
MachIPC.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
MachIPC.mm fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
macho_id.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
macho_id.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
macho_reader_unittest.cc Fix macos_dump_syms when __eh_frame is included in the dSYM file. 2021-05-21 18:56:41 +00:00
macho_reader.cc Fix macos_dump_syms when __eh_frame is included in the dSYM file. 2021-05-21 18:56:41 +00:00
macho_reader.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
macho_utilities.cc Fix Mac Breakpad host tools to build in Linux cross-compile 2015-09-16 06:46:55 -04:00
macho_utilities.h Fix Mac Breakpad host tools to build in Linux cross-compile 2015-09-16 06:46:55 -04:00
macho_walker.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
macho_walker.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
minidump_upload.m Fix Mac symupload non-XCode builds. 2020-07-29 23:30:33 +00:00
scoped_task_suspend-inl.h Implement CrashGeneration{Client,Server} for OOP dump generation on OS X, enable OOP dump generation in ExceptionHandler 2010-08-13 20:18:58 +00:00
string_utilities.cc fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
string_utilities.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
super_fat_arch.h fix pointer style to match the style guide 2020-07-15 06:20:02 +00:00
SymbolCollectorClient.h Add native symbol uploads to Mac OS symupload tool. 2020-08-17 22:31:50 +00:00
SymbolCollectorClient.m Change JSON serialization error check. 2020-09-09 22:07:06 +00:00