pkgsrc-WIP-changes archive

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

edb-debugger-git: Add stub for os/unix/netbsd



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Feb 19 01:04:51 2017 +0100
Changeset:	690a852cca724c3e3ef3c07feea2ab2e0290a8eb

Modified Files:
	edb-debugger-git/distinfo
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp
	edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h
	edb-debugger-git/patches/patch-src_Debugger.cpp
Added Files:
	edb-debugger-git/patches/patch-include_os_unix_OSTypes.h
	edb-debugger-git/patches/patch-include_os_unix_netbsd_linker.h

Log Message:
edb-debugger-git: Add stub for os/unix/netbsd

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=690a852cca724c3e3ef3c07feea2ab2e0290a8eb

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

diffstat:
 edb-debugger-git/distinfo                          | 40 +++++++------
 .../patches/patch-include_os_unix_OSTypes.h        | 16 +++++
 .../patches/patch-include_os_unix_netbsd_linker.h  | 57 ++++++++++++++++++
 ...ugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp |  2 +-
 ...plugins_DebuggerCore_unix_netbsd_DebuggerCore.h |  2 +-
 ...DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp |  2 +-
 ...s_DebuggerCore_unix_netbsd_DialogMemoryAccess.h |  2 +-
 ...gins_DebuggerCore_unix_netbsd_FeatureDetect.cpp |  2 +-
 ...lugins_DebuggerCore_unix_netbsd_FeatureDetect.h |  2 +-
 ...ins_DebuggerCore_unix_netbsd_PlatformCommon.cpp |  2 +-
 ...ugins_DebuggerCore_unix_netbsd_PlatformCommon.h |  2 +-
 ...gins_DebuggerCore_unix_netbsd_PlatformEvent.cpp |  2 +-
 ...lugins_DebuggerCore_unix_netbsd_PlatformEvent.h |  2 +-
 ...ns_DebuggerCore_unix_netbsd_PlatformProcess.cpp |  2 +-
 ...gins_DebuggerCore_unix_netbsd_PlatformProcess.h |  2 +-
 ...ins_DebuggerCore_unix_netbsd_PlatformRegion.cpp |  2 +-
 ...ugins_DebuggerCore_unix_netbsd_PlatformRegion.h |  2 +-
 ...gins_DebuggerCore_unix_netbsd_PlatformState.cpp |  2 +-
 ...lugins_DebuggerCore_unix_netbsd_PlatformState.h |  2 +-
 ...ins_DebuggerCore_unix_netbsd_PlatformThread.cpp |  2 +-
 ...ugins_DebuggerCore_unix_netbsd_PlatformThread.h |  2 +-
 edb-debugger-git/patches/patch-src_Debugger.cpp    | 70 +++++++++++++++++++++-
 22 files changed, 181 insertions(+), 38 deletions(-)

diffs:
diff --git a/edb-debugger-git/distinfo b/edb-debugger-git/distinfo
index e41ef7051d..3a00cf75e3 100644
--- a/edb-debugger-git/distinfo
+++ b/edb-debugger-git/distinfo
@@ -4,26 +4,28 @@ SHA1 (edb-debugger-0.9.21.tar.gz) = eff050b5ec53f02ebc96dbbb80f1731036e2c6f6
 RMD160 (edb-debugger-0.9.21.tar.gz) = d7821e07b607667090b1158b559053856ef077de
 SHA512 (edb-debugger-0.9.21.tar.gz) = 88a04cafb2c27a3af6bcfc48c841c795fb5bba348f64fe52957716c2c03e4cd056d045b241135c5be7fd7174d2c5a35fa5c95dc2b6aad4fb5c04f4fe36ab4f0d
 Size (edb-debugger-0.9.21.tar.gz) = 996932 bytes
