pkgsrc-WIP-changes archive

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

lldb-netbsd: Rebase NativeThreadNetBSD to SVN trunk



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Mar 21 23:51:17 2017 +0100
Changeset:	6f277a14be82be5bf80b8a4e293a9c9afc1cd981

Modified Files:
	lldb-netbsd/distinfo
	lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
	lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h

Log Message:
lldb-netbsd: Rebase NativeThreadNetBSD 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=6f277a14be82be5bf80b8a4e293a9c9afc1cd981

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

diffstat:
 lldb-netbsd/distinfo                               |  4 +-
 ...e_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp | 47 ++++-----------------
 ...rce_Plugins_Process_NetBSD_NativeThreadNetBSD.h | 49 ++++------------------
 3 files changed, 16 insertions(+), 84 deletions(-)

diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 249a41abdb..6850c4ec69 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -24,7 +24,7 @@ SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 462
 SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 20ff7cf3e3ea20d225edc8dab0a7473baf9fe3ce
 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) = 77b00e0d0708cd6a1dd92d88fd7d8650f054198d
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = 1fff4a45b90dc5c47fc7beac345dbe693dfcc4dc
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 6f8dcbedf31f5e4ad829900d537e21acaa718b25
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = cc8cfee5f3740e2495282f376428963bb388b844
 SHA1 (patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp) = 3427bd2e2de3cd2947123c2f20ed8d5082a16ace
 SHA1 (patch-source_Plugins_Process_minidump_ProcessMinidump.cpp) = a71464df2ef56b8b2c8905e8169a85a05cfd27ba
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
index 454a7884b4..e735fdcd03 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
@@ -2,42 +2,10 @@ $NetBSD$
 
 --- source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp.orig	2017-03-21 20:01:05.000000000 +0000
 +++ source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
-@@ -1,3 +1,417 @@
-+//===-- NativeThreadNetBSD.cpp --------------------------------- -*- C++ -*-===//
-+//
-+//                     The LLVM Compiler Infrastructure
-+//
-+// This file is distributed under the University of Illinois Open Source
-+// License. See LICENSE.TXT for details.
-+//
-+//===----------------------------------------------------------------------===//
-+
-+#include "NativeThreadNetBSD.h"
-+#include "NativeRegisterContextNetBSD.h"
-+
-+#include <signal.h>
-+#include <sstream>
-+
-+#include "NativeProcessNetBSD.h"
-+
-+#include "lldb/Utility/Log.h"
-+#include "lldb/Core/State.h"
-+#include "lldb/Host/HostNativeThread.h"
-+#include "lldb/Utility/LLDBAssert.h"
-+#include "lldb/lldb-enumerations.h"
-+
-+#include "llvm/ADT/SmallString.h"
-+
-+#include "Plugins/Process/POSIX/CrashReason.h"
-+
-+#include <sys/ptrace.h>
-+#include <sys/syscall.h>
-+#include <poll.h>
-+
-+using namespace lldb;
-+using namespace lldb_private;
-+using namespace lldb_private::process_netbsd;
-+
+@@ -16,6 +16,382 @@ using namespace lldb;
+ using namespace lldb_private;
+ using namespace lldb_private::process_netbsd;
+ 
 +namespace {
 +void LogThreadStopInfo(Log &log, const ThreadStopInfo &stop_info,
 +                       const char *const header) {
@@ -81,7 +49,9 @@ $NetBSD$
 +}
 +}
 +
-+NativeThreadNetBSD::NativeThreadNetBSD(NativeProcessNetBSD *process,
+ NativeThreadNetBSD::NativeThreadNetBSD(NativeProcessNetBSD *process,
+-                                       lldb::tid_t tid)
+-    : NativeThreadProtocol(process, tid) {}
 +                                     lldb::tid_t tid)
 +    : NativeThreadProtocol(process, tid), m_state(StateType::eStateInvalid),
 +      m_stop_info(), m_reg_context_sp(), m_stop_description() {}
@@ -417,6 +387,3 @@ $NetBSD$
 +Error NativeThreadNetBSD::RemoveHardwareBreakpoint(lldb::addr_t addr) {
 +  return Error();
 +}
- //===-- NativeThreadNetBSD.cpp -------------------------------- -*- C++ -*-===//
- //
- //                     The LLVM Compiler Infrastructure
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
index dc2eb5ae72..b2397f1c11 100644
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
@@ -2,38 +2,10 @@ $NetBSD$
 
 --- source/Plugins/Process/NetBSD/NativeThreadNetBSD.h.orig	2017-03-21 20:01:05.000000000 +0000
 +++ source/Plugins/Process/NetBSD/NativeThreadNetBSD.h
-@@ -1,3 +1,94 @@
-+//===-- NativeThreadNetBSD.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_NativeThreadNetBSD_H_
-+#define liblldb_NativeThreadNetBSD_H_
-+
-+#include "lldb/Host/common/NativeThreadProtocol.h"
-+#include "lldb/lldb-private-forward.h"
-+
-+#include <sched.h>
-+
-+#include <map>
-+#include <memory>
-+#include <string>
-+
-+namespace lldb_private {
-+namespace process_netbsd {
-+
-+class NativeProcessNetBSD;
-+
-+class NativeThreadNetBSD : public NativeThreadProtocol {
-+  friend class NativeProcessNetBSD;
-+
-+public:
-+  NativeThreadNetBSD(NativeProcessNetBSD *process, lldb::tid_t tid);
+@@ -22,6 +22,59 @@ class NativeThreadNetBSD : public Native
+ 
+ public:
+   NativeThreadNetBSD(NativeProcessNetBSD *process, lldb::tid_t tid);
 +
 +  // ---------------------------------------------------------------------
 +  // NativeThreadProtocol Interface
@@ -87,13 +59,6 @@ $NetBSD$
 +  ThreadStopInfo m_stop_info;
 +  NativeRegisterContextSP m_reg_context_sp;
 +  std::string m_stop_description;
-+};
-+
-+typedef std::shared_ptr<NativeThreadNetBSD> NativeThreadNetBSDSP;
-+} // namespace process_netbsd
-+} // namespace lldb_private
-+
-+#endif // #ifndef liblldb_NativeThreadNetBSD_H_
- //===-- NativeThreadNetBSD.h ---------------------------------- -*- C++ -*-===//
- //
- //                     The LLVM Compiler Infrastructure
+ };
+ 
+ typedef std::shared_ptr<NativeThreadNetBSD> NativeThreadNetBSDSP;


Home | Main Index | Thread Index | Old Index