From b1d5f5c7a682f934ce295c689dcbf0cb9539c960 Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Sat, 23 Mar 2019 19:47:41 +0000 Subject: [PATCH] fix macOS build --- dka64/patches/gdb-8.2.1.patch | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/dka64/patches/gdb-8.2.1.patch b/dka64/patches/gdb-8.2.1.patch index 0405bc4..73660ff 100644 --- a/dka64/patches/gdb-8.2.1.patch +++ b/dka64/patches/gdb-8.2.1.patch @@ -1,6 +1,18 @@ +diff -NBaur gdb-8.2.1/gdb/dtrace-probe.c gdb-8.2.1-apple/gdb/dtrace-probe.c +--- gdb-8.2.1/gdb/dtrace-probe.c 2018-12-23 05:51:54.000000000 +0000 ++++ gdb-8.2.1-apple/gdb/dtrace-probe.c 2019-03-23 19:45:04.743529457 +0000 +@@ -100,7 +100,7 @@ + + /* DTrace static_probe_ops. */ + +-const dtrace_static_probe_ops dtrace_static_probe_ops; ++const dtrace_static_probe_ops dtrace_static_probe_ops = {}; + + /* The following structure represents a dtrace probe. */ + diff -NBaur gdb-8.2.1/gdb/probe.c gdb-8.2.1-apple/gdb/probe.c --- gdb-8.2.1/gdb/probe.c 2018-12-23 05:51:54.000000000 +0000 -+++ gdb-8.2.1-apple/gdb/probe.c 2019-02-19 17:31:05.266578008 +0000 ++++ gdb-8.2.1-apple/gdb/probe.c 2019-03-23 19:35:59.701401090 +0000 @@ -60,7 +60,7 @@ /* Static operations associated with a generic probe. */ @@ -12,7 +24,7 @@ diff -NBaur gdb-8.2.1/gdb/probe.c gdb-8.2.1-apple/gdb/probe.c SEARCH_PSPACE. It appends matching SALs to RESULT. */ diff -NBaur gdb-8.2.1/gdb/record-btrace.c gdb-8.2.1-apple/gdb/record-btrace.c --- gdb-8.2.1/gdb/record-btrace.c 2018-12-23 05:51:54.000000000 +0000 -+++ gdb-8.2.1-apple/gdb/record-btrace.c 2019-02-19 17:31:33.301731324 +0000 ++++ gdb-8.2.1-apple/gdb/record-btrace.c 2019-03-23 19:35:59.705388987 +0000 @@ -144,7 +144,7 @@ /* Token associated with a new-thread observer enabling branch tracing @@ -24,7 +36,7 @@ diff -NBaur gdb-8.2.1/gdb/record-btrace.c gdb-8.2.1-apple/gdb/record-btrace.c static const char replay_memory_access_read_only[] = "read-only"; diff -NBaur gdb-8.2.1/gdb/stap-probe.c gdb-8.2.1-apple/gdb/stap-probe.c --- gdb-8.2.1/gdb/stap-probe.c 2018-12-23 05:51:54.000000000 +0000 -+++ gdb-8.2.1-apple/gdb/stap-probe.c 2019-02-19 17:29:35.744567941 +0000 ++++ gdb-8.2.1-apple/gdb/stap-probe.c 2019-03-23 19:35:59.705388987 +0000 @@ -119,7 +119,7 @@ /* SystemTap static_probe_ops. */ @@ -36,7 +48,7 @@ diff -NBaur gdb-8.2.1/gdb/stap-probe.c gdb-8.2.1-apple/gdb/stap-probe.c { diff -NBaur gdb-8.2.1/gdb/tui/tui-hooks.c gdb-8.2.1-apple/gdb/tui/tui-hooks.c --- gdb-8.2.1/gdb/tui/tui-hooks.c 2018-12-23 05:51:54.000000000 +0000 -+++ gdb-8.2.1-apple/gdb/tui/tui-hooks.c 2019-02-19 17:28:53.178460364 +0000 ++++ gdb-8.2.1-apple/gdb/tui/tui-hooks.c 2019-03-23 19:35:59.705388987 +0000 @@ -205,7 +205,7 @@ /* Token associated with observers registered while TUI hooks are