+SHA1 (patch-include_os_unix_OSTypes.h) = bc7d3f584c7e8e40ad029e83141a186629b4c1eb
+SHA1 (patch-include_os_unix_netbsd_linker.h) = dd7ce5241fe7d2460c28e97941b5294eb0083ac9
 SHA1 (patch-plugins_Assembler_DialogAssembler.cpp) = 2bd6418dc078aae0c84c6092f15619e202e43b31
 SHA1 (patch-plugins_DebuggerCore_CMakeLists.txt) = 18b3f0bd7c7c7ec4eaa6526c81b7c4299c7ee3f4
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp) = e830e332a9e9b66284218f73860396b9d9968c76
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h) = a9335e0c89c040a18c7427af539537de945c2767
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp) = aa5ca12636f69a1d193f6dafc40fdd93b0cfb045
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h) = 80f4753c93f8e609dfd12ced203d24e1460650d3
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp) = 0df2f31b58ed6133b4d6c382aa5cba53086620ca
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h) = da3f18057d40e5935bc7fbc06896f85df66bcb5a
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp) = aa42edff67624a067d88bdd90efd911830be29a1
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h) = 4dcceae321182040c63bd2ca269cee82cfa2776b
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp) = 1b61df3c94c197f60fe27a717023fd4f7a352d41
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h) = bb10f94a9f8a420d3bf713df5e81a76fa9d87fe1
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp) = a14e97b2c386fc066ff009bee737932830b7689d
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h) = 20e89f333a7866210ed61d22c760810f8769056c
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp) = 19143c32097ee266a842ca8d539cf99cb0a94b85
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h) = 699ddd411c8bde17dc2125f0f60b4dd64cff57c3
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp) = bb9c0db3303f514e13376ffb7b2d086a0cb818a3
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h) = 19e2935407feeb12d8b80fe2cbd7762a5946ef58
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp) = acbe9c562de7fe2c039eb8b74635a1008a0056a3
-SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h) = 57432f5c91546f1dff7b1bfc874216fefe931a99
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp) = b3dc51ab40fdecbe6fa36e67a1bffdb895788cbc
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h) = 23f67d58b6ff4dd44c1a2e092a22a67143ef59ea
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp) = 9937c4ea369bd9eda32b2796f0d41f9700f5e802
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h) = de0400c19a934c51f0b2f7f89f17f0708ed08aa0
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp) = 499874686079681b264456b7df7294a7a066498f
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h) = f848db5b15c54ce6f16c9a5561d50eed55e963ef
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp) = e170248ef063c966fe0dcac44a72e073e276fdc8
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h) = f329bbda428e16ae8b063fde5814e1525ee7d24b
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp) = d7425462f8890274a067655128e6180d2d396f05
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h) = d492f005d61a2804d96fc734ee5bfdb19f4b14f4
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp) = 9c27aa2b0b0489f22c80e8657dcc2cf144de7939
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h) = 16bfcdb08ca5978c4a2d141821625ed327f497ac
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp) = b49f0bce2b8154e130bd2e72ced9cc3f374799c5
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h) = 179caf2d793dfd88b0cd43b186341c0362c0308a
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp) = e4915dadc6f0c8598a4229a5d74600f9cd14f50d
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h) = 99efb27935b79aca539f7704dd1a8b5f5c72db7c
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp) = c391c2136c1a8d12038d41369f689beb026091e3
+SHA1 (patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h) = e73a6461ca579343655dd0558d6152ab520fcf34
 SHA1 (patch-plugins_HeapAnalyzer_DialogHeap.cpp) = a11c5aeb91168f4bf2f58fa35137fec2d5107ea4
 SHA1 (patch-plugins_ProcessProperties_DialogProcessProperties.cpp) = 31d9915e63a963fdd597dc141e3424fa8f05e81b
