[Lldb-commits] [PATCH] D19604: Allow ObjectFilePECOFF to initialize with ARM binaries.

Stephane Sezer via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 27 10:37:26 PDT 2016


sas created this revision.
sas added a reviewer: zturner.
sas added a subscriber: lldb-commits.
Herald added subscribers: rengolin, aemerson.

This is required to start debugging WinPhone ARM targets.

http://reviews.llvm.org/D19604

Files:
  source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp

Index: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -144,6 +144,11 @@
                     spec.SetTriple("i686-pc-windows");
                     specs.Append(ModuleSpec(file, spec));
                 }
+                else if (coff_header.machine == MachineArmNt)
+                {
+                    spec.SetTriple("armv7-pc-windows");
+                    specs.Append(ModuleSpec(file, spec));
+                }
             }
         }
     }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19604.55259.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160427/c6f232e0/attachment.bin>


More information about the lldb-commits mailing list