mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-03-26 02:48:42 +00:00
iOS: disable using CFI in stackwalking
dump_syms produces incomplete CFI info on iOS because it doesn't support converting compact unwind to Breakpad symbols. Attempting to use incomplete CFI can result in infinte stack traces. Bug: google-breakpad:764 Change-Id: Id042aa515d17928cb5503a79038607d95c56238d Reviewed-on: https://chromium-review.googlesource.com/1128252 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
@@ -782,8 +782,12 @@ TEST_F(CFI, RejectBadExpressions) {
|
||||
class StackwalkerARMFixtureIOS : public StackwalkerARMFixture {
|
||||
public:
|
||||
StackwalkerARMFixtureIOS() {
|
||||
system_info.os = "iOS";
|
||||
system_info.os_short = "ios";
|
||||
// iOS_test is used instead of iOS because the stackwalker has a check to
|
||||
// avoid using CFI for iOS dumps. This is a workaround for bad CFI being
|
||||
// produced by dump_syms for iOS.
|
||||
// https://bugs.chromium.org/p/google-breakpad/issues/detail?id=764
|
||||
system_info.os = "iOS_test";
|
||||
system_info.os_short = "ios_test";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user