pkgsrc-WIP-changes archive

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

lldb-git: Trim unused code for now



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Mar 21 16:09:21 2017 +0100
Changeset:	5bde6169ecc4947ff831793de7da1525a7b56530

Modified Files:
	lldb-git/distinfo
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
	lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h

Log Message:
lldb-git: Trim unused code for now

This approach has been suggested upstream, to push naked classes for the NetBSD
Process plugin first.

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=5bde6169ecc4947ff831793de7da1525a7b56530

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

diffstat:
 lldb-git/distinfo                                  |  12 +-
 ..._Plugins_Process_NetBSD_NativeProcessNetBSD.cpp | 155 +--------------------
 ...ce_Plugins_Process_NetBSD_NativeProcessNetBSD.h | 139 +-----------------
 ..._Process_NetBSD_NativeRegisterContextNetBSD.cpp |  36 +----
 ...ns_Process_NetBSD_NativeRegisterContextNetBSD.h |  39 +-----
 ...e_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp |  82 +----------
 ...rce_Plugins_Process_NetBSD_NativeThreadNetBSD.h |  57 +-------
 7 files changed, 21 insertions(+), 499 deletions(-)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index c6417664be..7200a3a9bc 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -14,10 +14,10 @@ RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
 Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
 SHA1 (patch-source_Plugins_Process_CMakeLists.txt) = d12bf5e389eb70defd4c0b277d7d726d3d304f15
 SHA1 (patch-source_Plugins_Process_NetBSD_CMakeLists.txt) = aff9f4a875882ae5ce1221509272eb1b3c403587
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = 5d06543c311358b4c685b5fc5fcea042b0afa211
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h) = 386f78d8cfa5fe4e39c11c36f00e5cabb587eb4d
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 546b4414518e24c4d570ed512a3dc76317cacdc7
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 141c88b0de12d5e8b1e4cda115eb0addfa5fc151
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 8c7fe458fd47609db75e95f0dcfb70a3eba43815
-SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = 6977cdde31fd71435eda6ea2e3540f2f50ff9d52
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = dc1946ff5d0c35ce115f56173c79800d508518cd
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h) = 5872c1044c536afc94124960abd7e61ab9756ffb
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp) = 3132d60d90602a1adaa7387200a2f03e55eed2cb
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h) = 87e1cb32f503cd3d5cc4998130bdbe242646934d
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp) = 84cf0dc03710d1b05a866787fd34e3d69ef2f2ea
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h) = ddd43d2e8374b84e98e9c34d90b5de515ddbbe05
 SHA1 (patch-tools_lldb-server_CMakeLists.txt) = 1faf185bcadc90dac87beced1f7b949d62144292
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
index edff9bf744..66df09cfae 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig	2017-03-20 16:10:36.201719451 +0000
+--- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig	2017-03-21 14:39:27.315415766 +0000
 +++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
-@@ -0,0 +1,200 @@
+@@ -0,0 +1,51 @@
 +//===-- NativeProcessNetBSD.cpp ------------------------------- -*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
@@ -31,15 +31,6 @@ $NetBSD$
 +using namespace lldb_private::process_netbsd;
 +using namespace llvm;
 +
-+namespace {
-+void MaybeLogLaunchInfo(const ProcessLaunchInfo &info) {}
-+
-+void DisplayBytes(StreamString &s, void *bytes, uint32_t count) {}
-+
-+void PtraceDisplayBytes(int &req, void *addr, int data) {}
-+
-+} // end of anonymous namespace
-+
 +// -----------------------------------------------------------------------------
 +// Public Static Methods
 +// -----------------------------------------------------------------------------
@@ -62,144 +53,4 @@ $NetBSD$
 +// -----------------------------------------------------------------------------
 +
 +NativeProcessNetBSD::NativeProcessNetBSD()
