This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] darwin-nat: Add missing include
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 13 Jun 2017 19:38:08 -0000
- Subject: [binutils-gdb] darwin-nat: Add missing include
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=01ec7a272201de84be1ca2c557e58d97891f288c
commit 01ec7a272201de84be1ca2c557e58d97891f288c
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Tue Jun 13 21:14:50 2017 +0200
darwin-nat: Add missing include
I forgot this one, which is kind of related.
The function trace_start_error_with_name has moved in commit "Share
fork_inferior et al with gdbserver", so this additional include is
needed.
Fixes:
darwin-nat.c:1735:5: error: use of undeclared identifier 'trace_start_error_with_name'
trace_start_error_with_name ("close");
gdb/ChangeLog:
* darwin-nat.c: Include "nat/fork-inferior.h".
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/darwin-nat.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a8219dd..8eb9e06 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
+ * darwin-nat.c: Include "nat/fork-inferior.h".
+
+2017-06-13 Simon Marchi <simon.marchi@ericsson.com>
+
* configure.nat: Factor out Darwin bits that are not
architecture-specific. Add fork-inferior.o.
diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c
index 4330a60..cd67249 100644
--- a/gdb/darwin-nat.c
+++ b/gdb/darwin-nat.c
@@ -63,6 +63,7 @@
#include "darwin-nat.h"
#include "common/filestuff.h"
+#include "nat/fork-inferior.h"
/* Quick overview.
Darwin kernel is Mach + BSD derived kernel. Note that they share the