edb-debugger-git: Initial NetBSD port

This commit is contained in:
Kamil Rytarowski 2017-02-18 23:52:02 +01:00
parent 56a7017a90
commit 326adb9104
4 changed files with 60 additions and 0 deletions

View File

@ -4,3 +4,6 @@ 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-plugins_HeapAnalyzer_DialogHeap.cpp) = a11c5aeb91168f4bf2f58fa35137fec2d5107ea4
SHA1 (patch-plugins_ProcessProperties_DialogProcessProperties.cpp) = 31d9915e63a963fdd597dc141e3424fa8f05e81b
SHA1 (patch-src_Debugger.cpp) = 6e680dfecf7fe690c3d557002515f21313b85ca7

View File

@ -0,0 +1,22 @@
$NetBSD$
--- plugins/HeapAnalyzer/DialogHeap.cpp.orig 2017-02-18 21:21:09.000000000 +0000
+++ plugins/HeapAnalyzer/DialogHeap.cpp
@@ -277,7 +277,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_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
malloc_chunk<Addr> currentChunk;
malloc_chunk<Addr> nextChunk;
edb::address_t currentChunkAddress = start_address;
@@ -426,7 +426,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_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
Symbol::pointer s = edb::v1::symbol_manager().find(libcName + "::__curbrk");
if(s) {
end_address = s->address;

View File

@ -0,0 +1,13 @@
$NetBSD$
--- plugins/ProcessProperties/DialogProcessProperties.cpp.orig 2017-02-18 21:21:09.000000000 +0000
+++ plugins/ProcessProperties/DialogProcessProperties.cpp
@@ -35,7 +35,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_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_OPENBSD)
#include <link.h>
#include <arpa/inet.h>
#endif

View File

@ -0,0 +1,22 @@
$NetBSD$
--- src/Debugger.cpp.orig 2017-02-18 21:21:09.000000000 +0000
+++ src/Debugger.cpp
@@ -78,7 +78,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>
#include <fcntl.h>
#endif
@@ -533,7 +533,7 @@ QString Debugger::create_tty() {
QString result_tty = tty_file_;
-#if defined(Q_OS_LINUX) || defined(Q_OS_OPENBSD) || defined(Q_OS_FREEBSD)
+#if defined(Q_OS_LINUX) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) || 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;