-SHA1 (patch-src_Debugger.cpp) = 6e680dfecf7fe690c3d557002515f21313b85ca7
+SHA1 (patch-src_Debugger.cpp) = b2e68dbab81385e153b98a514a052d95f936b57c
diff --git a/edb-debugger-git/patches/patch-include_os_unix_OSTypes.h b/edb-debugger-git/patches/patch-include_os_unix_OSTypes.h
new file mode 100644
index 0000000000..6b38c94399
--- /dev/null
+++ b/edb-debugger-git/patches/patch-include_os_unix_OSTypes.h
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- include/os/unix/OSTypes.h.orig	2017-02-18 21:21:09.000000000 +0000
++++ include/os/unix/OSTypes.h
+@@ -24,7 +24,11 @@ along with this program.  If not, see <h
+ namespace edb {
+ 	using   ::pid_t;
+ 	using   ::uid_t;
++#if defined(__NetBSD__)
++	typedef ::lwpid_t tid_t;
++#else
+ 	typedef ::pid_t tid_t;
++#endif
+ }
+ 
+ #endif
diff --git a/edb-debugger-git/patches/patch-include_os_unix_netbsd_linker.h b/edb-debugger-git/patches/patch-include_os_unix_netbsd_linker.h
new file mode 100644
index 0000000000..06c2b20639
--- /dev/null
+++ b/edb-debugger-git/patches/patch-include_os_unix_netbsd_linker.h
@@ -0,0 +1,57 @@
+$NetBSD$
+
+--- include/os/unix/netbsd/linker.h.orig	2017-02-18 23:49:30.670243602 +0000
++++ include/os/unix/netbsd/linker.h
+@@ -0,0 +1,52 @@
++/*
++Copyright (C) 2015 - 2015 Evan Teran
++                          evan.teran%gmail.com@localhost
++
++This program is free software: you can redistribute it and/or modify
++it under the terms of the GNU General Public License as published by
++the Free Software Foundation, either version 2 of the License, or
++(at your option) any later version.
++
++This program is distributed in the hope that it will be useful,
++but WITHOUT ANY WARRANTY; without even the implied warranty of
++MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++GNU General Public License for more details.
++
++You should have received a copy of the GNU General Public License
++along with this program.  If not, see <http://www.gnu.org/licenses/>.
++*/
++
++
++#ifndef LINKER_20170103_H_
++#define LINKER_20170103_H_
++
++namespace edb {
++namespace linux {
++
++// Bitness-templated version of struct r_debug defined in link.h
++template <class Addr>
++struct r_debug {
++	int r_version;
++	Addr r_map; // struct link_map*
++	Addr r_brk;
++	enum {
++		RT_CONSISTENT,
++		RT_ADD,
++		RT_DELETE
++	} r_state;
++	Addr r_ldbase;
++};
++
++// Bitness-templated version of struct link_map defined in link.h
++template <class Addr>
++struct link_map {
++	Addr l_addr;
++	Addr l_name; // char*
++	Addr l_ld; // ElfW(Dyn)*
++	Addr l_next, l_prev; // struct link_map*
++};
++
++}
++}
++
++#endif
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp
index 32b302a4ef..789d5305f4 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/DebuggerCore.cpp.orig	2017-02-18 23:32:09.424899250 +0000
+--- plugins/DebuggerCore/unix/netbsd/DebuggerCore.cpp.orig	2017-02-18 23:38:08.965304115 +0000
 +++ plugins/DebuggerCore/unix/netbsd/DebuggerCore.cpp
 @@ -0,0 +1,596 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h
index 8512973304..2118bb6b4c 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DebuggerCore.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/DebuggerCore.h.orig	2017-02-18 23:32:09.430404238 +0000
+--- plugins/DebuggerCore/unix/netbsd/DebuggerCore.h.orig	2017-02-18 23:38:08.971308529 +0000
 +++ plugins/DebuggerCore/unix/netbsd/DebuggerCore.h
 @@ -0,0 +1,110 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp
index c82b9480bf..8e81884c96 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.cpp.orig	2017-02-18 23:34:06.650717163 +0000
+--- plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.cpp.orig	2017-02-18 23:38:08.977162340 +0000
 +++ plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.cpp
 @@ -0,0 +1,38 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h
index 0c56640008..6c6ecd0abc 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_DialogMemoryAccess.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.h.orig	2017-02-18 23:34:04.145523175 +0000
+--- plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.h.orig	2017-02-18 23:38:08.983006475 +0000
 +++ plugins/DebuggerCore/unix/netbsd/DialogMemoryAccess.h
 @@ -0,0 +1,44 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp
