pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb-git: Eliminate local patch for NetBSD amd64 registers



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Feb 2 23:54:50 2016 +0100
Changeset:	48cac9b9bf924c14cd1cb62705735ed291c3ca42

Modified Files:
	lldb-git/distinfo
Removed Files:
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp
	lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.h

Log Message:
lldb-git: Eliminate local patch for NetBSD amd64 registers

This patch has been improved and committed upstream.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=48cac9b9bf924c14cd1cb62705735ed291c3ca42

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb-git/distinfo                                  |   3 -
 ...b_source_Plugins_Process_Utility_CMakeLists.txt |  12 --
 ...cess_Utility_RegisterContextNetBSD__x86__64.cpp | 129 ---------------------
 ...rocess_Utility_RegisterContextNetBSD__x86__64.h |  40 -------
 4 files changed, 184 deletions(-)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index ee12bcb..fdc6051 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -20,9 +20,6 @@ SHA1 (patch-lldb_include_lldb_Utility_regex2.h) = 16a7c6184dd7a42c31124cde5479c6
 SHA1 (patch-lldb_include_lldb_Utility_regex__impl.h) = bcf360a61912ee0730966eec2bcd3c740b7949fe
 SHA1 (patch-lldb_include_lldb_Utility_regutils.h) = b7347d263781170a017c012522be8dd806bcf585
 SHA1 (patch-lldb_scripts_CMakeLists.txt) = 46e02f8f07e6977df706b2f2bae3469a4b13a320
