pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
edb-debugger: Add initial patchset for the NetBSD platform
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Jan 7 03:50:57 2016 +0100
Changeset: 81884f9b300873573503530dc5fe50a83999736e
Modified Files:
edb-debugger/distinfo
Added Files:
edb-debugger/patches/patch-plugins_BinaryInfo_ELF32.cpp
edb-debugger/patches/patch-plugins_BinaryInfo_ELF64.cpp
edb-debugger/patches/patch-plugins_HeapAnalyzer_DialogHeap.cpp
edb-debugger/patches/patch-plugins_ProcessProperties_DialogProcessProperties.cpp
edb-debugger/patches/patch-src_Debugger.cpp
Log Message:
edb-debugger: Add initial patchset for the NetBSD platform
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=81884f9b300873573503530dc5fe50a83999736e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
edb-debugger/distinfo | 5 +++++
.../patches/patch-plugins_BinaryInfo_ELF32.cpp | 13 +++++++++++++
.../patches/patch-plugins_BinaryInfo_ELF64.cpp | 13 +++++++++++++
.../patch-plugins_HeapAnalyzer_DialogHeap.cpp | 22 ++++++++++++++++++++++
...s_ProcessProperties_DialogProcessProperties.cpp | 13 +++++++++++++
edb-debugger/patches/patch-src_Debugger.cpp | 22 ++++++++++++++++++++++
6 files changed, 88 insertions(+)
diffs:
diff --git a/edb-debugger/distinfo b/edb-debugger/distinfo
index 6c3735c..d9ab5ce 100644
--- a/edb-debugger/distinfo
+++ b/edb-debugger/distinfo
@@ -4,3 +4,8 @@ SHA1 (debugger-0.9.20.tgz) = 4a0c839caab185bf8834725f3ae6fab79b11b816
RMD160 (debugger-0.9.20.tgz) = 0302f5e3d26d6ae23c549113021cce442d5e3483
SHA512 (debugger-0.9.20.tgz) = c65c023c351ee7aee47dbb743a6e84e9b9c680e9eef39caa1a873903c53aa48b451ea92b5363720d55277d81ca8a95741c0777a2748da9fb6d09957ff000ecb1
Size (debugger-0.9.20.tgz) = 791820 bytes
+SHA1 (patch-plugins_BinaryInfo_ELF32.cpp) = bf9ea68d80be00f4ccfdbeecdb774916a8491954
+SHA1 (patch-plugins_BinaryInfo_ELF64.cpp) = 255a25419ec7eaaa3231eb168c7dac2c92430fbe
+SHA1 (patch-plugins_HeapAnalyzer_DialogHeap.cpp) = 7e58098de5024568ad5db428d772507283d83d31
+SHA1 (patch-plugins_ProcessProperties_DialogProcessProperties.cpp) = b115da629d9cc9342d360765866c6d5059fd774b
+SHA1 (patch-src_Debugger.cpp) = ba7425b45916b72e6ed81f01b413d03989dcac9f
diff --git a/edb-debugger/patches/patch-plugins_BinaryInfo_ELF32.cpp b/edb-debugger/patches/patch-plugins_BinaryInfo_ELF32.cpp
new file mode 100644
index 0000000..07f8129
--- /dev/null
+++ b/edb-debugger/patches/patch-plugins_BinaryInfo_ELF32.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- plugins/BinaryInfo/ELF32.cpp.orig 2014-01-08 02:59:13.000000000 +0000
++++ plugins/BinaryInfo/ELF32.cpp
+@@ -28,7 +28,7 @@ along with this program. If not, see <h
+ #include <QFile>
+ #include <cstring>
+
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ #include <link.h>
+ #endif
+
diff --git a/edb-debugger/patches/patch-plugins_BinaryInfo_ELF64.cpp b/edb-debugger/patches/patch-plugins_BinaryInfo_ELF64.cpp
new file mode 100644
index 0000000..c08bcf9
--- /dev/null
+++ b/edb-debugger/patches/patch-plugins_BinaryInfo_ELF64.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- plugins/BinaryInfo/ELF64.cpp.orig 2014-01-08 02:59:13.000000000 +0000
++++ plugins/BinaryInfo/ELF64.cpp
+@@ -28,7 +28,7 @@ along with this program. If not, see <h
+ #include <QFile>
+ #include <cstring>
+
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ #include <link.h>
+ #endif
+
diff --git a/edb-debugger/patches/patch-plugins_HeapAnalyzer_DialogHeap.cpp b/edb-debugger/patches/patch-plugins_HeapAnalyzer_DialogHeap.cpp
new file mode 100644
index 0000000..74eb963
--- /dev/null
+++ b/edb-debugger/patches/patch-plugins_HeapAnalyzer_DialogHeap.cpp
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- plugins/HeapAnalyzer/DialogHeap.cpp.orig 2014-01-08 04:14:36.000000000 +0000
++++ plugins/HeapAnalyzer/DialogHeap.cpp
+@@ -263,7 +263,7 @@ void DialogHeap::collect_blocks(edb::add
+ const int min_string_length = edb::v1::config().min_string_length;
+
+ if(start_address != 0 && end_address != 0) {
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ malloc_chunk currentChunk;
+ malloc_chunk nextChunk;
+ edb::address_t currentChunkAddress = start_address;
+@@ -412,7 +412,7 @@ void DialogHeap::do_find() {
+ QString ldName;
+
+ get_library_names(&libcName, &ldName);
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ s = edb::v1::symbol_manager().find(libcName + "::__curbrk");
+ if(s) {
+ end_address = s->address;
diff --git a/edb-debugger/patches/patch-plugins_ProcessProperties_DialogProcessProperties.cpp b/edb-debugger/patches/patch-plugins_ProcessProperties_DialogProcessProperties.cpp
new file mode 100644
index 0000000..eaaeb07
--- /dev/null
+++ b/edb-debugger/patches/patch-plugins_ProcessProperties_DialogProcessProperties.cpp
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- plugins/ProcessProperties/DialogProcessProperties.cpp.orig 2014-01-08 04:19:31.000000000 +0000
++++ plugins/ProcessProperties/DialogProcessProperties.cpp
+@@ -34,7 +34,7 @@ along with this program. If not, see <h
+ #include <QStringListModel>
+ #include <QUrl>
+
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ #include <link.h>
+ #include <arpa/inet.h>
+ #endif
diff --git a/edb-debugger/patches/patch-src_Debugger.cpp b/edb-debugger/patches/patch-src_Debugger.cpp
new file mode 100644
index 0000000..938bdd5
--- /dev/null
+++ b/edb-debugger/patches/patch-src_Debugger.cpp
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- src/Debugger.cpp.orig 2014-01-14 17:26:29.000000000 +0000
++++ src/Debugger.cpp
+@@ -77,7 +77,7 @@ along with this program. If not, see <h
+
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#if defined(Q_OS_LINUX) || defined(Q_OS_OPENBSD)
++#if defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
+ #include <unistd.h>
+ #endif
+
+@@ -314,7 +314,7 @@ void Debugger::update_menu_state(GUI_STA
+ // Desc: creates a TTY object for our command line I/O
+ //------------------------------------------------------------------------------
+ QString Debugger::create_tty() {
+-#if defined(Q_OS_LINUX) || defined(Q_OS_OPENBSD) || defined(Q_OS_FREEBSD)
++#if defined(Q_OS_LINUX) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_FREEBSD)
+ // we attempt to reuse an open output window
+ if(edb::v1::config().tty_enabled && tty_proc_->state() != QProcess::Running) {
+ const QString command = edb::v1::config().tty_command;
Home |
Main Index |
Thread Index |
Old Index