-+    : NativeProcessProtocol(LLDB_INVALID_PROCESS_ID), m_arch(),
-+      m_supports_mem_region(eLazyBoolCalculate), m_mem_region_cache(),
-+      m_pending_notification_tid(LLDB_INVALID_THREAD_ID) {}
-+
-+void NativeProcessNetBSD::AttachToInferior(MainLoop &mainloop, lldb::pid_t pid,
-+                                           Error &error) {}
-+
-+Error NativeProcessNetBSD::LaunchInferior(MainLoop &mainloop,
-+                                          ProcessLaunchInfo &launch_info) {
-+  return Error();
-+}
-+
-+::pid_t NativeProcessNetBSD::Attach(lldb::pid_t pid, Error &error) {
-+  return -1;
-+}
-+
-+Error NativeProcessNetBSD::SetDefaultPtraceOpts(lldb::pid_t pid) {
-+  return Error();
-+}
-+
-+// Handles all waitpid events from the inferior process.
-+void NativeProcessNetBSD::MonitorCallback(lldb::pid_t pid, bool exited,
-+                                          int signal, int status) {}
-+
-+Error NativeProcessNetBSD::Resume(const ResumeActionList &resume_actions) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::Halt() { return Error(); }
-+
-+Error NativeProcessNetBSD::Detach() { return Error(); }
-+
-+Error NativeProcessNetBSD::Signal(int signo) { return Error(); }
-+
-+Error NativeProcessNetBSD::Interrupt() { return Error(); }
-+
-+Error NativeProcessNetBSD::Kill() { return Error(); }
-+
-+Error NativeProcessNetBSD::GetMemoryRegionInfo(lldb::addr_t load_addr,
-+                                               MemoryRegionInfo &range_info) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::PopulateMemoryRegionCache() { return Error(); }
-+
-+Error NativeProcessNetBSD::AllocateMemory(size_t size, uint32_t permissions,
-+                                          lldb::addr_t &addr) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::DeallocateMemory(lldb::addr_t addr) {
-+  return Error("not implemented");
-+}
-+
-+lldb::addr_t NativeProcessNetBSD::GetSharedLibraryInfoAddress() {
-+  return LLDB_INVALID_ADDRESS;
-+}
-+
-+size_t NativeProcessNetBSD::UpdateThreads() { return 0; }
-+
-+bool NativeProcessNetBSD::GetArchitecture(ArchSpec &arch) const {
-+  arch = m_arch;
-+  return true;
-+}
-+
-+Error NativeProcessNetBSD::FixupBreakpointPCAsNeeded(
-+    NativeThreadNetBSD &thread) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::SetBreakpoint(lldb::addr_t addr, uint32_t size,
-+                                         bool hardware) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::GetSoftwareBreakpointTrapOpcode(
-+    size_t trap_opcode_size_hint, size_t &actual_opcode_size,
-+    const uint8_t *&trap_opcode_bytes) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::GetSoftwareBreakpointPCOffset(
-+    uint32_t &actual_opcode_size) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::ReadMemory(lldb::addr_t addr, void *buf, size_t size,
-+                                      size_t &bytes_read) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::ReadMemoryWithoutTrap(lldb::addr_t addr, void *buf,
-+                                                 size_t size,
-+                                                 size_t &bytes_read) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::WriteMemory(lldb::addr_t addr, const void *buf,
-+                                       size_t size, size_t &bytes_written) {
-+  return Error();
-+}
-+
-+bool NativeProcessNetBSD::HasThreadNoLock(lldb::tid_t thread_id) {
-+  return false;
-+}
-+
-+NativeThreadNetBSDSP NativeProcessNetBSD::AddThread(lldb::tid_t thread_id) {
-+  auto thread_sp = std::make_shared<NativeThreadNetBSD>(this, thread_id);
-+  m_threads.push_back(thread_sp);
-+  return thread_sp;
-+}
-+
-+Error NativeProcessNetBSD::GetLoadedModuleFileSpec(const char *module_path,
-+                                                   FileSpec &file_spec) {
-+  return Error();
-+}
-+
-+Error NativeProcessNetBSD::GetFileLoadAddress(const llvm::StringRef &file_name,
-+                                              lldb::addr_t &load_addr) {
-+  return Error();
-+}
-+
-+NativeThreadNetBSDSP NativeProcessNetBSD::GetThreadByID(lldb::tid_t tid) {
-+  return std::static_pointer_cast<NativeThreadNetBSD>(
-+      NativeProcessProtocol::GetThreadByID(tid));
-+}
-+
-+llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
-+NativeProcessNetBSD::GetAuxvData() const {}
-+
-+//===----------------------------------------------------------------------===//
-+
-+void NativeProcessNetBSD::SigchldHandler() {}
-+
-+// Wrapper for ptrace to catch errors and log calls.
-+// Note that ptrace sets errno on error because -1 can be a valid result (i.e.
-+// for PT_READ*)
-+Error NativeProcessNetBSD::PtraceWrapper(int req, lldb::pid_t pid, void *addr,
-+                                         int data, int *result) {
-+  return Error();
-+}
++    : NativeProcessProtocol(LLDB_INVALID_PROCESS_ID) {}
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h
index c4e67830a0..1ab6dab074 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.h
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeProcessNetBSD.h.orig	2017-03-20 16:10:36.207245342 +0000
+--- source/Plugins/Process/NetBSD/NativeProcessNetBSD.h.orig	2017-03-21 14:39:27.347835320 +0000
 +++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.h