-SHA1 (patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt) = 9d0d67f17bbf05061894490430844d5f70ebd6e0
-SHA1 (patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp) = f5315f4fc51d92eeefe24af1a3385b49b3871403
-SHA1 (patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.h) = 473673971adf6927af6d597767c80ec6e95d79b6
 SHA1 (patch-lldb_source_Utility_CMakeLists.txt) = 3588546023de817eef056ceb26d8b2859484122f
 SHA1 (patch-lldb_source_Utility_regcomp.c) = bbe8132f8454b064c775a75a1380717e9deb6489
 SHA1 (patch-lldb_source_Utility_regerror.c) = 71ba9fc270e3b31186d72879bccbd7b58552f152
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
deleted file mode 100644
index 4fbf922..0000000
--- a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_CMakeLists.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- lldb/source/Plugins/Process/Utility/CMakeLists.txt.orig	2016-01-07 15:57:41.000000000 +0000
-+++ lldb/source/Plugins/Process/Utility/CMakeLists.txt
-@@ -34,6 +34,7 @@ add_lldb_library(lldbPluginProcessUtilit
-   RegisterContextMach_i386.cpp
-   RegisterContextMach_x86_64.cpp
-   RegisterContextMemory.cpp
-+  RegisterContextNetBSD_x86_64.cpp
-   RegisterContextPOSIX_arm.cpp
-   RegisterContextPOSIX_arm64.cpp
-   RegisterContextPOSIX_mips64.cpp
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp
deleted file mode 100644
index f9be2a9..0000000
--- a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.cpp
+++ /dev/null
@@ -1,129 +0,0 @@
-$NetBSD$
-
---- lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.cpp.orig	2016-01-23 15:05:04.000000000 +0000
-+++ lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.cpp
-@@ -0,0 +1,124 @@
-+//===-- RegisterContextNetBSD_x86_64.cpp ----------------------*- C++ -*-===//
-+//
-+//                     The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===---------------------------------------------------------------------===//
-+
-+#include <vector>
-+#include "RegisterContextPOSIX_x86.h"
-+#include "RegisterContextNetBSD_x86_64.h"
-+
-+using namespace lldb_private;
-+using namespace lldb;
-+
-+// src/sys/arch/amd64/include/frame_regs.h
-+typedef struct _GPR
-+{
-+    int64_t rdi;     /*  0 */
-+    int64_t rsi;     /*  1 */
-+    int64_t rdx;     /*  2 */
-+    int64_t rcx;     /*  3 */
-+    int64_t r8;      /*  4 */
-+    int64_t r9;      /*  5 */
-+    int64_t r10;     /*  6 */
-+    int64_t r11;     /*  7 */
-+    int64_t r12;     /*  8 */
-+    int64_t r13;     /*  9 */
-+    int64_t r14;     /* 10 */
-+    int64_t r15;     /* 11 */
-+    int64_t rbp;     /* 12 */
-+    int64_t rbx;     /* 13 */
-+    int64_t rax;     /* 14 */
-+    int64_t gs;      /* 15 */
-+    int64_t fs;      /* 16 */
-+    int64_t es;      /* 17 */
-+    int64_t ds;      /* 18 */
-+    int64_t trapno;  /* 19 */
-+    int64_t err;     /* 20 */
-+    int64_t rip;     /* 21 */
-+    int64_t cs;      /* 22 */
-+    int64_t rflags;  /* 23 */
-+    int64_t rsp;     /* 24 */
-+    int64_t ss;      /* 25 */
-+} GPR;
-+
-+struct DBG {
-+    int64_t dr[8];
-+};
-+
-+struct UserArea {
-+    GPR      gpr;
-+    FPR      fpr;
-+    DBG      dbg;
-+};
-+
-+#define DR_OFFSET(reg_index) \
-+    (LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
-+
-+//---------------------------------------------------------------------------
-+// Include RegisterInfos_x86_64 to declare our g_register_infos_x86_64 structure.
-+//---------------------------------------------------------------------------
-+#define DECLARE_REGISTER_INFOS_X86_64_STRUCT
-+#include "RegisterInfos_x86_64.h"
-+#undef DECLARE_REGISTER_INFOS_X86_64_STRUCT
-+
-+static std::vector<lldb_private::RegisterInfo>&
-+GetSharedRegisterInfoVector ()
-+{
-+    static std::vector<lldb_private::RegisterInfo> register_infos;
-+    return register_infos;
-+}
-+
-+static const RegisterInfo *
-+PrivateGetRegisterInfoPtr (const lldb_private::ArchSpec& target_arch)
-+{
-+    switch (target_arch.GetMachine())
-+    {
-+        case llvm::Triple::x86_64:
-+            return g_register_infos_x86_64;
-+        default:
-+            assert(false && "Unhandled target architecture.");
-+            return nullptr;
-+    }
-+}
-+
-+static uint32_t
-+PrivateGetRegisterCount (const lldb_private::ArchSpec& target_arch)
-+{
-+    switch (target_arch.GetMachine())
-+    {
-+        case llvm::Triple::x86_64:
-+            return static_cast<uint32_t> (sizeof (g_register_infos_x86_64) / sizeof (g_register_infos_x86_64 [0]));
-+        default:
-+            assert(false && "Unhandled target architecture.");
-+            return 0;
-+    }
-+}
-+
-+RegisterContextNetBSD_x86_64::RegisterContextNetBSD_x86_64(const ArchSpec &target_arch) :
-+    lldb_private::RegisterInfoInterface(target_arch),
-+    m_register_info_p (PrivateGetRegisterInfoPtr (target_arch)),
-+    m_register_count (PrivateGetRegisterCount (target_arch))
-+{
-+}
-+
-+size_t
-+RegisterContextNetBSD_x86_64::GetGPRSize() const
-+{
-+    return sizeof(GPR);
-+}
-+
-+const RegisterInfo *
-+RegisterContextNetBSD_x86_64::GetRegisterInfo() const
-+{
-+    return m_register_info_p;
-+}
-+
-+uint32_t
-+RegisterContextNetBSD_x86_64::GetRegisterCount () const
-+{
-+    return m_register_count;
-+}
diff --git a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.h b/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.h
deleted file mode 100644
index 9e7cadd..0000000
--- a/lldb-git/patches/patch-lldb_source_Plugins_Process_Utility_RegisterContextNetBSD__x86__64.h
+++ /dev/null
@@ -1,40 +0,0 @@
-$NetBSD$
-
---- lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.h.orig	2016-01-23 13:46:39.000000000 +0000
-+++ lldb/source/Plugins/Process/Utility/RegisterContextNetBSD_x86_64.h
-@@ -0,0 +1,35 @@
-+//===-- RegisterContextNetBSD_x86_64.h -------------------------*- C++ -*-===//
-+//
-+//                     The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===----------------------------------------------------------------------===//
-+
-+#ifndef liblldb_RegisterContextNetBSD_x86_64_H_
-+#define liblldb_RegisterContextNetBSD_x86_64_H_
-+
-+#include "RegisterInfoInterface.h"
-+
-+class RegisterContextNetBSD_x86_64:
-+    public lldb_private::RegisterInfoInterface
-+{
-+public:
-+    RegisterContextNetBSD_x86_64(const lldb_private::ArchSpec &target_arch);
-+
-+    size_t
-+    GetGPRSize() const override;
-+
-+    const lldb_private::RegisterInfo *
-+    GetRegisterInfo() const override;
-+
-+    uint32_t
-+    GetRegisterCount () const override;
-+
-+private:
-+    const lldb_private::RegisterInfo *m_register_info_p;
-+    const uint32_t m_register_count;
-+};
-+
-+#endif


Home | Main Index | Thread Index | Old Index