index 8aceb44f89..41e6ecbef4 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/FeatureDetect.cpp.orig	2017-02-18 23:33:31.196464884 +0000
+--- plugins/DebuggerCore/unix/netbsd/FeatureDetect.cpp.orig	2017-02-18 23:38:08.988857610 +0000
 +++ plugins/DebuggerCore/unix/netbsd/FeatureDetect.cpp
 @@ -0,0 +1,174 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h
index 610cfacfda..2395732bb7 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_FeatureDetect.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/FeatureDetect.h.orig	2017-02-18 23:33:33.499776061 +0000
+--- plugins/DebuggerCore/unix/netbsd/FeatureDetect.h.orig	2017-02-18 23:38:08.994667137 +0000
 +++ plugins/DebuggerCore/unix/netbsd/FeatureDetect.h
 @@ -0,0 +1,30 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp
index 54127c6790..b52ef97677 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformCommon.cpp.orig	2017-02-18 23:32:09.435914446 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformCommon.cpp.orig	2017-02-18 23:38:09.000519219 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformCommon.cpp
 @@ -0,0 +1,189 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h
index 610a4694ea..8506f895ea 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformCommon.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformCommon.h.orig	2017-02-18 23:32:09.441357375 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformCommon.h.orig	2017-02-18 23:38:09.006355799 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformCommon.h
 @@ -0,0 +1,97 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp
index 7e03137175..5a01501d76 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformEvent.cpp.orig	2017-02-18 23:32:09.446839987 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformEvent.cpp.orig	2017-02-18 23:38:09.012246070 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformEvent.cpp
 @@ -0,0 +1,258 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h
index fb8c466098..baf687299c 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformEvent.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformEvent.h.orig	2017-02-18 23:32:09.452234186 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformEvent.h.orig	2017-02-18 23:38:09.018093120 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformEvent.h
 @@ -0,0 +1,62 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp
index 7a0a0484e0..52fffb0c3b 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformProcess.cpp.orig	2017-02-18 23:32:09.457680759 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformProcess.cpp.orig	2017-02-18 23:38:09.023930341 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformProcess.cpp
 @@ -0,0 +1,19 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h
index 46ebc2a94d..8867f33885 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformProcess.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformProcess.h.orig	2017-02-18 23:32:09.463008446 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformProcess.h.orig	2017-02-18 23:38:09.029764235 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformProcess.h
 @@ -0,0 +1,27 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp
index 9b24f7ec2a..3d1eb791fd 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformRegion.cpp.orig	2017-02-18 23:32:09.468423823 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformRegion.cpp.orig	2017-02-18 23:38:09.035605682 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformRegion.cpp
 @@ -0,0 +1,96 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h
index 9a3a579adb..31b9389961 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformRegion.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformRegion.h.orig	2017-02-18 23:32:09.473752076 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformRegion.h.orig	2017-02-18 23:38:09.041439017 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformRegion.h
 @@ -0,0 +1,67 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp
index d885e9d6af..ce05c1c0fa 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformState.cpp.orig	2017-02-18 23:32:09.479331154 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformState.cpp.orig	2017-02-18 23:38:09.047453851 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformState.cpp
 @@ -0,0 +1,392 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h
index 676307c7a9..0f96e56c1e 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformState.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformState.h.orig	2017-02-18 23:32:09.484809635 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformState.h.orig	2017-02-18 23:38:09.053334966 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformState.h
 @@ -0,0 +1,68 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp
index 84125fa1ea..cbf146f810 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.cpp
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformThread.cpp.orig	2017-02-18 23:33:06.436692657 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformThread.cpp.orig	2017-02-18 23:38:09.059301413 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformThread.cpp
 @@ -0,0 +1,444 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h