-@@ -0,0 +1,184 @@
+@@ -0,0 +1,49 @@
 +//===-- NativeProcessNetBSD.h --------------------------------- -*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
@@ -27,9 +27,6 @@ $NetBSD$
 +#include "lldb/Host/common/NativeProcessProtocol.h"
 +
 +namespace lldb_private {
-+class Error;
-+class Scalar;
-+
 +namespace process_netbsd {
 +/// @class NativeProcessNetBSD
 +/// @brief Manages communication with the inferior (debugee) process.
@@ -47,140 +44,8 @@ $NetBSD$
 +      lldb::pid_t pid, NativeProcessProtocol::NativeDelegate &native_delegate,
 +      MainLoop &mainloop, NativeProcessProtocolSP &process_sp);
 +
-+public:
-+  // ---------------------------------------------------------------------
-+  // NativeProcessProtocol Interface
-+  // ---------------------------------------------------------------------
-+  Error Resume(const ResumeActionList &resume_actions) override;
-+
-+  Error Halt() override;
-+
-+  Error Detach() override;
-+
-+  Error Signal(int signo) override;
-+
-+  Error Interrupt() override;
-+
-+  Error Kill() override;
-+
-+  Error GetMemoryRegionInfo(lldb::addr_t load_addr,
-+                            MemoryRegionInfo &range_info) override;
-+
-+  Error ReadMemory(lldb::addr_t addr, void *buf, size_t size,
-+                   size_t &bytes_read) override;
-+
-+  Error ReadMemoryWithoutTrap(lldb::addr_t addr, void *buf, size_t size,
-+                              size_t &bytes_read) override;
-+
-+  Error WriteMemory(lldb::addr_t addr, const void *buf, size_t size,
-+                    size_t &bytes_written) override;
-+
-+  Error AllocateMemory(size_t size, uint32_t permissions,
-+                       lldb::addr_t &addr) override;
-+
-+  Error DeallocateMemory(lldb::addr_t addr) override;
-+
-+  lldb::addr_t GetSharedLibraryInfoAddress() override;
-+
-+  size_t UpdateThreads() override;
-+
-+  bool GetArchitecture(ArchSpec &arch) const override;
-+
-+  Error SetBreakpoint(lldb::addr_t addr, uint32_t size, bool hardware) override;
-+
-+  void DoStopIDBumped(uint32_t newBumpId) override;
-+
-+  Error GetLoadedModuleFileSpec(const char *module_path,
-+                                FileSpec &file_spec) override;
-+
-+  Error GetFileLoadAddress(const llvm::StringRef &file_name,
-+                           lldb::addr_t &load_addr) override;
-+
-+  NativeThreadNetBSDSP GetThreadByID(lldb::tid_t id);
-+
-+  llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
-+  GetAuxvData() const override;
-+
-+  // ---------------------------------------------------------------------
-+  // Interface used by NativeRegisterContext-derived classes.
-+  // ---------------------------------------------------------------------
-+  static Error PtraceWrapper(int req, lldb::pid_t pid, void *addr = nullptr,
-+                             int data = 0, int *result = nullptr);
-+
-+protected:
-+  // ---------------------------------------------------------------------
-+  // NativeProcessProtocol protected interface
-+  // ---------------------------------------------------------------------
-+
-+  Error
-+  GetSoftwareBreakpointTrapOpcode(size_t trap_opcode_size_hint,
-+                                  size_t &actual_opcode_size,
-+                                  const uint8_t *&trap_opcode_bytes) override;
-+
 +private:
-+  MainLoop::SignalHandleUP m_sigchld_handle;
-+  ArchSpec m_arch;
-+
-+  LazyBool m_supports_mem_region;
-+  std::vector<std::pair<MemoryRegionInfo, FileSpec>> m_mem_region_cache;
-+
-+  lldb::tid_t m_pending_notification_tid;
-+
-+  // List of thread ids stepping with a breakpoint with the address of
-+  // the relevan breakpoint
-+  std::map<lldb::tid_t, lldb::addr_t> m_threads_stepping_with_breakpoint;
-+
-+  // ---------------------------------------------------------------------
-+  // Private Instance Methods
-+  // ---------------------------------------------------------------------
 +  NativeProcessNetBSD();
-+
-+  Error LaunchInferior(MainLoop &mainloop, ProcessLaunchInfo &launch_info);
-+
-+  /// Attaches to an existing process.  Forms the
-+  /// implementation of Process::DoAttach
-+  void AttachToInferior(MainLoop &mainloop, lldb::pid_t pid, Error &error);
-+
-+  ::pid_t Attach(lldb::pid_t pid, Error &error);
-+
-+  static Error SetDefaultPtraceOpts(const lldb::pid_t);
-+
-+  static void *MonitorThread(void *baton);
-+
-+  void MonitorCallback(lldb::pid_t pid, bool exited, int signal, int status);
-+
-+  void MonitorSIGTRAP(const siginfo_t &info, NativeThreadNetBSD &thread);
-+
-+  Error SetupSoftwareSingleStepping(NativeThreadNetBSD &thread);
-+
-+  bool HasThreadNoLock(lldb::tid_t thread_id);
-+
-+  NativeThreadNetBSDSP AddThread(lldb::tid_t thread_id);
-+
-+  Error GetSoftwareBreakpointPCOffset(uint32_t &actual_opcode_size);
-+
-+  Error FixupBreakpointPCAsNeeded(NativeThreadNetBSD &thread);
-+
-+  /// Writes a siginfo_t structure corresponding to the given thread ID to the
-+  /// memory region pointed to by @p siginfo.
-+  Error GetSignalInfo(lldb::tid_t tid, void *siginfo);
-+
-+  void NotifyThreadDeath(lldb::tid_t tid);
-+
-+  Error Detach(lldb::tid_t tid);
-+
-+  // Notify the delegate if all threads have stopped.
-+  void SignalIfAllThreadsStopped();
-+
-+  // Resume the given thread, optionally passing it the given signal. The type
-+  // of resume
-+  // operation (continue, single-step) depends on the state parameter.
-+  Error ResumeThread(NativeThreadNetBSD &thread, lldb::StateType state,
-+                     int signo);
-+
-+  void SigchldHandler();
-+
-+  Error PopulateMemoryRegionCache();
 +};
 +
 +} // namespace process_netbsd
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
index aa7ac9e860..5a2b8909eb 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.cpp
@@ -1,10 +1,9 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp.orig	2017-03-20 16:20:34.638783816 +0000
+--- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp.orig	2017-03-21 14:39:27.380399180 +0000
 +++ source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp
