darwin-nat: Add missing include
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 13 Jun 2017 19:14:50 +0000 (21:14 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 13 Jun 2017 19:14:50 +0000 (21:14 +0200)
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".

gdb/ChangeLog
gdb/darwin-nat.c

index a8219dd35c00b10fa4a552d7f4293a978537843d..8eb9e06a32e0df018c69b325e3872e870b4a7584 100644 (file)
@@ -1,3 +1,7 @@
+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
index 4330a60a73e38a60f59ddf3de07d04f39c02337a..cd6724904d6f77e88f41e333ef1f49cfb220ad20 100644 (file)
@@ -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