This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[FYI] Fix gdb build on macOS
- From: Tom Tromey <tromey at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at adacore dot com>
- Date: Wed, 14 Aug 2019 08:41:30 -0600
- Subject: [FYI] Fix gdb build on macOS
Internal testing showed that the macOS port did not build. The
breakage was caused by the patch to remove the gdbarch.h include from
defs.h. This patch fixes the problem.
gdb/ChangeLog
2019-08-14 Tom Tromey <tromey@adacore.com>
* darwin-nat.c: Include gdbarch.h.
* darwin-nat-info.c: Include gdbarch.h.
---
gdb/ChangeLog | 5 +++++
gdb/darwin-nat-info.c | 1 +
gdb/darwin-nat.c | 1 +
3 files changed, 7 insertions(+)
diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c
index 103ac2a9773..4469cd52136 100644
--- a/gdb/darwin-nat-info.c
+++ b/gdb/darwin-nat-info.c
@@ -34,6 +34,7 @@
#include "value.h"
#include "gdbcmd.h"
#include "inferior.h"
+#include "gdbarch.h"
#include <sys/sysctl.h>
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index f890e13944c..8f71def069d 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -37,6 +37,7 @@
#include "arch-utils.h"
#include "bfd.h"
#include "bfd/mach-o.h"
+#include "gdbarch.h"
#include <copyfile.h>
#include <sys/ptrace.h>
--
2.20.1