mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Add support for armv7s to the crash report text formatter
This commit is contained in:
parent
c85762904f
commit
cf28589eff
@ -35,6 +35,10 @@
|
|||||||
|
|
||||||
#import "BITCrashReportTextFormatter.h"
|
#import "BITCrashReportTextFormatter.h"
|
||||||
|
|
||||||
|
#ifndef CPU_SUBTYPE_ARM_V7S
|
||||||
|
#define CPU_SUBTYPE_ARM_V7S ((cpu_subtype_t) 11) /* Swift */
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sort PLCrashReportBinaryImageInfo instances by their starting address.
|
* Sort PLCrashReportBinaryImageInfo instances by their starting address.
|
||||||
*/
|
*/
|
||||||
@ -144,6 +148,7 @@ static NSInteger binaryImageSort(id binary1, id binary2, void *context) {
|
|||||||
switch (report.systemInfo.architecture) {
|
switch (report.systemInfo.architecture) {
|
||||||
case PLCrashReportArchitectureARMv6:
|
case PLCrashReportArchitectureARMv6:
|
||||||
case PLCrashReportArchitectureARMv7:
|
case PLCrashReportArchitectureARMv7:
|
||||||
|
case PLCrashReportArchitectureARMv7s:
|
||||||
codeType = @"ARM";
|
codeType = @"ARM";
|
||||||
lp64 = false;
|
lp64 = false;
|
||||||
break;
|
break;
|
||||||
@ -387,6 +392,10 @@ static NSInteger binaryImageSort(id binary1, id binary2, void *context) {
|
|||||||
archName = @"armv7";
|
archName = @"armv7";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CPU_SUBTYPE_ARM_V7S:
|
||||||
|
archName = @"armv7s";
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
archName = @"arm-unknown";
|
archName = @"arm-unknown";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user