pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lldb-netbsd: Add Host::GetAuxvData(lldb::pid_t pid) on NetBSD
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Fri Mar 3 08:50:04 2017 +0100
Changeset: e3379da83678f5f0e0471fcfeed08ad26a6f3b92
Modified Files:
lldb-netbsd/distinfo
lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp
Log Message:
lldb-netbsd: Add Host::GetAuxvData(lldb::pid_t pid) on NetBSD
This function was undefined reference.
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=e3379da83678f5f0e0471fcfeed08ad26a6f3b92
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb-netbsd/distinfo | 2 +-
lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp | 10 +++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
diffs:
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
index e116662194..6531bafdd7 100644
--- a/lldb-netbsd/distinfo
+++ b/lldb-netbsd/distinfo
@@ -17,7 +17,7 @@ SHA1 (patch-source_CMakeLists.txt) = 5dacabc3f39c23bdfd432b5a4895866157b97aa0
SHA1 (patch-source_Host_CMakeLists.txt) = 28c31759dd684ff44d2f3c5a53c97edf8abb3a17
SHA1 (patch-source_Host_common_Host.cpp) = 7d48b8bb1e4350ba6d3ddc6357b9b8dc82d6b32d
SHA1 (patch-source_Host_common_NativeProcessProtocol.cpp) = 23cc7da280b2123cf0206f3d5660d2647935edbc
-SHA1 (patch-source_Host_netbsd_Host.cpp) = bc19754c964ea8242f6bf83ef7b3d3c4bf02c35b
+SHA1 (patch-source_Host_netbsd_Host.cpp) = f18a87c0ac3b1549045a4d9bda964dfc2baa4855
SHA1 (patch-source_Host_netbsd_HostThreadNetBSD.cpp) = a1b0fbdad062309a845cfefe4469614fbbe9d20e
SHA1 (patch-source_Host_netbsd_ThisThread.cpp) = f0d32c81bc1b8fe9aeb86519ea46ba2cb16571c2
SHA1 (patch-source_Initialization_SystemInitializerCommon.cpp) = dc270227e68c655753ef5f5168e3fa9a8dab3696
diff --git a/lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp b/lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp
index f46c6ccdcd..bfe729b6e5 100644
--- a/lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp
+++ b/lldb-netbsd/patches/patch-source_Host_netbsd_Host.cpp
@@ -1,6 +1,6 @@
$NetBSD$
---- source/Host/netbsd/Host.cpp.orig 2017-02-04 18:35:35.000000000 +0000
+--- source/Host/netbsd/Host.cpp.orig 2017-02-27 20:47:53.000000000 +0000
+++ source/Host/netbsd/Host.cpp
@@ -1,5 +1,4 @@
-//===-- source/Host/netbsd/Host.cpp ------------------------------*- C++
@@ -9,11 +9,15 @@ $NetBSD$
//
// The LLVM Compiler Infrastructure
//
-@@ -260,7 +259,35 @@ bool Host::GetProcessInfo(lldb::pid_t pi
+@@ -260,7 +259,39 @@ bool Host::GetProcessInfo(lldb::pid_t pi
}
lldb::DataBufferSP Host::GetAuxvData(lldb_private::Process *process) {
- return lldb::DataBufferSP();
++ return GetAuxvData(process->GetID());
++}
++
++lldb::DataBufferSP Host::GetAuxvData(lldb::pid_t pid) {
+ /*
+ * ELF_AUX_ENTRIES is currently restricted to kernel
+ * (<sys/exec_elf.h> r. 1.155 specifies 15)
@@ -33,7 +37,7 @@ $NetBSD$
+ .piod_len = auxv_size
+ };
+
-+ if (ptrace(PT_IO, process->GetID(), &io, 0) == -1) {
++ if (ptrace(PT_IO, pid, &io, 0) == -1) {
+ perror("ptrace failed on auxv");
+ } else if (io.piod_len < 1) {
+ perror("empty result for auxv");
Home |
Main Index |
Thread Index |
Old Index