mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
minidump: Rename some architecture constants
The architecture enum contains two kinds of contstants: the "official" ones defined by Microsoft, and unofficial constants added by breakpad to cover the architectures not described by the first ones. Up until now, there was no big need to differentiate between the two. However, now that Microsoft has defined https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-system_info a constant for ARM64, we have a name clash. This patch renames all breakpad-defined constants with to include the prefix "BP_". This frees up the name "ARM64", which I'll re-introduce with the new "official" value in a follow-up patch. Reviewers: amccarth, clayborg Subscribers: lldb-commits, llvm-commits Differential Revision: https://reviews.llvm.org/D69285
This commit is contained in:
parent
20040d1f56
commit
23ce0d840e
@ -85,21 +85,21 @@ HANDLE_MDMP_STREAM_TYPE(0xFACECCCC, FacebookAppStateLog)
|
||||
HANDLE_MDMP_STREAM_TYPE(0xFACEDEAD, FacebookAbortReason)
|
||||
HANDLE_MDMP_STREAM_TYPE(0xFACEE000, FacebookThreadName)
|
||||
|
||||
HANDLE_MDMP_ARCH(0x0000, X86) // PROCESSOR_ARCHITECTURE_INTEL
|
||||
HANDLE_MDMP_ARCH(0x0001, MIPS) // PROCESSOR_ARCHITECTURE_MIPS
|
||||
HANDLE_MDMP_ARCH(0x0002, Alpha) // PROCESSOR_ARCHITECTURE_ALPHA
|
||||
HANDLE_MDMP_ARCH(0x0003, PPC) // PROCESSOR_ARCHITECTURE_PPC
|
||||
HANDLE_MDMP_ARCH(0x0004, SHX) // PROCESSOR_ARCHITECTURE_SHX (Super-H)
|
||||
HANDLE_MDMP_ARCH(0x0005, ARM) // PROCESSOR_ARCHITECTURE_ARM
|
||||
HANDLE_MDMP_ARCH(0x0006, IA64) // PROCESSOR_ARCHITECTURE_IA64
|
||||
HANDLE_MDMP_ARCH(0x0007, Alpha64) // PROCESSOR_ARCHITECTURE_ALPHA64
|
||||
HANDLE_MDMP_ARCH(0x0008, MSIL) // PROCESSOR_ARCHITECTURE_MSIL
|
||||
HANDLE_MDMP_ARCH(0x0009, AMD64) // PROCESSOR_ARCHITECTURE_AMD64
|
||||
HANDLE_MDMP_ARCH(0x000a, X86Win64) // PROCESSOR_ARCHITECTURE_IA32_ON_WIN64
|
||||
HANDLE_MDMP_ARCH(0x8001, SPARC) // Breakpad-defined value for SPARC
|
||||
HANDLE_MDMP_ARCH(0x8002, PPC64) // Breakpad-defined value for PPC64
|
||||
HANDLE_MDMP_ARCH(0x8003, ARM64) // Breakpad-defined value for ARM64
|
||||
HANDLE_MDMP_ARCH(0x8004, MIPS64) // Breakpad-defined value for MIPS64
|
||||
HANDLE_MDMP_ARCH(0x0000, X86) // PROCESSOR_ARCHITECTURE_INTEL
|
||||
HANDLE_MDMP_ARCH(0x0001, MIPS) // PROCESSOR_ARCHITECTURE_MIPS
|
||||
HANDLE_MDMP_ARCH(0x0002, Alpha) // PROCESSOR_ARCHITECTURE_ALPHA
|
||||
HANDLE_MDMP_ARCH(0x0003, PPC) // PROCESSOR_ARCHITECTURE_PPC
|
||||
HANDLE_MDMP_ARCH(0x0004, SHX) // PROCESSOR_ARCHITECTURE_SHX (Super-H)
|
||||
HANDLE_MDMP_ARCH(0x0005, ARM) // PROCESSOR_ARCHITECTURE_ARM
|
||||
HANDLE_MDMP_ARCH(0x0006, IA64) // PROCESSOR_ARCHITECTURE_IA64
|
||||
HANDLE_MDMP_ARCH(0x0007, Alpha64) // PROCESSOR_ARCHITECTURE_ALPHA64
|
||||
HANDLE_MDMP_ARCH(0x0008, MSIL) // PROCESSOR_ARCHITECTURE_MSIL
|
||||
HANDLE_MDMP_ARCH(0x0009, AMD64) // PROCESSOR_ARCHITECTURE_AMD64
|
||||
HANDLE_MDMP_ARCH(0x000a, X86Win64) // PROCESSOR_ARCHITECTURE_IA32_ON_WIN64
|
||||
HANDLE_MDMP_ARCH(0x8001, BP_SPARC) // Breakpad-defined value for SPARC
|
||||
HANDLE_MDMP_ARCH(0x8002, BP_PPC64) // Breakpad-defined value for PPC64
|
||||
HANDLE_MDMP_ARCH(0x8003, BP_ARM64) // Breakpad-defined value for ARM64
|
||||
HANDLE_MDMP_ARCH(0x8004, BP_MIPS64) // Breakpad-defined value for MIPS64
|
||||
|
||||
HANDLE_MDMP_PLATFORM(0x0000, Win32S) // Win32 on Windows 3.1
|
||||
HANDLE_MDMP_PLATFORM(0x0001, Win32Windows) // Windows 95-98-Me
|
||||
|
@ -336,7 +336,7 @@ static void streamMapping(yaml::IO &IO, SystemInfoStream &Stream) {
|
||||
IO.mapOptional("CPU", Info.CPU.X86);
|
||||
break;
|
||||
case ProcessorArchitecture::ARM:
|
||||
case ProcessorArchitecture::ARM64:
|
||||
case ProcessorArchitecture::BP_ARM64:
|
||||
IO.mapOptional("CPU", Info.CPU.Arm);
|
||||
break;
|
||||
default:
|
||||
|
@ -3,7 +3,7 @@
|
||||
--- !minidump
|
||||
Streams:
|
||||
- Type: SystemInfo
|
||||
Processor Arch: ARM64
|
||||
Processor Arch: BP_ARM64
|
||||
Platform ID: Linux
|
||||
CSD Version: Linux 3.13.0-91-generic
|
||||
CPU:
|
||||
@ -92,7 +92,7 @@ Streams:
|
||||
# CHECK: --- !minidump
|
||||
# CHECK-NEXT: Streams:
|
||||
# CHECK-NEXT: - Type: SystemInfo
|
||||
# CHECK-NEXT: Processor Arch: ARM64
|
||||
# CHECK-NEXT: Processor Arch: BP_ARM64
|
||||
# CHECK-NEXT: Platform ID: Linux
|
||||
# CHECK-NEXT: CSD Version: Linux 3.13.0-91-generic
|
||||
# CHECK-NEXT: CPU:
|
||||
|
@ -33,7 +33,7 @@ TEST(MinidumpYAML, Basic) {
|
||||
--- !minidump
|
||||
Streams:
|
||||
- Type: SystemInfo
|
||||
Processor Arch: ARM64
|
||||
Processor Arch: BP_ARM64
|
||||
Platform ID: Linux
|
||||
CPU:
|
||||
CPUID: 0x05060708
|
||||
@ -53,7 +53,7 @@ Streams:
|
||||
auto ExpectedSysInfo = File.getSystemInfo();
|
||||
ASSERT_THAT_EXPECTED(ExpectedSysInfo, Succeeded());
|
||||
const SystemInfo &SysInfo = *ExpectedSysInfo;
|
||||
EXPECT_EQ(ProcessorArchitecture::ARM64, SysInfo.ProcessorArch);
|
||||
EXPECT_EQ(ProcessorArchitecture::BP_ARM64, SysInfo.ProcessorArch);
|
||||
EXPECT_EQ(OSPlatform::Linux, SysInfo.PlatformId);
|
||||
EXPECT_EQ(0x05060708u, SysInfo.CPU.Arm.CPUID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user