Fix gdb build on macOS
authorTom Tromey <tromey@adacore.com>
Wed, 14 Aug 2019 14:40:18 +0000 (08:40 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 14 Aug 2019 14:40:18 +0000 (08:40 -0600)
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
gdb/darwin-nat-info.c
gdb/darwin-nat.c

index 1b7dabb6aadcdc67ffb8f58ca192cb280fe5d658..15904da82cb9f5556693f6f852922ec77196e9e6 100644 (file)
@@ -1,3 +1,8 @@
+2019-08-14  Tom Tromey  <tromey@adacore.com>
+
+       * darwin-nat.c: Include gdbarch.h.
+       * darwin-nat-info.c: Include gdbarch.h.
+
 2019-08-13  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
index 103ac2a9773406749aaa2a4204200c8709393ec7..4469cd52136f3c11cb94efba50e390b273cdfc20 100644 (file)
@@ -34,6 +34,7 @@
 #include "value.h"
 #include "gdbcmd.h"
 #include "inferior.h"
+#include "gdbarch.h"
 
 #include <sys/sysctl.h>
 
index f890e13944c5e52cbbad6258ba2ea4e0be32de0e..8f71def069de255a2f6f2fa90684bf23a8b9edb6 100644 (file)
@@ -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>
This page took 0.03084 seconds and 4 git commands to generate.