[Lldb-commits] [lldb] r362960 - Breakpad: Add support for the arm64e "architecture"

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 10 09:21:26 PDT 2019


Author: labath
Date: Mon Jun 10 09:21:26 2019
New Revision: 362960

URL: http://llvm.org/viewvc/llvm-project?rev=362960&view=rev
Log:
Breakpad: Add support for the arm64e "architecture"

Added:
    lldb/trunk/lit/Modules/Breakpad/Inputs/identification-macosx-arm64e.syms
Modified:
    lldb/trunk/lit/Modules/Breakpad/breakpad-identification.test
    lldb/trunk/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp

Added: lldb/trunk/lit/Modules/Breakpad/Inputs/identification-macosx-arm64e.syms
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/Breakpad/Inputs/identification-macosx-arm64e.syms?rev=362960&view=auto
==============================================================================
--- lldb/trunk/lit/Modules/Breakpad/Inputs/identification-macosx-arm64e.syms (added)
+++ lldb/trunk/lit/Modules/Breakpad/Inputs/identification-macosx-arm64e.syms Mon Jun 10 09:21:26 2019
@@ -0,0 +1,3 @@
+MODULE mac arm64e 4E11896957B3334EB03456BFCEB573760 mac.out
+PUBLIC 0 0 _mh_execute_header
+PUBLIC f30 0 start

Modified: lldb/trunk/lit/Modules/Breakpad/breakpad-identification.test
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/Breakpad/breakpad-identification.test?rev=362960&r1=362959&r2=362960&view=diff
==============================================================================
--- lldb/trunk/lit/Modules/Breakpad/breakpad-identification.test (original)
+++ lldb/trunk/lit/Modules/Breakpad/breakpad-identification.test Mon Jun 10 09:21:26 2019
@@ -1,5 +1,6 @@
 RUN: lldb-test object-file %p/Inputs/identification-linux.syms | FileCheck %s --check-prefix=LINUX
 RUN: lldb-test object-file %p/Inputs/identification-macosx.syms | FileCheck %s --check-prefix=MAC
+RUN: lldb-test object-file %p/Inputs/identification-macosx-arm64e.syms | FileCheck %s --check-prefix=ARM64E
 RUN: lldb-test object-file %p/Inputs/identification-windows.syms | FileCheck %s --check-prefix=WINDOWS
 RUN: not lldb-test object-file %p/Inputs/bad-module-id-1.syms 2>&1 | FileCheck %s --check-prefix=ERROR
 RUN: not lldb-test object-file %p/Inputs/bad-module-id-2.syms 2>&1 | FileCheck %s --check-prefix=ERROR
@@ -21,6 +22,8 @@ MAC: Stripped: false
 MAC: Type: debug info
 MAC: Strata: user
 
+ARM64E: Architecture: aarch64--macosx
+
 WINDOWS: Plugin name: breakpad
 WINDOWS: Architecture: i386--windows
 WINDOWS: UUID: A0C91657-80B5-4909-81A1-925EA62165C0-00000001

Modified: lldb/trunk/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp?rev=362960&r1=362959&r2=362960&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Breakpad/BreakpadRecords.cpp Mon Jun 10 09:21:26 2019
@@ -51,7 +51,7 @@ llvm::Triple::ArchType stringTo<llvm::Tr
   using llvm::Triple;
   return llvm::StringSwitch<Triple::ArchType>(Str)
       .Case("arm", Triple::arm)
-      .Case("arm64", Triple::aarch64)
+      .Cases("arm64", "arm64e", Triple::aarch64)
       .Case("mips", Triple::mips)
       .Case("ppc", Triple::ppc)
       .Case("ppc64", Triple::ppc64)




More information about the lldb-commits mailing list