pkgsrc-WIP-changes archive

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

lldb-git: Reuse NativeProcessPlugin Launch and Attach



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Wed Mar 22 02:52:55 2017 +0100
Changeset:	b2d2d6d4352add9530492d14d3ffd52f307549ce

Modified Files:
	lldb-git/distinfo
Added Files:
	lldb-git/patches/patch-source_Host_common_NativeProcessProtocol.cpp
	lldb-git/patches/patch-source_Plugins_Process_gdb-remote_CMakeLists.txt

Log Message:
lldb-git: Reuse NativeProcessPlugin Launch and Attach

Reuse the NetBSD Process Plugin that has been landed upstream.

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=b2d2d6d4352add9530492d14d3ffd52f307549ce

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

diffstat:
 lldb-git/distinfo                                         | 11 ++---------
 .../patch-source_Host_common_NativeProcessProtocol.cpp    | 13 +++++++++++++
 ...patch-source_Plugins_Process_gdb-remote_CMakeLists.txt | 15 +++++++++++++++
 3 files changed, 30 insertions(+), 9 deletions(-)

diffs:
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
index 7200a3a9bc..424956666c 100644
--- a/lldb-git/distinfo
+++ b/lldb-git/distinfo
@@ -12,12 +12,5 @@ Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
 SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
 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) = 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
+SHA1 (patch-source_Host_common_NativeProcessProtocol.cpp) = 6bccebe5a47f8e7087f563a202e71fbc101dd8a7
+SHA1 (patch-source_Plugins_Process_gdb-remote_CMakeLists.txt) = 0d530dbadf6fce6406d2823937045874ece402de
diff --git a/lldb-git/patches/patch-source_Host_common_NativeProcessProtocol.cpp b/lldb-git/patches/patch-source_Host_common_NativeProcessProtocol.cpp
new file mode 100644
index 0000000000..874cbca172
--- /dev/null
+++ b/lldb-git/patches/patch-source_Host_common_NativeProcessProtocol.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- source/Host/common/NativeProcessProtocol.cpp.orig	2017-03-20 15:16:01.000000000 +0000
++++ source/Host/common/NativeProcessProtocol.cpp
+@@ -504,7 +504,7 @@ Error NativeProcessProtocol::ResolveProc
+     return Error("failed to retrieve a valid architecture from the exe module");
+ }
+ 
+-#ifndef __linux__
++#if !defined(__linux__) && !defined(__NetBSD__)
+ // These need to be implemented to support lldb-gdb-server on a given platform.
+ // Stubs are
+ // provided to make the rest of the code link on non-supported platforms.
diff --git a/lldb-git/patches/patch-source_Plugins_Process_gdb-remote_CMakeLists.txt b/lldb-git/patches/patch-source_Plugins_Process_gdb-remote_CMakeLists.txt
new file mode 100644
index 0000000000..a002ab9ba9
--- /dev/null
+++ b/lldb-git/patches/patch-source_Plugins_Process_gdb-remote_CMakeLists.txt
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- source/Plugins/Process/gdb-remote/CMakeLists.txt.orig	2017-03-20 15:16:01.000000000 +0000
++++ source/Plugins/Process/gdb-remote/CMakeLists.txt
+@@ -11,6 +11,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux|Andr
+   list(APPEND LLDB_PLUGINS lldbPluginProcessLinux)
+ endif()
+ 
++if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
++  list(APPEND LLDB_PLUGINS lldbPluginProcessNetBSD)
++endif()
++
+ add_lldb_library(lldbPluginProcessGDBRemote PLUGIN
+   GDBRemoteClientBase.cpp
+   GDBRemoteCommunication.cpp


Home | Main Index | Thread Index | Old Index