-@@ -0,0 +1,49 @@
-+//===-- NativeRegisterContextNetBSD.cpp --------------------------*- C++
-+//-*-===//
+@@ -0,0 +1,19 @@
++//===-- NativeRegisterContextNetBSD.cpp -------------------------*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
 +//
@@ -23,32 +22,3 @@ $NetBSD$
 +    RegisterInfoInterface *reg_info_interface_p)
 +    : NativeRegisterContextRegisterInfo(native_thread, concrete_frame_idx,
 +                                        reg_info_interface_p) {}
-+
-+lldb::ByteOrder NativeRegisterContextNetBSD::GetByteOrder() const {
-+  return lldb::eByteOrderInvalid;
-+}
-+
-+Error NativeRegisterContextNetBSD::ReadGPR() { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::WriteGPR() { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::ReadFPR() { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::WriteFPR() { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::DoReadGPR(void *buf) { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::DoWriteGPR(void *buf) { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::DoReadFPR(void *buf) { return Error(); }
-+
-+Error NativeRegisterContextNetBSD::DoWriteFPR(void *buf) { return Error(); }
-+
-+NativeProcessNetBSD &NativeRegisterContextNetBSD::GetProcess() {
-+  auto process_sp =
-+      std::static_pointer_cast<NativeProcessNetBSD>(m_thread.GetProcess());
-+  assert(process_sp);
-+  return *process_sp;
-+}
-+
-+::pid_t NativeRegisterContextNetBSD::GetProcessPid() { return -1; }
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
index a514474eb7..59f12b785c 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeRegisterContextNetBSD.h
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h.orig	2017-03-20 16:20:31.692818842 +0000
+--- source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h.orig	2017-03-21 14:39:27.419665433 +0000
 +++ source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h
-@@ -0,0 +1,76 @@
+@@ -0,0 +1,41 @@
 +//===-- NativeRegisterContextNetBSD.h ---------------------------*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
@@ -38,41 +38,6 @@ $NetBSD$
 +  CreateHostNativeRegisterContextNetBSD(const ArchSpec &target_arch,
 +                                        NativeThreadProtocol &native_thread,
 +                                        uint32_t concrete_frame_idx);
-+
-+protected:
-+  lldb::ByteOrder GetByteOrder() const;
-+
-+  virtual Error ReadGPR();
-+
-+  virtual Error WriteGPR();
-+
-+  virtual Error ReadFPR();
-+
-+  virtual Error WriteFPR();
-+
-+  virtual void *GetGPRBuffer() { return nullptr; }
-+
-+  virtual size_t GetGPRSize() {
-+    return GetRegisterInfoInterface().GetGPRSize();
-+  }
-+
-+  virtual void *GetFPRBuffer() { return nullptr; }
-+
-+  virtual void *GetDBRBuffer() { return nullptr; }
-+
-+  virtual size_t GetFPRSize() { return 0; }
-+
-+  virtual Error DoReadGPR(void *buf);
-+
-+  virtual Error DoWriteGPR(void *buf);
-+
-+  virtual Error DoReadFPR(void *buf);
-+
-+  virtual Error DoWriteFPR(void *buf);
-+
-+  virtual NativeProcessNetBSD &GetProcess();
-+
-+  virtual ::pid_t GetProcessPid();
 +};
 +
 +} // namespace process_netbsd
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
index c3fbb74ce6..b39fcd9e43 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.cpp
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp.orig	2017-03-20 16:13:14.305070457 +0000
+--- source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp.orig	2017-03-21 14:39:27.452920481 +0000
 +++ source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp
-@@ -0,0 +1,97 @@
+@@ -0,0 +1,21 @@
 +//===-- NativeThreadNetBSD.cpp -------------------------------- -*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
@@ -21,82 +21,6 @@ $NetBSD$
 +using namespace lldb_private;
 +using namespace lldb_private::process_netbsd;
 +
-+namespace {
-+void LogThreadStopInfo(Log &log, const ThreadStopInfo &stop_info,
-+                       const char *const header) {}
-+} // namespace
-+
 +NativeThreadNetBSD::NativeThreadNetBSD(NativeProcessNetBSD *process,
 +                                       lldb::tid_t tid)
-+    : NativeThreadProtocol(process, tid), m_state(StateType::eStateInvalid),
-+      m_stop_info(), m_reg_context_sp(), m_stop_description() {}
-+
-+std::string NativeThreadNetBSD::GetName() { return std::string(); }
-+
-+lldb::StateType NativeThreadNetBSD::GetState() { return m_state; }
-+
-+bool NativeThreadNetBSD::GetStopReason(ThreadStopInfo &stop_info,
-+                                       std::string &description) {
-+  return false;
-+}
-+
-+NativeRegisterContextSP NativeThreadNetBSD::GetRegisterContext() {
-+  // Return the register context if we already created it.
-+  if (m_reg_context_sp)
-+    return m_reg_context_sp;
-+
-+  NativeProcessProtocolSP m_process_sp = m_process_wp.lock();
-+  if (!m_process_sp)
-+    return NativeRegisterContextSP();
-+
-+  ArchSpec target_arch;
-+  if (!m_process_sp->GetArchitecture(target_arch))
-+    return NativeRegisterContextSP();
-+
-+  const uint32_t concrete_frame_idx = 0;
-+  m_reg_context_sp.reset(
-+      NativeRegisterContextNetBSD::CreateHostNativeRegisterContextNetBSD(
-+          target_arch, *this, concrete_frame_idx));
-+
-+  return m_reg_context_sp;
-+}
-+
-+Error NativeThreadNetBSD::SetWatchpoint(lldb::addr_t addr, size_t size,
-+                                        uint32_t watch_flags, bool hardware) {
-+  return Error();
-+}
-+
-+Error NativeThreadNetBSD::RemoveWatchpoint(lldb::addr_t addr) {
-+  return Error();
-+}
-+
-+void NativeThreadNetBSD::SetStoppedBySignal(uint32_t signo,
-+                                            const siginfo_t *info) {}
-+
-+void NativeThreadNetBSD::SetStopped() {}
-+
-+void NativeThreadNetBSD::SetStoppedByExec() {}
-+
-+void NativeThreadNetBSD::SetRunning() {}
-+
-+void NativeThreadNetBSD::SetStepping() {}
-+
-+void NativeThreadNetBSD::SetStoppedByTrace() {}
-+
-+void NativeThreadNetBSD::SetStoppedByBreakpoint() {}
-+
-+NativeProcessNetBSD &NativeThreadNetBSD::GetProcess() {
-+  auto process_sp = std::static_pointer_cast<NativeProcessNetBSD>(
-+      NativeThreadProtocol::GetProcess());
-+  assert(process_sp);
-+  return *process_sp;
-+}
-+
-+Error NativeThreadNetBSD::SetHardwareBreakpoint(lldb::addr_t addr,
-+                                                size_t size) {
-+  return Error();
-+}
-+
-+Error NativeThreadNetBSD::RemoveHardwareBreakpoint(lldb::addr_t addr) {
-+  return Error();
-+}
++    : NativeThreadProtocol(process, tid) {}
diff --git a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
index 5527a040f5..e0cc320b83 100644
--- a/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
+++ b/lldb-git/patches/patch-source_Plugins_Process_NetBSD_NativeThreadNetBSD.h
@@ -1,8 +1,8 @@
 $NetBSD$
 
---- source/Plugins/Process/NetBSD/NativeThreadNetBSD.h.orig	2017-03-20 16:13:07.667474250 +0000
+--- source/Plugins/Process/NetBSD/NativeThreadNetBSD.h.orig	2017-03-21 14:39:27.484287194 +0000
 +++ source/Plugins/Process/NetBSD/NativeThreadNetBSD.h
-@@ -0,0 +1,84 @@
+@@ -0,0 +1,31 @@
 +//===-- NativeThreadNetBSD.h ---------------------------------- -*- C++ -*-===//
 +//
 +//                     The LLVM Compiler Infrastructure
@@ -27,59 +27,6 @@ $NetBSD$
 +
 +public:
 +  NativeThreadNetBSD(NativeProcessNetBSD *process, lldb::tid_t tid);
-+
-+  // ---------------------------------------------------------------------
-+  // NativeThreadProtocol Interface
-+  // ---------------------------------------------------------------------
-+  std::string GetName() override;
-+
-+  lldb::StateType GetState() override;
-+
-+  bool GetStopReason(ThreadStopInfo &stop_info,
-+                     std::string &description) override;
-+
-+  NativeRegisterContextSP GetRegisterContext() override;
-+
-+  Error SetWatchpoint(lldb::addr_t addr, size_t size, uint32_t watch_flags,
-+                      bool hardware) override;
-+
-+  Error RemoveWatchpoint(lldb::addr_t addr) override;
-+
-+  Error SetHardwareBreakpoint(lldb::addr_t addr, size_t size) override;
-+
-+  Error RemoveHardwareBreakpoint(lldb::addr_t addr) override;
-+
-+private:
-+  // ---------------------------------------------------------------------
-+  // Interface for friend classes
-+  // ---------------------------------------------------------------------
-+
-+  void SetStoppedBySignal(uint32_t signo, const siginfo_t *info = nullptr);
-+
-+  void SetStoppedByExec();
-+
-+  void SetStoppedByTrace();
-+
-+  void SetStoppedByBreakpoint();
-+
-+  void SetRunning();
-+
-+  void SetStepping();
-+
-+  // ---------------------------------------------------------------------
-+  // Private interface
-+  // ---------------------------------------------------------------------
-+  NativeProcessNetBSD &GetProcess();
-+
-+  void SetStopped();
-+
-+  // ---------------------------------------------------------------------
-+  // Member Variables
-+  // ---------------------------------------------------------------------
-+  lldb::StateType m_state;
-+  ThreadStopInfo m_stop_info;
-+  NativeRegisterContextSP m_reg_context_sp;
-+  std::string m_stop_description;
 +};
 +
 +typedef std::shared_ptr<NativeThreadNetBSD> NativeThreadNetBSDSP;


Home | Main Index | Thread Index | Old Index