pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lldb-netbsd: Correct Process Launch
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Fri Feb 2 19:54:54 2018 +0100
Changeset: 448d5d23bf7406bfb6cf536a3bff143b8fc0674b
Modified Files:
lldb-netbsd/Makefile
lldb-netbsd/distinfo
Added Files:
lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
Log Message:
lldb-netbsd: Correct Process Launch
Now, instead of a debugger crash we are observing a death of a process:
$ ./lldb-server g *:1234 -- /usr/bin/look
Launched '/usr/bin/look' as process 29904...
lldb-server-local_buildConnection established.
lldb-server exiting...
sorry, pid 29904 was killed: orphaned traced process
Disable dependencies on llvm and clang and reuse this package only for local
patches.
Sponsord 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=448d5d23bf7406bfb6cf536a3bff143b8fc0674b
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb-netbsd/Makefile | 12 +++++------
lldb-netbsd/distinfo | 1 +
..._Plugins_Process_NetBSD_NativeProcessNetBSD.cpp | 24 ++++++++++++++++++++++
3 files changed, 31 insertions(+), 6 deletions(-)
diffs:
diff --git a/lldb-netbsd/Makefile b/lldb-netbsd/Makefile
index 533579036b..f0978e327e 100644
--- a/lldb-netbsd/Makefile
+++ b/lldb-netbsd/Makefile
@@ -1,11 +1,11 @@
# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
-PKGNAME= lldb-6.0.0
+PKGNAME= lldb-7.0.0
CATEGORIES= lang devel
SVN_REPOSITORIES= lldb
SVN_REPO.lldb= http://llvm.org/svn/llvm-project/lldb/trunk
-SVN_REVISION.lldb= 320165
+SVN_REVISION.lldb= 324121
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
HOMEPAGE= http://lldb.org/
@@ -84,10 +84,10 @@ post-extract:
.include "../../devel/libatomic_ops/buildlink3.mk"
.include "../../devel/swig/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
-DEPENDS+= clang-${PKGVERSION_NOREV}{,nb*}:../../wip/clang-netbsd
-.include "../../wip/clang-netbsd/buildlink3.mk"
-DEPENDS+= llvm-${PKGVERSION_NOREV}{,nb*}:../../wip/llvm-netbsd
-.include "../../wip/llvm-netbsd/buildlink3.mk"
+#DEPENDS+= clang-${PKGVERSION_NOREV}{,nb*}:../../wip/clang-netbsd
+#.include "../../wip/clang-netbsd/buildlink3.mk"
+#DEPENDS+= llvm-${PKGVERSION_NOREV}{,nb*}:../../wip/llvm-netbsd
+#.include "../../wip/llvm-netbsd/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/tool.mk"
.include "../../lang/python/extension.mk"
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index 7931384fd5..d851f4e5d0 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -12,3 +12,4 @@ 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_NetBSD_NativeProcessNetBSD.cpp) = 069a4eac81da83cabf55421e07e30453520eee62
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
new file mode 100644
index 0000000000..5d1df6f897
--- /dev/null
+++ b/lldb-netbsd/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig 2018-02-02 18:39:14.654259652 +0000
++++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
+@@ -111,7 +111,6 @@ NativeProcessNetBSD::Factory::Launch(Pro
+
+ for (const auto &thread : process_up->m_threads)
+ static_cast<NativeThreadNetBSD &>(*thread).SetStoppedBySignal(SIGSTOP);
+- process_up->SetState(StateType::eStateStopped);
+
+ return std::move(process_up);
+ }
+@@ -157,6 +156,11 @@ NativeProcessNetBSD::NativeProcessNetBSD
+ m_sigchld_handle = mainloop.RegisterSignal(
+ SIGCHLD, [this](MainLoopBase &) { SigchldHandler(); }, status);
+ assert(m_sigchld_handle && status.Success());
++
++ SetState(StateType::eStateStopped, false);
++
++ // Proccess any signals we received before installing our handler
++ SigchldHandler();
+ }
+
+ // Handles all waitpid events from the inferior process.
Home |
Main Index |
Thread Index |
Old Index