[Lldb-commits] [lldb] r205113 - lldb arm64 import.
Dmitri Gribenko
gribozavr at gmail.com
Sat Mar 29 12:20:41 PDT 2014
On Sat, Mar 29, 2014 at 6:54 PM, Jason Molenda <jmolenda at apple.com> wrote:
> Author: jmolenda
> Date: Sat Mar 29 13:54:20 2014
> New Revision: 205113
>
> URL: http://llvm.org/viewvc/llvm-project?rev=205113&view=rev
> Log:
> lldb arm64 import.
>
> These changes were written by Greg Clayton, Jim Ingham, Jason Molenda.
>
> It builds cleanly against TOT llvm with xcodebuild. I updated the
> cmake files by visual inspection but did not try a build. I haven't
> built these sources on any non-Mac platforms - I don't think this
> patch adds any code that requires darwin, but please let me know if
> I missed something.
Hi Jason,
ARM64_DWARF_Registers.cpp fails to compile on this Linux buildbot:
http://lab.llvm.org:8011/builders/lldb-x86_64-debian-clang/builds/13156/steps/compile/logs/stdio
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
On Sat, Mar 29, 2014 at 6:54 PM, Jason Molenda <jmolenda at apple.com> wrote:
> Author: jmolenda
> Date: Sat Mar 29 13:54:20 2014
> New Revision: 205113
>
> URL: http://llvm.org/viewvc/llvm-project?rev=205113&view=rev
> Log:
> lldb arm64 import.
>
> These changes were written by Greg Clayton, Jim Ingham, Jason Molenda.
>
> It builds cleanly against TOT llvm with xcodebuild. I updated the
> cmake files by visual inspection but did not try a build. I haven't
> built these sources on any non-Mac platforms - I don't think this
> patch adds any code that requires darwin, but please let me know if
> I missed something.
>
> In debugserver, MachProcess.cpp and MachTask.cpp were renamed to
> MachProcess.mm and MachTask.mm as they picked up some new Objective-C
> code needed to launch processes when running on iOS.
>
> Added:
> lldb/trunk/source/Plugins/ABI/MacOSX-arm64/
> lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp
> lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.h
> lldb/trunk/source/Plugins/ABI/MacOSX-arm64/CMakeLists.txt
> lldb/trunk/source/Plugins/ABI/MacOSX-arm64/Makefile
> lldb/trunk/source/Plugins/Instruction/ARM64/
> lldb/trunk/source/Plugins/Instruction/ARM64/CMakeLists.txt
> lldb/trunk/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
> lldb/trunk/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.h
> lldb/trunk/source/Plugins/Instruction/ARM64/Makefile
> lldb/trunk/source/Plugins/Process/MacOSX-Kernel/RegisterContextKDP_arm64.cpp
> lldb/trunk/source/Plugins/Process/MacOSX-Kernel/RegisterContextKDP_arm64.h
> lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.cpp
> lldb/trunk/source/Plugins/Process/Utility/RegisterContextDarwin_arm64.h
> lldb/trunk/source/Utility/ARM64_DWARF_Registers.cpp
> lldb/trunk/source/Utility/ARM64_DWARF_Registers.h
> lldb/trunk/source/Utility/ARM64_GCC_Registers.h
> lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.mm
> - copied, changed from r205075, lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/MachTask.mm
> - copied, changed from r205075, lldb/trunk/tools/debugserver/source/MacOSX/MachTask.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/arm64/
> lldb/trunk/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.h
> Removed:
> lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/MachTask.cpp
> Modified:
> lldb/trunk/include/lldb/API/SBProcess.h
> lldb/trunk/include/lldb/API/SBTarget.h
> lldb/trunk/include/lldb/Core/ArchSpec.h
> lldb/trunk/include/lldb/Core/RegisterValue.h
> lldb/trunk/include/lldb/Expression/ExpressionSourceCode.h
> lldb/trunk/include/lldb/Symbol/ClangASTType.h
> lldb/trunk/include/lldb/Target/Process.h
> lldb/trunk/lib/Makefile
> lldb/trunk/lldb.xcodeproj/project.pbxproj
> lldb/trunk/scripts/Python/interface/SBProcess.i
> lldb/trunk/scripts/Python/interface/SBTarget.i
> lldb/trunk/scripts/build-llvm.pl
> lldb/trunk/source/API/SBProcess.cpp
> lldb/trunk/source/API/SBTarget.cpp
> lldb/trunk/source/CMakeLists.txt
> lldb/trunk/source/Core/ArchSpec.cpp
> lldb/trunk/source/Core/Error.cpp
> lldb/trunk/source/Core/Module.cpp
> lldb/trunk/source/Expression/ClangExpressionParser.cpp
> lldb/trunk/source/Expression/ClangUserExpression.cpp
> lldb/trunk/source/Expression/ExpressionSourceCode.cpp
> lldb/trunk/source/Host/common/Host.cpp
> lldb/trunk/source/Host/macosx/Host.mm
> lldb/trunk/source/Host/macosx/Symbols.cpp
> lldb/trunk/source/Interpreter/CommandInterpreter.cpp
> lldb/trunk/source/Plugins/ABI/CMakeLists.txt
> lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
> lldb/trunk/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
> lldb/trunk/source/Plugins/Instruction/CMakeLists.txt
> lldb/trunk/source/Plugins/Makefile
> lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
> lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
> lldb/trunk/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
> lldb/trunk/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
> lldb/trunk/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
> lldb/trunk/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp
> lldb/trunk/source/Plugins/Process/MacOSX-Kernel/CMakeLists.txt
> lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ThreadKDP.cpp
> lldb/trunk/source/Plugins/Process/Utility/CMakeLists.txt
> lldb/trunk/source/Plugins/Process/Utility/RegisterContextMacOSXFrameBackchain.cpp
> lldb/trunk/source/Plugins/Process/Utility/StopInfoMachException.cpp
> lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
> lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
> lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
> lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
> lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
> lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
> lldb/trunk/source/Symbol/ClangASTType.cpp
> lldb/trunk/source/Target/Thread.cpp
> lldb/trunk/source/Utility/CMakeLists.txt
> lldb/trunk/source/lldb.cpp
> lldb/trunk/test/functionalities/data-formatter/data-formatter-objc/main.m
> lldb/trunk/tools/debugserver/debugserver.xcodeproj/project.pbxproj
> lldb/trunk/tools/debugserver/source/DNB.cpp
> lldb/trunk/tools/debugserver/source/DNB.h
> lldb/trunk/tools/debugserver/source/DNBArch.cpp
> lldb/trunk/tools/debugserver/source/DNBArch.h
> lldb/trunk/tools/debugserver/source/DNBDefs.h
> lldb/trunk/tools/debugserver/source/DNBError.cpp
> lldb/trunk/tools/debugserver/source/DNBError.h
> lldb/trunk/tools/debugserver/source/MacOSX/CMakeLists.txt
> lldb/trunk/tools/debugserver/source/MacOSX/MachException.h
> lldb/trunk/tools/debugserver/source/MacOSX/MachProcess.h
> lldb/trunk/tools/debugserver/source/MacOSX/MachThreadList.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/MachVMMemory.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/arm/DNBArchImpl.cpp
> lldb/trunk/tools/debugserver/source/MacOSX/arm/DNBArchImpl.h
> lldb/trunk/tools/debugserver/source/RNBContext.h
> lldb/trunk/tools/debugserver/source/RNBDefs.h
> lldb/trunk/tools/debugserver/source/RNBRemote.cpp
> lldb/trunk/tools/debugserver/source/RNBRemote.h
> lldb/trunk/tools/debugserver/source/RNBServices.cpp
> lldb/trunk/tools/debugserver/source/RNBServices.h
> lldb/trunk/tools/debugserver/source/debugserver-entitlements.plist
> lldb/trunk/tools/debugserver/source/debugserver.cpp
>
> Modified: lldb/trunk/include/lldb/API/SBProcess.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBProcess.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/API/SBProcess.h (original)
> +++ lldb/trunk/include/lldb/API/SBProcess.h Sat Mar 29 13:54:20 2014
> @@ -279,6 +279,9 @@ public:
> lldb::SBError
> UnloadImage (uint32_t image_token);
>
> + lldb::SBError
> + SendEventData (const char *data);
> +
> //------------------------------------------------------------------
> /// Return the number of different thread-origin extended backtraces
> /// this process can support.
>
> Modified: lldb/trunk/include/lldb/API/SBTarget.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBTarget.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/API/SBTarget.h (original)
> +++ lldb/trunk/include/lldb/API/SBTarget.h Sat Mar 29 13:54:20 2014
> @@ -110,6 +110,12 @@ public:
> bool
> AddSuppressFileAction (int fd, bool read, bool write);
>
> + void
> + SetLaunchEventData (const char *data);
> +
> + const char *
> + GetLaunchEventData () const;
> +
> protected:
> friend class SBTarget;
>
>
> Modified: lldb/trunk/include/lldb/Core/ArchSpec.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/ArchSpec.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/Core/ArchSpec.h (original)
> +++ lldb/trunk/include/lldb/Core/ArchSpec.h Sat Mar 29 13:54:20 2014
> @@ -50,6 +50,7 @@ public:
> eCore_arm_armv7m,
> eCore_arm_armv7em,
> eCore_arm_xscale,
> +
> eCore_thumb,
> eCore_thumbv4t,
> eCore_thumbv5,
> @@ -57,11 +58,12 @@ public:
> eCore_thumbv6,
> eCore_thumbv6m,
> eCore_thumbv7,
> - eCore_thumbv7f,
> eCore_thumbv7s,
> eCore_thumbv7k,
> + eCore_thumbv7f,
> eCore_thumbv7m,
> eCore_thumbv7em,
> + eCore_arm_arm64,
>
> eCore_mips64,
>
>
> Modified: lldb/trunk/include/lldb/Core/RegisterValue.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Core/RegisterValue.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/Core/RegisterValue.h (original)
> +++ lldb/trunk/include/lldb/Core/RegisterValue.h Sat Mar 29 13:54:20 2014
> @@ -374,6 +374,12 @@ namespace lldb_private {
> uint32_t
> GetByteSize () const;
>
> + static uint32_t
> + GetMaxByteSize ()
> + {
> + return kMaxRegisterByteSize;
> + }
> +
> void
> Clear();
>
>
> Modified: lldb/trunk/include/lldb/Expression/ExpressionSourceCode.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/ExpressionSourceCode.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/Expression/ExpressionSourceCode.h (original)
> +++ lldb/trunk/include/lldb/Expression/ExpressionSourceCode.h Sat Mar 29 13:54:20 2014
> @@ -17,6 +17,8 @@
> namespace lldb_private
> {
>
> +class ExecutionContext;
> +
> class ExpressionSourceCode
> {
> public:
> @@ -53,7 +55,8 @@ public:
> bool GetText (std::string &text,
> lldb::LanguageType wrapping_language,
> bool const_object,
> - bool static_method) const;
> + bool static_method,
> + ExecutionContext &exe_ctx) const;
>
> private:
> ExpressionSourceCode (const char *name,
>
> Modified: lldb/trunk/include/lldb/Symbol/ClangASTType.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Symbol/ClangASTType.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/Symbol/ClangASTType.h (original)
> +++ lldb/trunk/include/lldb/Symbol/ClangASTType.h Sat Mar 29 13:54:20 2014
> @@ -155,6 +155,9 @@ public:
> bool
> IsFunctionType (bool *is_variadic_ptr = NULL) const;
>
> + uint32_t
> + IsHomogeneousAggregate (ClangASTType* base_type_ptr) const;
> +
> size_t
> GetNumberOfFunctionArguments () const;
>
>
> Modified: lldb/trunk/include/lldb/Target/Process.h
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Process.h?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/include/lldb/Target/Process.h (original)
> +++ lldb/trunk/include/lldb/Target/Process.h Sat Mar 29 13:54:20 2014
> @@ -856,6 +856,18 @@ public:
> }
>
>
> + void
> + SetLaunchEventData (const char *data)
> + {
> + m_event_data.assign (data);
> + }
> +
> + const char *
> + GetLaunchEventData () const
> + {
> + return m_event_data.c_str();
> + }
> +
> protected:
> std::string m_working_dir;
> std::string m_plugin_name;
> @@ -867,6 +879,7 @@ protected:
> Host::MonitorChildProcessCallback m_monitor_callback;
> void *m_monitor_callback_baton;
> bool m_monitor_signals;
> + std::string m_event_data; // A string passed to the plugin launch, having no meaning to the upper levels of lldb.
> lldb::ListenerSP m_hijack_listener_sp;
> };
>
> @@ -3638,8 +3651,17 @@ public:
> else
> return m_public_run_lock;
> }
> -
> +
> +public:
> + virtual Error
> + SendEventData(const char *data)
> + {
> + Error return_error ("Sending an event is not supported for this process.");
> + return return_error;
> + }
> +
> protected:
> +
> //------------------------------------------------------------------
> // NextEventAction provides a way to register an action on the next
> // event that is delivered to this process. There is currently only
>
> Modified: lldb/trunk/lib/Makefile
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/lib/Makefile (original)
> +++ lldb/trunk/lib/Makefile Sat Mar 29 13:54:20 2014
> @@ -32,12 +32,14 @@ USEDLIBS = lldbAPI.a \
> lldbInitAndLog.a \
> lldbInterpreter.a \
> lldbPluginABIMacOSX_arm.a \
> + lldbPluginABIMacOSX_arm64.a \
> lldbPluginABIMacOSX_i386.a \
> lldbPluginABISysV_x86_64.a \
> lldbPluginDisassemblerLLVM.a \
> lldbPluginDynamicLoaderStatic.a \
> lldbPluginDynamicLoaderPOSIX.a \
> lldbPluginEmulateInstructionARM.a \
> + lldbPluginEmulateInstructionARM64.a \
> lldbPluginLanguageRuntimeCPlusPlusItaniumABI.a \
> lldbPluginLanguageRuntimeObjCAppleObjCRuntime.a \
> lldbPluginObjectContainerBSDArchive.a \
>
> Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lldb.xcodeproj/project.pbxproj?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/lldb.xcodeproj/project.pbxproj (original)
> +++ lldb/trunk/lldb.xcodeproj/project.pbxproj Sat Mar 29 13:54:20 2014
> @@ -140,6 +140,8 @@
> 26474CD518D0CB710073DEBA /* RegisterInfos_x86_64.h in Headers */ = {isa = PBXBuildFile; fileRef = 26474CD218D0CB710073DEBA /* RegisterInfos_x86_64.h */; };
> 26491E3B15E1DB8600CBFFC2 /* OptionValueRegex.h in Headers */ = {isa = PBXBuildFile; fileRef = 26491E3A15E1DB8600CBFFC2 /* OptionValueRegex.h */; };
> 26491E3E15E1DB9F00CBFFC2 /* OptionValueRegex.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26491E3D15E1DB9F00CBFFC2 /* OptionValueRegex.cpp */; };
> + 264A12FC1372522000875C42 /* EmulateInstructionARM64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 264A12FA1372522000875C42 /* EmulateInstructionARM64.cpp */; };
> + 264A1300137252C700875C42 /* ARM64_DWARF_Registers.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 264A12FE137252C700875C42 /* ARM64_DWARF_Registers.cpp */; };
> 264A97BF133918BC0017F0BE /* PlatformRemoteGDBServer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 264A97BD133918BC0017F0BE /* PlatformRemoteGDBServer.cpp */; };
> 264D8D5013661BD7003A368F /* UnwindAssembly.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 264D8D4F13661BD7003A368F /* UnwindAssembly.cpp */; };
> 265205A813D3E3F700132FE2 /* RegisterContextKDP_arm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 265205A213D3E3F700132FE2 /* RegisterContextKDP_arm.cpp */; };
> @@ -519,6 +521,7 @@
> 26DAED6015D327A200E15819 /* OptionValuePathMappings.h in Headers */ = {isa = PBXBuildFile; fileRef = 26DAED5F15D327A200E15819 /* OptionValuePathMappings.h */; };
> 26DAED6315D327C200E15819 /* OptionValuePathMappings.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DAED6215D327C200E15819 /* OptionValuePathMappings.cpp */; };
> 26DB3E161379E7AD0080DC73 /* ABIMacOSX_arm.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DB3E071379E7AD0080DC73 /* ABIMacOSX_arm.cpp */; };
> + 26DB3E191379E7AD0080DC73 /* ABIMacOSX_arm64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DB3E0B1379E7AD0080DC73 /* ABIMacOSX_arm64.cpp */; };
> 26DB3E1C1379E7AD0080DC73 /* ABIMacOSX_i386.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DB3E0F1379E7AD0080DC73 /* ABIMacOSX_i386.cpp */; };
> 26DB3E1F1379E7AD0080DC73 /* ABISysV_x86_64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DB3E131379E7AD0080DC73 /* ABISysV_x86_64.cpp */; };
> 26DC6A1D1337FECA00FF7998 /* lldb-platform.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 26DC6A1C1337FECA00FF7998 /* lldb-platform.cpp */; };
> @@ -661,6 +664,8 @@
> AF061F88182C97ED00B6A19C /* RegisterContextHistory.h in Headers */ = {isa = PBXBuildFile; fileRef = AF061F86182C97ED00B6A19C /* RegisterContextHistory.h */; };
> AF061F8B182C980000B6A19C /* HistoryThread.h in Headers */ = {isa = PBXBuildFile; fileRef = AF061F89182C980000B6A19C /* HistoryThread.h */; };
> AF061F8C182C980000B6A19C /* HistoryUnwind.h in Headers */ = {isa = PBXBuildFile; fileRef = AF061F8A182C980000B6A19C /* HistoryUnwind.h */; };
> + AF0F6E501739A76D009180FE /* RegisterContextKDP_arm64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF0F6E4E1739A76D009180FE /* RegisterContextKDP_arm64.cpp */; };
> + AF0F6E511739A76D009180FE /* RegisterContextKDP_arm64.h in Headers */ = {isa = PBXBuildFile; fileRef = AF0F6E4F1739A76D009180FE /* RegisterContextKDP_arm64.h */; };
> AF0C112818580CD800C4C45B /* QueueItem.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF0C112718580CD800C4C45B /* QueueItem.cpp */; };
> AF0E22F018A09FB20009B7D1 /* AppleGetItemInfoHandler.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF0E22EE18A09FB20009B7D1 /* AppleGetItemInfoHandler.cpp */; };
> AF0E22F118A09FB20009B7D1 /* AppleGetItemInfoHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = AF0E22EF18A09FB20009B7D1 /* AppleGetItemInfoHandler.h */; };
> @@ -685,6 +690,8 @@
> AF45FDE618A1F3AC0007051C /* AppleGetThreadItemInfoHandler.h in Headers */ = {isa = PBXBuildFile; fileRef = AF45FDE418A1F3AC0007051C /* AppleGetThreadItemInfoHandler.h */; };
> AF81DEFA1828A23F0042CF19 /* SystemRuntime.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF81DEF91828A23F0042CF19 /* SystemRuntime.cpp */; };
> AF90106515AB7D3600FF120D /* lldb.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = AF90106315AB7C5700FF120D /* lldb.1 */; };
> + AF9107EE168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF9107EC168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp */; };
> + AF9107EF168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF9107EC168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp */; };
> AF9B8F33182DB52900DA866F /* SystemRuntimeMacOSX.cpp in Sources */ = {isa = PBXBuildFile; fileRef = AF9B8F31182DB52900DA866F /* SystemRuntimeMacOSX.cpp */; };
> AF9B8F34182DB52900DA866F /* SystemRuntimeMacOSX.h in Headers */ = {isa = PBXBuildFile; fileRef = AF9B8F32182DB52900DA866F /* SystemRuntimeMacOSX.h */; };
> AFF87C87150FF669000E1742 /* com.apple.debugserver.plist in CopyFiles */ = {isa = PBXBuildFile; fileRef = AFF87C86150FF669000E1742 /* com.apple.debugserver.plist */; };
> @@ -1099,6 +1106,10 @@
> 26474CD218D0CB710073DEBA /* RegisterInfos_x86_64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegisterInfos_x86_64.h; path = Utility/RegisterInfos_x86_64.h; sourceTree = "<group>"; };
> 26491E3A15E1DB8600CBFFC2 /* OptionValueRegex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = OptionValueRegex.h; path = include/lldb/Interpreter/OptionValueRegex.h; sourceTree = "<group>"; };
> 26491E3D15E1DB9F00CBFFC2 /* OptionValueRegex.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = OptionValueRegex.cpp; path = source/Interpreter/OptionValueRegex.cpp; sourceTree = "<group>"; };
> + 264A12FA1372522000875C42 /* EmulateInstructionARM64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = EmulateInstructionARM64.cpp; sourceTree = "<group>"; };
> + 264A12FB1372522000875C42 /* EmulateInstructionARM64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmulateInstructionARM64.h; sourceTree = "<group>"; };
> + 264A12FE137252C700875C42 /* ARM64_DWARF_Registers.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ARM64_DWARF_Registers.cpp; path = source/Utility/ARM64_DWARF_Registers.cpp; sourceTree = "<group>"; };
> + 264A12FF137252C700875C42 /* ARM64_DWARF_Registers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ARM64_DWARF_Registers.h; path = source/Utility/ARM64_DWARF_Registers.h; sourceTree = "<group>"; };
> 264A43BB1320B3B4005B4096 /* Platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Platform.h; path = include/lldb/Target/Platform.h; sourceTree = "<group>"; };
> 264A43BD1320BCEB005B4096 /* Platform.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Platform.cpp; path = source/Target/Platform.cpp; sourceTree = "<group>"; };
> 264A97BD133918BC0017F0BE /* PlatformRemoteGDBServer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = PlatformRemoteGDBServer.cpp; path = "gdb-server/PlatformRemoteGDBServer.cpp"; sourceTree = "<group>"; };
> @@ -1143,7 +1154,7 @@
> 2670F8111862B44A006B332C /* libncurses.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libncurses.dylib; path = /usr/lib/libncurses.dylib; sourceTree = "<absolute>"; };
> 2671A0CD134825F6003A87BB /* ConnectionMachPort.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ConnectionMachPort.h; path = include/lldb/Core/ConnectionMachPort.h; sourceTree = "<group>"; };
> 2671A0CF13482601003A87BB /* ConnectionMachPort.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ConnectionMachPort.cpp; path = source/Core/ConnectionMachPort.cpp; sourceTree = "<group>"; };
> - 2672D8461189055500FF4019 /* CommandObjectFrame.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = CommandObjectFrame.cpp; path = source/Commands/CommandObjectFrame.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
> + 2672D8461189055500FF4019 /* CommandObjectFrame.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = CommandObjectFrame.cpp; path = source/Commands/CommandObjectFrame.cpp; sourceTree = "<group>"; };
> 2672D8471189055500FF4019 /* CommandObjectFrame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CommandObjectFrame.h; path = source/Commands/CommandObjectFrame.h; sourceTree = "<group>"; };
> 26744EED1338317700EF765A /* GDBRemoteCommunicationClient.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GDBRemoteCommunicationClient.cpp; sourceTree = "<group>"; };
> 26744EEE1338317700EF765A /* GDBRemoteCommunicationClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GDBRemoteCommunicationClient.h; sourceTree = "<group>"; };
> @@ -1359,7 +1370,7 @@
> 26BC7D7E10F1B77400F91463 /* Timer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Timer.h; path = include/lldb/Core/Timer.h; sourceTree = "<group>"; };
> 26BC7D8010F1B77400F91463 /* UserID.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UserID.h; path = include/lldb/Core/UserID.h; sourceTree = "<group>"; };
> 26BC7D8110F1B77400F91463 /* Value.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Value.h; path = include/lldb/Core/Value.h; sourceTree = "<group>"; };
> - 26BC7D8210F1B77400F91463 /* ValueObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; name = ValueObject.h; path = include/lldb/Core/ValueObject.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
> + 26BC7D8210F1B77400F91463 /* ValueObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ValueObject.h; path = include/lldb/Core/ValueObject.h; sourceTree = "<group>"; };
> 26BC7D8310F1B77400F91463 /* ValueObjectChild.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ValueObjectChild.h; path = include/lldb/Core/ValueObjectChild.h; sourceTree = "<group>"; };
> 26BC7D8410F1B77400F91463 /* ValueObjectList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ValueObjectList.h; path = include/lldb/Core/ValueObjectList.h; sourceTree = "<group>"; };
> 26BC7D8510F1B77400F91463 /* ValueObjectVariable.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ValueObjectVariable.h; path = include/lldb/Core/ValueObjectVariable.h; sourceTree = "<group>"; };
> @@ -1457,7 +1468,7 @@
> 26BC7E9610F1B85900F91463 /* Timer.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Timer.cpp; path = source/Core/Timer.cpp; sourceTree = "<group>"; };
> 26BC7E9810F1B85900F91463 /* UserID.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = UserID.cpp; path = source/Core/UserID.cpp; sourceTree = "<group>"; };
> 26BC7E9910F1B85900F91463 /* Value.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Value.cpp; path = source/Core/Value.cpp; sourceTree = "<group>"; };
> - 26BC7E9A10F1B85900F91463 /* ValueObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = ValueObject.cpp; path = source/Core/ValueObject.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
> + 26BC7E9A10F1B85900F91463 /* ValueObject.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValueObject.cpp; path = source/Core/ValueObject.cpp; sourceTree = "<group>"; };
> 26BC7E9B10F1B85900F91463 /* ValueObjectChild.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValueObjectChild.cpp; path = source/Core/ValueObjectChild.cpp; sourceTree = "<group>"; };
> 26BC7E9C10F1B85900F91463 /* ValueObjectList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValueObjectList.cpp; path = source/Core/ValueObjectList.cpp; sourceTree = "<group>"; };
> 26BC7E9D10F1B85900F91463 /* ValueObjectVariable.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ValueObjectVariable.cpp; path = source/Core/ValueObjectVariable.cpp; sourceTree = "<group>"; };
> @@ -1560,6 +1571,8 @@
> 26DAFD9711529BC7005A394E /* ExecutionContextScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ExecutionContextScope.h; path = include/lldb/Target/ExecutionContextScope.h; sourceTree = "<group>"; };
> 26DB3E071379E7AD0080DC73 /* ABIMacOSX_arm.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ABIMacOSX_arm.cpp; sourceTree = "<group>"; };
> 26DB3E081379E7AD0080DC73 /* ABIMacOSX_arm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ABIMacOSX_arm.h; sourceTree = "<group>"; };
> + 26DB3E0B1379E7AD0080DC73 /* ABIMacOSX_arm64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ABIMacOSX_arm64.cpp; sourceTree = "<group>"; };
> + 26DB3E0C1379E7AD0080DC73 /* ABIMacOSX_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ABIMacOSX_arm64.h; sourceTree = "<group>"; };
> 26DB3E0F1379E7AD0080DC73 /* ABIMacOSX_i386.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ABIMacOSX_i386.cpp; sourceTree = "<group>"; };
> 26DB3E101379E7AD0080DC73 /* ABIMacOSX_i386.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ABIMacOSX_i386.h; sourceTree = "<group>"; };
> 26DB3E131379E7AD0080DC73 /* ABISysV_x86_64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ABISysV_x86_64.cpp; sourceTree = "<group>"; };
> @@ -1903,6 +1916,8 @@
> AF061F86182C97ED00B6A19C /* RegisterContextHistory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegisterContextHistory.h; path = Utility/RegisterContextHistory.h; sourceTree = "<group>"; };
> AF061F89182C980000B6A19C /* HistoryThread.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HistoryThread.h; path = Utility/HistoryThread.h; sourceTree = "<group>"; };
> AF061F8A182C980000B6A19C /* HistoryUnwind.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = HistoryUnwind.h; path = Utility/HistoryUnwind.h; sourceTree = "<group>"; };
> + AF0F6E4E1739A76D009180FE /* RegisterContextKDP_arm64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RegisterContextKDP_arm64.cpp; sourceTree = "<group>"; };
> + AF0F6E4F1739A76D009180FE /* RegisterContextKDP_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RegisterContextKDP_arm64.h; sourceTree = "<group>"; };
> AF0C112718580CD800C4C45B /* QueueItem.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = QueueItem.cpp; path = source/Target/QueueItem.cpp; sourceTree = "<group>"; };
> AF0E22EE18A09FB20009B7D1 /* AppleGetItemInfoHandler.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AppleGetItemInfoHandler.cpp; sourceTree = "<group>"; };
> AF0E22EF18A09FB20009B7D1 /* AppleGetItemInfoHandler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppleGetItemInfoHandler.h; sourceTree = "<group>"; };
> @@ -1933,6 +1948,9 @@
> AF68D3301255A110002FF25B /* UnwindLLDB.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UnwindLLDB.h; path = Utility/UnwindLLDB.h; sourceTree = "<group>"; };
> AF81DEF91828A23F0042CF19 /* SystemRuntime.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SystemRuntime.cpp; path = source/Target/SystemRuntime.cpp; sourceTree = "<group>"; };
> AF90106315AB7C5700FF120D /* lldb.1 */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.man; name = lldb.1; path = docs/lldb.1; sourceTree = "<group>"; };
> + AF9107E91685709A00DBCD3C /* ARM64_GCC_Registers.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ARM64_GCC_Registers.h; path = source/Utility/ARM64_GCC_Registers.h; sourceTree = "<group>"; };
> + AF9107EC168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = RegisterContextDarwin_arm64.cpp; path = Utility/RegisterContextDarwin_arm64.cpp; sourceTree = "<group>"; };
> + AF9107ED168570D200DBCD3C /* RegisterContextDarwin_arm64.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RegisterContextDarwin_arm64.h; path = Utility/RegisterContextDarwin_arm64.h; sourceTree = "<group>"; };
> AF94005711C03F6500085DB9 /* SymbolVendor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = SymbolVendor.cpp; path = source/Symbol/SymbolVendor.cpp; sourceTree = "<group>"; };
> AF9B8F31182DB52900DA866F /* SystemRuntimeMacOSX.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SystemRuntimeMacOSX.cpp; sourceTree = "<group>"; };
> AF9B8F32182DB52900DA866F /* SystemRuntimeMacOSX.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SystemRuntimeMacOSX.h; sourceTree = "<group>"; };
> @@ -2524,6 +2542,8 @@
> 2642FBA713D003B400ED6808 /* MacOSX-Kernel */ = {
> isa = PBXGroup;
> children = (
> + AF0F6E4E1739A76D009180FE /* RegisterContextKDP_arm64.cpp */,
> + AF0F6E4F1739A76D009180FE /* RegisterContextKDP_arm64.h */,
> 2642FBA813D003B400ED6808 /* CommunicationKDP.cpp */,
> 2642FBA913D003B400ED6808 /* CommunicationKDP.h */,
> 2642FBAA13D003B400ED6808 /* ProcessKDP.cpp */,
> @@ -2542,6 +2562,15 @@
> path = "MacOSX-Kernel";
> sourceTree = "<group>";
> };
> + 264A12F91372522000875C42 /* ARM64 */ = {
> + isa = PBXGroup;
> + children = (
> + 264A12FA1372522000875C42 /* EmulateInstructionARM64.cpp */,
> + 264A12FB1372522000875C42 /* EmulateInstructionARM64.h */,
> + );
> + path = ARM64;
> + sourceTree = "<group>";
> + };
> 264A97BC133918A30017F0BE /* GDB Server */ = {
> isa = PBXGroup;
> children = (
> @@ -2642,9 +2671,12 @@
> 2682F168115ED9C800CCFF99 /* Utility */ = {
> isa = PBXGroup;
> children = (
> + AF9107E91685709A00DBCD3C /* ARM64_GCC_Registers.h */,
> 26CF992414428766001E4138 /* AnsiTerminal.h */,
> 26F996A7119B79C300412154 /* ARM_DWARF_Registers.h */,
> 26ECA04213665FED008D1F18 /* ARM_DWARF_Registers.cpp */,
> + 264A12FF137252C700875C42 /* ARM64_DWARF_Registers.h */,
> + 264A12FE137252C700875C42 /* ARM64_DWARF_Registers.cpp */,
> 26F996A8119B79C300412154 /* ARM_GCC_Registers.h */,
> 264723A511FA076E00DE380C /* CleanUp.h */,
> 26D1804416CEE12500EDFB5B /* KQueue.h */,
> @@ -2770,6 +2802,8 @@
> 26474C9F18D0CAEC0073DEBA /* RegisterContext_x86.h */,
> 26957D9213D381C900670048 /* RegisterContextDarwin_arm.cpp */,
> 26957D9313D381C900670048 /* RegisterContextDarwin_arm.h */,
> + AF9107EC168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp */,
> + AF9107ED168570D200DBCD3C /* RegisterContextDarwin_arm64.h */,
> 26957D9413D381C900670048 /* RegisterContextDarwin_i386.cpp */,
> 26957D9513D381C900670048 /* RegisterContextDarwin_i386.h */,
> 26957D9613D381C900670048 /* RegisterContextDarwin_x86_64.cpp */,
> @@ -3527,6 +3561,7 @@
> isa = PBXGroup;
> children = (
> 26D9FDCB12F785270003F2EE /* ARM */,
> + 264A12F91372522000875C42 /* ARM64 */,
> );
> path = Instruction;
> sourceTree = "<group>";
> @@ -3546,6 +3581,7 @@
> isa = PBXGroup;
> children = (
> 26DB3E061379E7AD0080DC73 /* MacOSX-arm */,
> + 26DB3E0A1379E7AD0080DC73 /* MacOSX-arm64 */,
> 26DB3E0E1379E7AD0080DC73 /* MacOSX-i386 */,
> 26DB3E121379E7AD0080DC73 /* SysV-x86_64 */,
> );
> @@ -3561,6 +3597,15 @@
> path = "MacOSX-arm";
> sourceTree = "<group>";
> };
> + 26DB3E0A1379E7AD0080DC73 /* MacOSX-arm64 */ = {
> + isa = PBXGroup;
> + children = (
> + 26DB3E0B1379E7AD0080DC73 /* ABIMacOSX_arm64.cpp */,
> + 26DB3E0C1379E7AD0080DC73 /* ABIMacOSX_arm64.h */,
> + );
> + path = "MacOSX-arm64";
> + sourceTree = "<group>";
> + };
> 26DB3E0E1379E7AD0080DC73 /* MacOSX-i386 */ = {
> isa = PBXGroup;
> children = (
> @@ -4004,6 +4049,7 @@
> AF061F8C182C980000B6A19C /* HistoryUnwind.h in Headers */,
> 260CC63815D04377002BF2E0 /* OptionValueString.h in Headers */,
> 260CC63915D04377002BF2E0 /* OptionValueUInt64.h in Headers */,
> + AF0F6E511739A76D009180FE /* RegisterContextKDP_arm64.h in Headers */,
> 260CC63A15D04377002BF2E0 /* OptionValueUUID.h in Headers */,
> 260A248E15D06C50009981B0 /* OptionValues.h in Headers */,
> AF061F88182C97ED00B6A19C /* RegisterContextHistory.h in Headers */,
> @@ -4415,6 +4461,7 @@
> 9475C18E14E5F834001BFC6D /* SBTypeNameSpecifier.cpp in Sources */,
> 9452573A16262D0200325455 /* SBDeclaration.cpp in Sources */,
> 4CE4F675162C973F00F75CB3 /* SBExpressionOptions.cpp in Sources */,
> + AF9107EE168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp in Sources */,
> );
> runOnlyForDeploymentPostprocessing = 0;
> };
> @@ -4740,7 +4787,10 @@
> 260E07C8136FAB9200CF21D3 /* OptionGroupFile.cpp in Sources */,
> 2686536C1370ACB200D186A3 /* OptionGroupBoolean.cpp in Sources */,
> 268653701370AE7200D186A3 /* OptionGroupUInt64.cpp in Sources */,
> + 264A12FC1372522000875C42 /* EmulateInstructionARM64.cpp in Sources */,
> + 264A1300137252C700875C42 /* ARM64_DWARF_Registers.cpp in Sources */,
> 26DB3E161379E7AD0080DC73 /* ABIMacOSX_arm.cpp in Sources */,
> + 26DB3E191379E7AD0080DC73 /* ABIMacOSX_arm64.cpp in Sources */,
> 26DB3E1C1379E7AD0080DC73 /* ABIMacOSX_i386.cpp in Sources */,
> 26DB3E1F1379E7AD0080DC73 /* ABISysV_x86_64.cpp in Sources */,
> 26D1803E16CEBFD300EDFB5B /* KQueue.cpp in Sources */,
> @@ -4796,6 +4846,7 @@
> 26B7564E14F89356008D9CB3 /* PlatformiOSSimulator.cpp in Sources */,
> 26FFC19914FC072100087D58 /* AuxVector.cpp in Sources */,
> 26FFC19B14FC072100087D58 /* DYLDRendezvous.cpp in Sources */,
> + AF0F6E501739A76D009180FE /* RegisterContextKDP_arm64.cpp in Sources */,
> 26FFC19D14FC072100087D58 /* DynamicLoaderPOSIXDYLD.cpp in Sources */,
> 2694E99D14FC0BB30076DE67 /* PlatformFreeBSD.cpp in Sources */,
> 2694E9A414FC0BBD0076DE67 /* PlatformLinux.cpp in Sources */,
> @@ -4834,6 +4885,7 @@
> 947A1D641616476B0017C8D1 /* CommandObjectPlugin.cpp in Sources */,
> 262ED0081631FA3A00879631 /* OptionGroupString.cpp in Sources */,
> 94094C6B163B6F840083A547 /* ValueObjectCast.cpp in Sources */,
> + AF9107EF168570D200DBCD3C /* RegisterContextDarwin_arm64.cpp in Sources */,
> 94CB255B16B069770059775D /* CXXFormatterFunctions.cpp in Sources */,
> 94CB255C16B069770059775D /* DataVisualization.cpp in Sources */,
> 94CD705016F8DF1C00CF1E42 /* LibCxxList.cpp in Sources */,
> @@ -4978,7 +5030,10 @@
> buildSettings = {
> ALWAYS_SEARCH_USER_PATHS = NO;
> ARCHS = "$(NATIVE_ARCH)";
> - "ARCHS[sdk=iphoneos*]" = armv7;
> + "ARCHS[sdk=iphoneos*]" = (
> + arm64,
> + armv7,
> + );
> "ARCHS[sdk=macosx*]" = (
> x86_64,
> i386,
> @@ -5007,6 +5062,7 @@
> NO_XPC_SERVICES,
> );
> GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
> + "GCC_WARN_64_TO_32_BIT_CONVERSION[arch=*64]" = NO;
> GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
> GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
> GCC_WARN_ABOUT_RETURN_TYPE = YES;
> @@ -5033,6 +5089,7 @@
> "-flimit-debug-info",
> "-Wparentheses",
> );
> + SDKROOT = "";
> STRIP_INSTALLED_PRODUCT = NO;
> STRIP_STYLE = debugging;
> WARNING_CFLAGS = "-Wreorder";
> @@ -5044,7 +5101,7 @@
> buildSettings = {
> ALWAYS_SEARCH_USER_PATHS = NO;
> ARCHS = "$(NATIVE_ARCH)";
> - "ARCHS[sdk=iphoneos*]" = armv7;
> + "ARCHS[sdk=iphoneos*]" = arm64;
> "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD_64_BIT)";
> CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
> CLANG_CXX_LIBRARY = "libc++";
> @@ -5054,7 +5111,7 @@
> CLANG_WARN_INT_CONVERSION = YES;
> CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
> COPY_PHASE_STRIP = NO;
> - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
> + DEBUG_INFORMATION_FORMAT = dwarf;
> GCC_C_LANGUAGE_STANDARD = c99;
> GCC_PREPROCESSOR_DEFINITIONS = (
> __STDC_CONSTANT_MACROS,
> @@ -5069,6 +5126,7 @@
> NO_XPC_SERVICES,
> );
> GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
> + "GCC_WARN_64_TO_32_BIT_CONVERSION[arch=*64]" = NO;
> GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
> GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
> GCC_WARN_ABOUT_RETURN_TYPE = YES;
> @@ -5095,6 +5153,7 @@
> "-flimit-debug-info",
> "-Wparentheses",
> );
> + SDKROOT = "";
> STRIP_INSTALLED_PRODUCT = NO;
> STRIP_STYLE = debugging;
> WARNING_CFLAGS = "-Wreorder";
> @@ -5434,7 +5493,7 @@
> buildSettings = {
> ALWAYS_SEARCH_USER_PATHS = NO;
> ARCHS = "$(NATIVE_ARCH)";
> - "ARCHS[sdk=iphoneos*]" = armv7;
> + "ARCHS[sdk=iphoneos*]" = arm64;
> "ARCHS[sdk=macosx*]" = (
> x86_64,
> i386,
> @@ -5462,6 +5521,7 @@
> NO_XPC_SERVICES,
> );
> GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
> + "GCC_WARN_64_TO_32_BIT_CONVERSION[arch=*64]" = NO;
> GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
> GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
> GCC_WARN_ABOUT_RETURN_TYPE = YES;
> @@ -5489,6 +5549,7 @@
> "-flimit-debug-info",
> "-Wparentheses",
> );
> + SDKROOT = "";
> STRIP_INSTALLED_PRODUCT = NO;
> STRIP_STYLE = debugging;
> WARNING_CFLAGS = "-Wreorder";
> @@ -5522,6 +5583,7 @@
> __TEXT,
> __info_plist,
> "$(PROJECT_DIR)/tools/driver/lldb-Info.plist",
> + "-Wl,-rpath, at loader_path/../../Library/PrivateFrameworks/",
> "-Wl,-rpath, at loader_path/../../../SharedFrameworks",
> "-Wl,-rpath, at loader_path/../../System/Library/PrivateFrameworks",
> "-Wl,-rpath, at loader_path/../../Library/PrivateFrameworks",
> @@ -6015,8 +6077,6 @@
> "-lxml2",
> "-framework",
> Foundation,
> - "-framework",
> - UIKit,
> );
> PRODUCT_NAME = "lldb-platform";
> SKIP_INSTALL = YES;
> @@ -6085,8 +6145,6 @@
> "-lxml2",
> "-framework",
> Foundation,
> - "-framework",
> - UIKit,
> );
> PRODUCT_NAME = "lldb-platform";
> SKIP_INSTALL = YES;
> @@ -6155,8 +6213,6 @@
> "-lxml2",
> "-framework",
> Foundation,
> - "-framework",
> - UIKit,
> );
> PRODUCT_NAME = "lldb-platform";
> SKIP_INSTALL = YES;
> @@ -6227,7 +6283,10 @@
> buildSettings = {
> ALWAYS_SEARCH_USER_PATHS = NO;
> ARCHS = "$(NATIVE_ARCH)";
> - "ARCHS[sdk=iphoneos*]" = armv7;
> + "ARCHS[sdk=iphoneos*]" = (
> + armv7,
> + arm64,
> + );
> "ARCHS[sdk=macosx*]" = (
> x86_64,
> i386,
> @@ -6256,6 +6315,7 @@
> NO_XPC_SERVICES,
> );
> GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
> + "GCC_WARN_64_TO_32_BIT_CONVERSION[arch=*64]" = NO;
> GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES;
> GCC_WARN_ABOUT_MISSING_NEWLINE = YES;
> GCC_WARN_ABOUT_RETURN_TYPE = YES;
> @@ -6282,6 +6342,7 @@
> "-flimit-debug-info",
> "-Wparentheses",
> );
> + SDKROOT = "";
> STRIP_INSTALLED_PRODUCT = NO;
> STRIP_STYLE = debugging;
> WARNING_CFLAGS = "-Wreorder";
>
> Modified: lldb/trunk/scripts/Python/interface/SBProcess.i
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBProcess.i?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/scripts/Python/interface/SBProcess.i (original)
> +++ lldb/trunk/scripts/Python/interface/SBProcess.i Sat Mar 29 13:54:20 2014
> @@ -362,6 +362,9 @@ public:
>
> lldb::SBError
> UnloadImage (uint32_t image_token);
> +
> + lldb::SBError
> + SendEventData (const char *event_data);
>
> %feature("autodoc", "
> Return the number of different thread-origin extended backtraces
>
> Modified: lldb/trunk/scripts/Python/interface/SBTarget.i
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBTarget.i?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/scripts/Python/interface/SBTarget.i (original)
> +++ lldb/trunk/scripts/Python/interface/SBTarget.i Sat Mar 29 13:54:20 2014
> @@ -94,6 +94,13 @@ public:
>
> bool
> AddSuppressFileAction (int fd, bool read, bool write);
> +
> + void
> + SetLaunchEventData (const char *data);
> +
> + const char *
> + GetLaunchEventData () const;
> +
> };
>
> class SBAttachInfo
>
> Modified: lldb/trunk/scripts/build-llvm.pl
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/build-llvm.pl?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/scripts/build-llvm.pl (original)
> +++ lldb/trunk/scripts/build-llvm.pl Sat Mar 29 13:54:20 2014
> @@ -75,6 +75,12 @@ our @archive_files = (
> "$llvm_configuration/lib/libLLVMARMDesc.a",
> "$llvm_configuration/lib/libLLVMARMDisassembler.a",
> "$llvm_configuration/lib/libLLVMARMInfo.a",
> + "$llvm_configuration/lib/libLLVMARM64AsmParser.a",
> + "$llvm_configuration/lib/libLLVMARM64AsmPrinter.a",
> + "$llvm_configuration/lib/libLLVMARM64CodeGen.a",
> + "$llvm_configuration/lib/libLLVMARM64Desc.a",
> + "$llvm_configuration/lib/libLLVMARM64Disassembler.a",
> + "$llvm_configuration/lib/libLLVMARM64Info.a",
> "$llvm_configuration/lib/libLLVMAsmParser.a",
> "$llvm_configuration/lib/libLLVMAsmPrinter.a",
> "$llvm_configuration/lib/libLLVMBitReader.a",
> @@ -328,7 +334,7 @@ sub build_llvm
> {
> # Build llvm and clang
> print "Configuring clang ($arch) in '$llvm_dstroot_arch'...\n";
> - my $lldb_configuration_options = "--enable-targets=x86_64,arm $common_configure_options $llvm_config_href->{configure_options}";
> + my $lldb_configuration_options = "--enable-targets=x86_64,arm,arm64 $common_configure_options $llvm_config_href->{configure_options}";
>
> # We're configuring llvm/clang with --enable-cxx11 and --enable-libcpp but llvm/configure doesn't
> # pick up the right C++ standard library. If we have a MACOSX_DEPLOYMENT_TARGET of 10.7 or 10.8
>
> Modified: lldb/trunk/source/API/SBProcess.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBProcess.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/API/SBProcess.cpp (original)
> +++ lldb/trunk/source/API/SBProcess.cpp Sat Mar 29 13:54:20 2014
> @@ -1306,6 +1306,32 @@ SBProcess::UnloadImage (uint32_t image_t
> return sb_error;
> }
>
> +lldb::SBError
> +SBProcess::SendEventData (const char *event_data)
> +{
> + lldb::SBError sb_error;
> + ProcessSP process_sp(GetSP());
> + if (process_sp)
> + {
> + Process::StopLocker stop_locker;
> + if (stop_locker.TryLock(&process_sp->GetRunLock()))
> + {
> + Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
> + sb_error.SetError (process_sp->SendEventData (event_data));
> + }
> + else
> + {
> + Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
> + if (log)
> + log->Printf ("SBProcess(%p)::SendEventData() => error: process is running", process_sp.get());
> + sb_error.SetErrorString("process is running");
> + }
> + }
> + else
> + sb_error.SetErrorString("invalid process");
> + return sb_error;
> +}
> +
> uint32_t
> SBProcess::GetNumExtendedBacktraceTypes ()
> {
>
> Modified: lldb/trunk/source/API/SBTarget.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/API/SBTarget.cpp (original)
> +++ lldb/trunk/source/API/SBTarget.cpp Sat Mar 29 13:54:20 2014
> @@ -268,6 +268,17 @@ SBLaunchInfo::AddSuppressFileAction (int
> return m_opaque_sp->AppendSuppressFileAction(fd, read, write);
> }
>
> +void
> +SBLaunchInfo::SetLaunchEventData (const char *data)
> +{
> + m_opaque_sp->SetLaunchEventData (data);
> +}
> +
> +const char *
> +SBLaunchInfo::GetLaunchEventData () const
> +{
> + return m_opaque_sp->GetLaunchEventData ();
> +}
>
> SBAttachInfo::SBAttachInfo () :
> m_opaque_sp (new ProcessAttachInfo())
>
> Modified: lldb/trunk/source/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/CMakeLists.txt?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/CMakeLists.txt (original)
> +++ lldb/trunk/source/CMakeLists.txt Sat Mar 29 13:54:20 2014
> @@ -74,9 +74,11 @@ set( LLDB_USED_LIBS
> lldbPluginAppleObjCRuntime
> lldbPluginCXXItaniumABI
> lldbPluginABIMacOSX_arm
> + lldbPluginABIMacOSX_arm64
> lldbPluginABIMacOSX_i386
> lldbPluginABISysV_x86_64
> lldbPluginInstructionARM
> + lldbPluginInstructionARM64
> lldbPluginObjectFilePECOFF
> lldbPluginOSPython
> )
>
> Modified: lldb/trunk/source/Core/ArchSpec.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Core/ArchSpec.cpp (original)
> +++ lldb/trunk/source/Core/ArchSpec.cpp Sat Mar 29 13:54:20 2014
> @@ -76,6 +76,7 @@ static const CoreDefinition g_core_defin
> { eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb , ArchSpec::eCore_thumbv7k , "thumbv7k" },
> { eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb , ArchSpec::eCore_thumbv7m , "thumbv7m" },
> { eByteOrderLittle, 4, 2, 4, llvm::Triple::thumb , ArchSpec::eCore_thumbv7em , "thumbv7em" },
> + { eByteOrderLittle, 8, 4, 4, llvm::Triple::arm64 , ArchSpec::eCore_arm_arm64 , "arm64" },
>
> { eByteOrderBig , 8, 4, 4, llvm::Triple::mips64 , ArchSpec::eCore_mips64 , "mips64" },
>
> @@ -179,6 +180,10 @@ static const ArchDefinitionEntry g_macho
> { ArchSpec::eCore_arm_armv7k , llvm::MachO::CPU_TYPE_ARM , 12 , UINT32_MAX , SUBTYPE_MASK },
> { ArchSpec::eCore_arm_armv7m , llvm::MachO::CPU_TYPE_ARM , 15 , UINT32_MAX , SUBTYPE_MASK },
> { ArchSpec::eCore_arm_armv7em , llvm::MachO::CPU_TYPE_ARM , 16 , UINT32_MAX , SUBTYPE_MASK },
> + { ArchSpec::eCore_arm_arm64 , llvm::MachO::CPU_TYPE_ARM64 , CPU_ANY, UINT32_MAX , SUBTYPE_MASK },
> + { ArchSpec::eCore_arm_arm64 , llvm::MachO::CPU_TYPE_ARM64 , 0 , UINT32_MAX , SUBTYPE_MASK },
> + { ArchSpec::eCore_arm_arm64 , llvm::MachO::CPU_TYPE_ARM64 , 1 , UINT32_MAX , SUBTYPE_MASK },
> + { ArchSpec::eCore_arm_arm64 , llvm::MachO::CPU_TYPE_ARM64 , 13 , UINT32_MAX , SUBTYPE_MASK },
> { ArchSpec::eCore_thumb , llvm::MachO::CPU_TYPE_ARM , 0 , UINT32_MAX , SUBTYPE_MASK },
> { ArchSpec::eCore_thumbv4t , llvm::MachO::CPU_TYPE_ARM , 5 , UINT32_MAX , SUBTYPE_MASK },
> { ArchSpec::eCore_thumbv5 , llvm::MachO::CPU_TYPE_ARM , 7 , UINT32_MAX , SUBTYPE_MASK },
> @@ -729,6 +734,7 @@ ArchSpec::SetArchitecture (ArchitectureT
>
> switch (core_def->machine)
> {
> + case llvm::Triple::arm64:
> case llvm::Triple::arm:
> case llvm::Triple::thumb:
> m_triple.setOS (llvm::Triple::IOS);
>
> Modified: lldb/trunk/source/Core/Error.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Error.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Core/Error.cpp (original)
> +++ lldb/trunk/source/Core/Error.cpp Sat Mar 29 13:54:20 2014
> @@ -21,7 +21,7 @@
> #include <cerrno>
> #include <cstdarg>
>
> -#if defined (__arm__) && defined (__APPLE__)
> +#if (defined (__arm__) || defined (__arm64__)) && defined (__APPLE__)
> #include <SpringBoardServices/SpringBoardServer.h>
> #endif
>
>
> Modified: lldb/trunk/source/Core/Module.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Module.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Core/Module.cpp (original)
> +++ lldb/trunk/source/Core/Module.cpp Sat Mar 29 13:54:20 2014
> @@ -404,6 +404,7 @@ Module::GetClangASTContext ()
> && object_arch.GetTriple().getOS() == llvm::Triple::UnknownOS)
> {
> if (object_arch.GetTriple().getArch() == llvm::Triple::arm ||
> + object_arch.GetTriple().getArch() == llvm::Triple::arm64 ||
> object_arch.GetTriple().getArch() == llvm::Triple::thumb)
> {
> object_arch.GetTriple().setOS(llvm::Triple::IOS);
>
> Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
> +++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Sat Mar 29 13:54:20 2014
> @@ -156,11 +156,15 @@ ClangExpressionParser::ClangExpressionPa
> m_compiler->getTargetOpts().Features.push_back("+sse2");
> }
>
> - if (m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
> + // Any arm32 iOS environment, but not on arm64
> + if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos
> + && m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
> + {
> m_compiler->getTargetOpts().ABI = "apcs-gnu";
> -
> + }
> +
> m_compiler->createDiagnostics();
> -
> +
> // Create the target instance.
> m_compiler->setTarget(TargetInfo::CreateTargetInfo(m_compiler->getDiagnostics(),
> &m_compiler->getTargetOpts()));
>
> Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
> +++ lldb/trunk/source/Expression/ClangUserExpression.cpp Sat Mar 29 13:54:20 2014
> @@ -465,7 +465,7 @@ ClangUserExpression::Parse (Stream &erro
> else
> lang_type = lldb::eLanguageTypeC;
>
> - if (!source_code->GetText(m_transformed_text, lang_type, m_const_object, m_static_method))
> + if (!source_code->GetText(m_transformed_text, lang_type, m_const_object, m_static_method, exe_ctx))
> {
> error_stream.PutCString ("error: couldn't construct expression body");
> return false;
>
> Modified: lldb/trunk/source/Expression/ExpressionSourceCode.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ExpressionSourceCode.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Expression/ExpressionSourceCode.cpp (original)
> +++ lldb/trunk/source/Expression/ExpressionSourceCode.cpp Sat Mar 29 13:54:20 2014
> @@ -10,6 +10,9 @@
> #include "lldb/Expression/ExpressionSourceCode.h"
>
> #include "lldb/Core/StreamString.h"
> +#include "lldb/Target/ExecutionContext.h"
> +#include "lldb/Target/Platform.h"
> +#include "lldb/Target/Target.h"
>
> using namespace lldb_private;
>
> @@ -25,7 +28,6 @@ ExpressionSourceCode::g_expression_prefi
> #define nil (__null)
> #define YES ((BOOL)1)
> #define NO ((BOOL)0)
> -typedef signed char BOOL;
> typedef signed __INT8_TYPE__ int8_t;
> typedef unsigned __INT8_TYPE__ uint8_t;
> typedef signed __INT16_TYPE__ int16_t;
> @@ -42,8 +44,29 @@ typedef unsigned short unichar;
> )";
>
>
> -bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool const_object, bool static_method) const
> +bool ExpressionSourceCode::GetText (std::string &text, lldb::LanguageType wrapping_language, bool const_object, bool static_method, ExecutionContext &exe_ctx) const
> {
> + const char *target_specific_defines = "typedef signed char BOOL;\n";
> + static ConstString g_platform_ios_simulator ("PlatformiOSSimulator");
> +
> + if (Target *target = exe_ctx.GetTargetPtr())
> + {
> + if (target->GetArchitecture().GetMachine() == llvm::Triple::arm64)
> + {
> + target_specific_defines = "typedef bool BOOL;\n";
> + }
> + if (target->GetArchitecture().GetMachine() == llvm::Triple::x86_64)
> + {
> + if (lldb::PlatformSP platform_sp = target->GetPlatform())
> + {
> + if (platform_sp->GetPluginName() == g_platform_ios_simulator)
> + {
> + target_specific_defines = "typedef bool BOOL;\n";
> + }
> + }
> + }
> + }
> +
> if (m_wrap)
> {
> switch (wrapping_language)
> @@ -65,12 +88,14 @@ bool ExpressionSourceCode::GetText (std:
> case lldb::eLanguageTypeC:
> wrap_stream.Printf("%s \n"
> "%s \n"
> + "%s \n"
> "void \n"
> "%s(void *$__lldb_arg) \n"
> "{ \n"
> " %s; \n"
> "} \n",
> g_expression_prefix,
> + target_specific_defines,
> m_prefix.c_str(),
> m_name.c_str(),
> m_body.c_str());
> @@ -78,12 +103,14 @@ bool ExpressionSourceCode::GetText (std:
> case lldb::eLanguageTypeC_plus_plus:
> wrap_stream.Printf("%s \n"
> "%s \n"
> + "%s \n"
> "void \n"
> "$__lldb_class::%s(void *$__lldb_arg) %s\n"
> "{ \n"
> " %s; \n"
> "} \n",
> g_expression_prefix,
> + target_specific_defines,
> m_prefix.c_str(),
> m_name.c_str(),
> (const_object ? "const" : ""),
> @@ -94,6 +121,7 @@ bool ExpressionSourceCode::GetText (std:
> {
> wrap_stream.Printf("%s \n"
> "%s \n"
> + "%s \n"
> "@interface $__lldb_objc_class ($__lldb_category) \n"
> "+(void)%s:(void *)$__lldb_arg; \n"
> "@end \n"
> @@ -104,6 +132,7 @@ bool ExpressionSourceCode::GetText (std:
> "} \n"
> "@end \n",
> g_expression_prefix,
> + target_specific_defines,
> m_prefix.c_str(),
> m_name.c_str(),
> m_name.c_str(),
> @@ -113,6 +142,7 @@ bool ExpressionSourceCode::GetText (std:
> {
> wrap_stream.Printf("%s \n"
> "%s \n"
> + "%s \n"
> "@interface $__lldb_objc_class ($__lldb_category) \n"
> "-(void)%s:(void *)$__lldb_arg; \n"
> "@end \n"
> @@ -123,6 +153,7 @@ bool ExpressionSourceCode::GetText (std:
> "} \n"
> "@end \n",
> g_expression_prefix,
> + target_specific_defines,
> m_prefix.c_str(),
> m_name.c_str(),
> m_name.c_str(),
>
> Modified: lldb/trunk/source/Host/common/Host.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Host/common/Host.cpp (original)
> +++ lldb/trunk/source/Host/common/Host.cpp Sat Mar 29 13:54:20 2014
> @@ -1067,7 +1067,7 @@ Host::GetLLDBPath (PathType path_type, F
> if (framework_pos)
> {
> framework_pos += strlen("LLDB.framework");
> -#if defined (__arm__)
> +#if defined (__arm__) || defined (__arm64__)
> // Shallow bundle
> *framework_pos = '\0';
> #else
> @@ -1075,7 +1075,7 @@ Host::GetLLDBPath (PathType path_type, F
> ::strncpy (framework_pos, "/Resources", PATH_MAX - (framework_pos - raw_path));
> #endif
> }
> -#endif
> +#endif // #if defined (__APPLE__)
> FileSpec::Resolve (raw_path, resolved_path, sizeof(resolved_path));
> g_lldb_support_exe_dir.SetCString(resolved_path);
> }
>
> Modified: lldb/trunk/source/Host/macosx/Host.mm
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Host/macosx/Host.mm (original)
> +++ lldb/trunk/source/Host/macosx/Host.mm Sat Mar 29 13:54:20 2014
> @@ -57,12 +57,13 @@
> #include "cfcpp/CFCReleaser.h"
> #include "cfcpp/CFCString.h"
>
> +
> #include <objc/objc-auto.h>
>
> #include <CoreFoundation/CoreFoundation.h>
> #include <Foundation/Foundation.h>
>
> -#if !defined(__arm__)
> +#if !defined(__arm__) && !defined(__arm64__)
> #include <Carbon/Carbon.h>
> #endif
>
> @@ -231,7 +232,7 @@ Host::ResolveExecutableInBundle (FileSpe
> lldb::pid_t
> Host::LaunchApplication (const FileSpec &app_file_spec)
> {
> -#if defined (__arm__)
> +#if defined (__arm__) || defined(__arm64__)
> return LLDB_INVALID_PROCESS_ID;
> #else
> char app_path[PATH_MAX];
> @@ -324,7 +325,7 @@ WaitForProcessToSIGSTOP (const lldb::pid
> }
> return false;
> }
> -#if !defined(__arm__)
> +#if !defined(__arm__) && !defined(__arm64__)
>
> //static lldb::pid_t
> //LaunchInNewTerminalWithCommandFile
> @@ -731,7 +732,7 @@ Host::SetCrashDescription (const char *c
> bool
> Host::OpenFileInExternalEditor (const FileSpec &file_spec, uint32_t line_no)
> {
> -#if defined(__arm__)
> +#if defined(__arm__) || defined(__arm64__)
> return false;
> #else
> // We attach this to an 'odoc' event to specify a particular selection
> @@ -1081,7 +1082,7 @@ GetMacOSXProcessCPUType (ProcessInstance
>
> mib[mib_len] = process_info.GetProcessID();
> mib_len++;
> -
> +
> cpu_type_t cpu, sub = 0;
> size_t len = sizeof(cpu);
> if (::sysctl (mib, mib_len, &cpu, &len, 0, 0) == 0)
> @@ -1090,12 +1091,35 @@ GetMacOSXProcessCPUType (ProcessInstance
> {
> case CPU_TYPE_I386: sub = CPU_SUBTYPE_I386_ALL; break;
> case CPU_TYPE_X86_64: sub = CPU_SUBTYPE_X86_64_ALL; break;
> +
> +#if defined (CPU_TYPE_ARM64) && defined (CPU_SUBTYPE_ARM64_ALL)
> + case CPU_TYPE_ARM64: sub = CPU_SUBTYPE_ARM64_ALL; break;
> +#endif
> +
> case CPU_TYPE_ARM:
> {
> + // Note that we fetched the cpu type from the PROCESS but we can't get a cpusubtype of the
> + // process -- we can only get the host's cpu subtype.
> uint32_t cpusubtype = 0;
> len = sizeof(cpusubtype);
> if (::sysctlbyname("hw.cpusubtype", &cpusubtype, &len, NULL, 0) == 0)
> sub = cpusubtype;
> +
> + bool host_cpu_is_64bit;
> + uint32_t is64bit_capable;
> + size_t is64bit_capable_len = sizeof (is64bit_capable);
> + if (sysctlbyname("hw.cpu64bit_capable", &is64bit_capable, &is64bit_capable_len, NULL, 0) == 0)
> + host_cpu_is_64bit = true;
> + else
> + host_cpu_is_64bit = false;
> +
> + // if the host is an armv8 device, its cpusubtype will be in CPU_SUBTYPE_ARM64 numbering
> + // and we need to rewrite it to a reasonable CPU_SUBTYPE_ARM value instead.
> +
> + if (host_cpu_is_64bit)
> + {
> + sub = CPU_SUBTYPE_ARM_V7;
> + }
> }
> break;
>
> @@ -1591,7 +1615,7 @@ Host::LaunchProcess (ProcessLaunchInfo &
>
> if (launch_info.GetFlags().Test (eLaunchFlagLaunchInTTY))
> {
> -#if !defined(__arm__)
> +#if !defined(__arm__) && !defined(__arm64__)
> return LaunchInNewTerminalWithAppleScript (exe_path, launch_info);
> #else
> error.SetErrorString ("launching a processs in a new terminal is not supported on iOS devices");
>
> Modified: lldb/trunk/source/Host/macosx/Symbols.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Symbols.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Host/macosx/Symbols.cpp (original)
> +++ lldb/trunk/source/Host/macosx/Symbols.cpp Sat Mar 29 13:54:20 2014
> @@ -41,7 +41,7 @@ using namespace lldb;
> using namespace lldb_private;
> using namespace llvm::MachO;
>
> -#if !defined (__arm__) // No DebugSymbols on the iOS devices
> +#if !defined (__arm__) && !defined (__arm64__) // No DebugSymbols on the iOS devices
> extern "C" {
>
> CFURLRef DBGCopyFullDSYMURLForUUID (CFUUIDRef uuid, CFURLRef exec_url);
> @@ -293,7 +293,7 @@ LocateMacOSXFilesUsingDebugSymbols
> if (out_dsym_fspec)
> out_dsym_fspec->Clear();
>
> -#if !defined (__arm__) // No DebugSymbols on the iOS devices
> +#if !defined (__arm__) && !defined (__arm64__) // No DebugSymbols on the iOS devices
>
> const UUID *uuid = module_spec.GetUUIDPtr();
> const ArchSpec *arch = module_spec.GetArchitecturePtr();
>
> Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
> +++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Sat Mar 29 13:54:20 2014
> @@ -324,7 +324,7 @@ CommandInterpreter::Initialize ()
> if (cmd_obj_sp)
> {
> alias_arguments_vector_sp.reset (new OptionArgVector);
> -#if defined (__arm__)
> +#if defined (__arm__) || defined (__arm64__)
> ProcessAliasOptionsArgs (cmd_obj_sp, "--", alias_arguments_vector_sp);
> #else
> ProcessAliasOptionsArgs (cmd_obj_sp, "--shell=" LLDB_DEFAULT_SHELL " --", alias_arguments_vector_sp);
>
> Modified: lldb/trunk/source/Plugins/ABI/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/CMakeLists.txt?rev=205113&r1=205112&r2=205113&view=diff
> ==============================================================================
> --- lldb/trunk/source/Plugins/ABI/CMakeLists.txt (original)
> +++ lldb/trunk/source/Plugins/ABI/CMakeLists.txt Sat Mar 29 13:54:20 2014
> @@ -1,3 +1,4 @@
> add_subdirectory(SysV-x86_64)
> add_subdirectory(MacOSX-i386)
> add_subdirectory(MacOSX-arm)
> +add_subdirectory(MacOSX-arm64)
>
> Added: lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp
> URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp?rev=205113&view=auto
> ==============================================================================
> --- lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp (added)
> +++ lldb/trunk/source/Plugins/ABI/MacOSX-arm64/ABIMacOSX_arm64.cpp Sat Mar 29 13:54:20 2014
> @@ -0,0 +1,1102 @@
> +//===-- ABIMacOSX_arm64.cpp -------------------------------------*- C++ -*-===//
> +//
> +// The LLVM Compiler Infrastructure
> +//
> +// This file is distributed under the University of Illinois Open Source
> +// License. See LICENSE.TXT for details.
> +//
> +//===----------------------------------------------------------------------===//
> +
> +#include "ABIMacOSX_arm64.h"
> +
> +#include "lldb/Core/ConstString.h"
> +#include "lldb/Core/Error.h"
> +#include "lldb/Core/Log.h"
> +#include "lldb/Core/Module.h"
> +#include "lldb/Core/PluginManager.h"
> +#include "lldb/Core/RegisterValue.h"
> +#include "lldb/Core/Scalar.h"
> +#include "lldb/Core/Value.h"
> +#include "lldb/Core/Value.h"
> +#include "lldb/Core/ValueObjectConstResult.h"
> +#include "lldb/Symbol/ClangASTContext.h"
> +#include "lldb/Symbol/UnwindPlan.h"
> +#include "lldb/Target/Process.h"
> +#include "lldb/Target/RegisterContext.h"
> +#include "lldb/Target/Target.h"
> +#include "lldb/Target/Thread.h"
> +
> +
> +#include "llvm/ADT/Triple.h"
> +
> +#include "Utility/ARM64_DWARF_Registers.h"
> +
> +#include <vector>
> +
> +using namespace lldb;
> +using namespace lldb_private;
> +
> +static const char *pluginDesc = "Mac OS X ABI for arm64 targets";
> +static const char *pluginShort = "abi.macosx-arm64";
> +
> +
> +static RegisterInfo g_register_infos[] =
> +{
> + // NAME ALT SZ OFF ENCODING FORMAT COMPILER DWARF GENERIC GDB LLDB NATIVE
> + // ========== ======= == === ============= =================== =================== ====================== =========================== ======================= ======================
> + { "x0", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x0, LLDB_REGNUM_GENERIC_ARG1, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x1", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x1, LLDB_REGNUM_GENERIC_ARG2, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x2", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x2, LLDB_REGNUM_GENERIC_ARG3, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x3", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x3, LLDB_REGNUM_GENERIC_ARG4, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x4", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x4, LLDB_REGNUM_GENERIC_ARG5, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x5", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x5, LLDB_REGNUM_GENERIC_ARG6, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x6", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x6, LLDB_REGNUM_GENERIC_ARG7, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x7", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x7, LLDB_REGNUM_GENERIC_ARG8, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x8", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x8, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x9", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x9, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x10", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x10, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x11", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x11, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x12", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x12, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x13", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x13, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x14", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x14, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x15", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x15, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x16", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x16, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x17", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x17, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x18", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x18, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x19", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x19, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x20", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x20, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x21", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x21, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x22", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x22, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x23", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x23, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x24", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x24, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x25", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x25, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x26", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x26, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x27", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x27, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "x28", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x28, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "fp", "x29", 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x29, LLDB_REGNUM_GENERIC_FP, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "lr", "x30", 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x30, LLDB_REGNUM_GENERIC_RA, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "sp", "x31", 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::x31, LLDB_REGNUM_GENERIC_SP, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "pc", NULL, 8, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::pc, LLDB_REGNUM_GENERIC_PC, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "cpsr", "psr", 4, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, arm64_dwarf::cpsr, LLDB_REGNUM_GENERIC_FLAGS, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> +
> + { "v0", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v0, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v1", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v1, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v2", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v2, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v3", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v3, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v4", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v4, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v5", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v5, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v6", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v6, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v7", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v7, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v8", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v8, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v9", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v9, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v10", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v10, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v11", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v11, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v12", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v12, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v13", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v13, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v14", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v14, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v15", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v15, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v16", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v16, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v17", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v17, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v18", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v18, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v19", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v19, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v20", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v20, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v21", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v21, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v22", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v22, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v23", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v23, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v24", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v24, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v25", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v25, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v26", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v26, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v27", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v27, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v28", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v28, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v29", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v29, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v30", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v30, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "v31", NULL, 16, 0, eEncodingVector , eFormatVectorOfUInt8, { LLDB_INVALID_REGNUM, arm64_dwarf::v31, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> +
> + { "fpsr", NULL, 4, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "fpcr", NULL, 4, 0, eEncodingUint , eFormatHex , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> +
> + { "s0", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s1", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s2", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s3", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s4", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s5", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s6", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s7", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s8", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s9", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s10", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s11", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s12", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s13", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s14", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s15", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s16", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s17", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s18", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s19", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s20", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s21", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s22", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s23", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s24", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s25", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s26", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s27", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s28", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s29", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s30", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "s31", NULL, 4, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> +
> + { "d0", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d1", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d2", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d3", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d4", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d5", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d6", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d7", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d8", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d9", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d10", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d11", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d12", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d13", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d14", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d15", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d16", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d17", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d18", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d19", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d20", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d21", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d22", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d23", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d24", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d25", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d26", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d27", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d28", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d29", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d30", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL },
> + { "d31", NULL, 8, 0, eEncodingIEEE754 , eFormatFloat , { LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM, LLDB_INVALID_REGNUM }, NULL, NULL }
> +};
> +
> +static const uint32_t k_num_register_infos = sizeof(g_register_infos)/sizeof(RegisterInfo);
> +static bool g_register_info_names_constified = false;
> +
> +const lldb_private::RegisterInfo *
> +ABIMacOSX_arm64::GetRegisterInfoArray (uint32_t &count)
> +{
> + // Make the C-string names and alt_names for the register infos into const
> + // C-string values by having the ConstString unique the names in the global
> + // constant C-string pool.
> + if (!g_register_info_names_constified)
> + {
> + g_register_info_names_constified = true;
> + for (uint32_t i=0; i<k_num_register_infos; ++i)
> + {
> + if (g_register_infos[i].name)
> + g_register_infos[i].name = ConstString(g_register_infos[i].name).GetCString();
> + if (g_register_infos[i].alt_name)
> + g_register_infos[i].alt_name = ConstString(g_register_infos[i].alt_name).GetCString();
> + }
> + }
> + count = k_num_register_infos;
> + return g_register_infos;
> +}
> +
> +size_t
> +ABIMacOSX_arm64::GetRedZoneSize () const
> +{
> + return 128;
> +}
> +
> +//------------------------------------------------------------------
> +// Static Functions
> +//------------------------------------------------------------------
> +ABISP
> +ABIMacOSX_arm64::CreateInstance (const ArchSpec &arch)
> +{
> + static ABISP g_abi_sp;
> + if (arch.GetTriple().getArch() == llvm::Triple::arm64)
> + {
> + if (!g_abi_sp)
> + g_abi_sp.reset (new ABIMacOSX_arm64);
> + return g_abi_sp;
> + }
> + return ABISP();
> +}
> +
> +bool
> +ABIMacOSX_arm64::PrepareTrivialCall (Thread &thread,
> + lldb::addr_t sp,
> + lldb::addr_t func_addr,
> + lldb::addr_t return_addr,
> + llvm::ArrayRef<lldb::addr_t> args) const
> +{
> + RegisterContext *reg_ctx = thread.GetRegisterContext().get();
> + if (!reg_ctx)
> + return false;
> +
> + Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_EXPRESSIONS));
> +
> + if (log)
> + {
> + StreamString s;
> + s.Printf("ABISysV_x86_64::PrepareTrivialCall (tid = 0x%" PRIx64 ", sp = 0x%" PRIx64 ", func_addr = 0x%" PRIx64 ", return_addr = 0x%" PRIx64,
> + thread.GetID(),
> + (uint64_t)sp,
> + (uint64_t)func_addr,
> + (uint64_t)return_addr);
> +
> + for (int i = 0; i < args.size(); ++i)
> + s.Printf (", arg%d = 0x%" PRIx64, i + 1, args[i]);
> + s.PutCString (")");
> + log->PutCString(s.GetString().c_str());
> + }
> +
> + const uint32_t pc_reg_num = reg_ctx->ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC);
> + const uint32_t sp_reg_num = reg_ctx->ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP);
> + const uint32_t ra_reg_num = reg_ctx->ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_RA);
> +
> + // x0 - x7 contain first 8 simple args
> + if (args.size() > 8) // TODO handle more than 6 arguments
> + return false;
> +
> + for (int i = 0; i < args.size(); ++i)
> + {
> + const RegisterInfo *reg_info = reg_ctx->GetRegisterInfo(eRegisterKindGeneric, LLDB_REGNUM_GENERIC_ARG1 + i);
> + if (log)
> + log->Printf("About to write arg%d (0x%" PRIx64 ") into %s", i + 1, args[i], reg_info->name);
> + if (!reg_ctx->WriteRegisterFromUnsigned(reg_info, args[i]))
> + return false;
> + }
> +
> + // Set "lr" to the return address
> + if (!reg_ctx->WriteRegisterFromUnsigned (reg_ctx->GetRegisterInfoAtIndex (ra_reg_num), return_addr))
> + return false;
> +
> + // Set "sp" to the requested value
> + if (!reg_ctx->WriteRegisterFromUnsigned (reg_ctx->GetRegisterInfoAtIndex (sp_reg_num), sp))
> + return false;
> +
> + // Set "pc" to the address requested
> + if (!reg_ctx->WriteRegisterFromUnsigned (reg_ctx->GetRegisterInfoAtIndex (pc_reg_num), func_addr))
> + return false;
> +
> + return true;
> +}
> +
> +
> +bool
> +ABIMacOSX_arm64::GetArgumentValues (Thread &thread, ValueList &valu...
>
> [Message clipped]
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the lldb-commits
mailing list