pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lldb-netbsd: Rebase NativeRegisterNetBSD to SVN trunk
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Wed Mar 22 00:08:35 2017 +0100
Changeset: 5668761bd8d1a7ccdc9732818a29c4f514c9d483
Modified Files:
lldb-netbsd/distinfo
lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
Log Message:
lldb-netbsd: Rebase NativeRegisterNetBSD to SVN trunk
This has not been tested for building as other files are still needed to be
restored after the initial NativeProcessNetBSD merged upstream.
Restore x86_64 Native Register Plugin in CMakeList.txt.
Sponsored by <The NetBSD Foundation>
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5668761bd8d1a7ccdc9732818a29c4f514c9d483
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb-netbsd/distinfo | 4 +--
..._Process_NetBSD_NativeRegisterContextNetBSD.cpp | 38 +++-----------------
...ns_Process_NetBSD_NativeRegisterContextNetBSD.h | 42 ++++------------------
3 files changed, 13 insertions(+), 71 deletions(-)
diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 6850c4ec69..67d98e2c40 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -20,8 +20,8 @@ SHA1 (patch-source_Plugins_DynamicLoader_POSIX-DYLD_DYLDRendezvous.cpp) = 32d683
SHA1 (patch-source_Plugins_Process_NetBSD_CMakeLists.txt) = 558379a5f3b47235dbf670742467e64c05e5900f
SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = ad525be4f4fda8760b07eb38fa5d711453198d49
SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h) = 3c9d87046a4399f4ca8a48721b81b49b416ac3e0
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 4625b126e809507c433b10f538b9e533cb42f4ec
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 20ff7cf3e3ea20d225edc8dab0a7473baf9fe3ce
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 2e460e87213a0bfae91d516b242c8f99696da014
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = aa598445b9ab7495cb2c53765bf8a5b1444cab12
SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.cpp) = f6aaa6193389041476a05f022ad55e18b4ec0e20
SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD__x86__64.h) = dee7f3fafaf4688d573075897293d42b498484bf
SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 6f8dcbedf31f5e4ad829900d537e21acaa718b25
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
index 308f970ffe..5fdac4f13d 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
@@ -2,37 +2,10 @@ $NetBSD$
--- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp.orig 2017-03-21 20:01:05.000000000 +0000
+++ source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp
-@@ -1,3 +1,115 @@
-+//===-- NativeRegisterContextNetBSD.cpp --------------------------*- C++ -*-===//
-+//
-+// The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===----------------------------------------------------------------------===//
-+
-+#include "NativeRegisterContextNetBSD.h"
-+
-+#include "lldb/Core/RegisterValue.h"
-+#include "lldb/Host/common/NativeProcessProtocol.h"
-+#include "lldb/Host/common/NativeThreadProtocol.h"
-+
-+#include "Plugins/Process/POSIX/ProcessPOSIXLog.h"
-+
-+#include <sys/param.h>
-+#include <sys/types.h>
-+#include <sys/ptrace.h>
-+
-+using namespace lldb_private;
-+using namespace lldb_private::process_netbsd;
-+
-+NativeRegisterContextNetBSD::NativeRegisterContextNetBSD(
-+ NativeThreadProtocol &native_thread, uint32_t concrete_frame_idx,
-+ RegisterInfoInterface *reg_info_interface_p)
-+ : NativeRegisterContextRegisterInfo(native_thread, concrete_frame_idx,
-+ reg_info_interface_p) {
-+}
+@@ -17,3 +17,85 @@ NativeRegisterContextNetBSD::NativeRegis
+ RegisterInfoInterface *reg_info_interface_p)
+ : NativeRegisterContextRegisterInfo(native_thread, concrete_frame_idx,
+ reg_info_interface_p) {}
+
+lldb::ByteOrder NativeRegisterContextNetBSD::GetByteOrder() const {
+ // Get the target process whose privileged thread was used for the register
@@ -115,6 +88,3 @@ $NetBSD$
+
+ return pid;
+}
- //===-- NativeRegisterContextNetBSD.cpp -------------------------*- C++ -*-===//
- //
- // The LLVM Compiler Infrastructure
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
index a8e0cc15eb..af964e6700 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
@@ -2,32 +2,10 @@ $NetBSD$
--- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h.orig 2017-03-21 20:01:05.000000000 +0000
+++ source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h
-@@ -1,3 +1,81 @@
-+//===-- NativeRegisterContextNetBSD.h ----------------------------*- C++ -*-===//
-+//
-+// The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===----------------------------------------------------------------------===//
-+
-+#ifndef lldb_NativeRegisterContextNetBSD_h
-+#define lldb_NativeRegisterContextNetBSD_h
-+
-+#include "lldb/Host/common/NativeRegisterContextRegisterInfo.h"
-+#include "lldb/Host/common/NativeThreadProtocol.h"
-+
-+#include "Plugins/Process/NetBSD/NativeProcessNetBSD.h"
-+
-+namespace lldb_private {
-+namespace process_netbsd {
-+
-+class NativeRegisterContextNetBSD : public NativeRegisterContextRegisterInfo {
-+public:
-+ NativeRegisterContextNetBSD(NativeThreadProtocol &native_thread,
-+ uint32_t concrete_frame_idx,
-+ RegisterInfoInterface *reg_info_interface_p);
+@@ -33,6 +33,53 @@ public:
+ CreateHostNativeRegisterContextNetBSD(const ArchSpec &target_arch,
+ NativeThreadProtocol &native_thread,
+ uint32_t concrete_frame_idx);
+
+ // This function is implemented in the NativeRegisterContextNetBSD_* subclasses
+ // to create a new
@@ -75,12 +53,6 @@ $NetBSD$
+ virtual NativeProcessNetBSD &GetProcess();
+
+ virtual pid_t GetProcessPid();
-+};
-+
-+} // namespace process_netbsd
-+} // namespace lldb_private
-+
-+#endif // #ifndef lldb_NativeRegisterContextNetBSD_h
- //===-- NativeRegisterContextNetBSD.h ---------------------------*- C++ -*-===//
- //
- // The LLVM Compiler Infrastructure
+ };
+
+ } // namespace process_netbsd
Home |
Main Index |
Thread Index |
Old Index