index 76f4dc779f..01aeb02b9e 100644
--- a/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h
+++ b/edb-debugger-git/patches/patch-plugins_DebuggerCore_unix_netbsd_PlatformThread.h
@@ -1,6 +1,6 @@
 $NetBSD$
 
---- plugins/DebuggerCore/unix/netbsd/PlatformThread.h.orig	2017-02-18 23:33:04.164504158 +0000
+--- plugins/DebuggerCore/unix/netbsd/PlatformThread.h.orig	2017-02-18 23:38:09.065227113 +0000
 +++ plugins/DebuggerCore/unix/netbsd/PlatformThread.h
 @@ -0,0 +1,89 @@
 +/*
diff --git a/edb-debugger-git/patches/patch-src_Debugger.cpp b/edb-debugger-git/patches/patch-src_Debugger.cpp
index 6021392b5a..e477fa9669 100644
--- a/edb-debugger-git/patches/patch-src_Debugger.cpp
+++ b/edb-debugger-git/patches/patch-src_Debugger.cpp
@@ -11,7 +11,75 @@ $NetBSD$
  #include <unistd.h>
  #include <fcntl.h>
  #endif
-@@ -533,7 +533,7 @@ QString Debugger::create_tty() {
+@@ -105,6 +105,7 @@ const quint64 ld_loader_tag     = Q_UINT
+ 
+ template <class Addr>
+ void handle_library_event(IProcess *process, edb::address_t debug_pointer) {
++#if defined(Q_OS_LINUX)
+ 	edb::linux::r_debug<Addr> dynamic_info;
+ 	const bool ok = process->read_bytes(debug_pointer, &dynamic_info, sizeof(dynamic_info));
+ 	if(ok) {
+@@ -130,11 +131,40 @@ void handle_library_event(IProcess *proc
+ 			break;
+ 		}
+ 	}
++#elif defined(Q_OS_NETBSD)
++	edb::netbsd::r_debug<Addr> dynamic_info;
++	const bool ok = process->read_bytes(debug_pointer, &dynamic_info, sizeof(dynamic_info));
++	if(ok) {
++
++		// NOTE(eteran): at least on my system, the name of
++		//               what is being loaded is either in
++		//               r8 or r13 depending on which event
++		//               we are looking at.
++		// TODO(eteran): find a way to get the name reliably
++
++		switch(dynamic_info.r_state) {
++		case edb::netbsd::r_debug<Addr>::RT_CONSISTENT:
++			// TODO(eteran): enable this once we are confident
++	#if 0
++			edb::v1::memory_regions().sync();
++	#endif
++			break;
++		case edb::netbsd::r_debug<Addr>::RT_ADD:
++			//qDebug("LIBRARY LOAD EVENT");
++			break;
++		case edb::netbsd::r_debug<Addr>::RT_DELETE:
++			//qDebug("LIBRARY UNLOAD EVENT");
++			break;
++		}
++	}
++#else
++#error portme
++#endif
+ }
+ 
+ template <class Addr>
+ edb::address_t find_linker_hook_address(IProcess *process, edb::address_t debug_pointer) {
+-
++#if defined(Q_OS_LINUX)
+ 	edb::linux::r_debug<Addr> dynamic_info;
+ 	const bool ok = process->read_bytes(debug_pointer, &dynamic_info, sizeof(dynamic_info));
+ 	if(ok) {
+@@ -142,6 +172,17 @@ edb::address_t find_linker_hook_address(
+ 	}
+ 
+ 	return 0;
++#elif defined(Q_OS_NETBSD)
++	edb::netbsd::r_debug<Addr> dynamic_info;
++	const bool ok = process->read_bytes(debug_pointer, &dynamic_info, sizeof(dynamic_info));
++	if(ok) {
++		return edb::address_t::fromZeroExtended(dynamic_info.r_brk);
++	}
++
++	return 0;
++#else
++#error portme
++#endif
+ }
+ 
+ //--------------------------------------------------------------------------
+@@ -533,7 +574,7 @@ QString Debugger::create_tty() {
  
  	QString result_tty = tty_file_;
  


Home | Main Index | Thread Index | Old Index