From 89e94ec9af58bfab38d469fe42c3eaf2aeb35e31 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 13 Jan 2020 14:03:18 -0500 Subject: [PATCH] gdbserver: include gdbsupport/common-inferior.h in inferiors.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit So that the definitions of get_inferior_cwd/set_inferior_cwd see their declarations. CXX inferiors.o /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c: In function ‘const char* get_inferior_cwd()’: /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c:228:1: error: no previous declaration for ‘const char* get_inferior_cwd()’ [-Werror=missing-declarations] get_inferior_cwd () ^~~~~~~~~~~~~~~~ /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c: In function ‘void set_inferior_cwd(const char*)’: /home/smarchi/src/binutils-gdb/gdb/gdbserver/inferiors.c:236:1: error: no previous declaration for ‘void set_inferior_cwd(const char*)’ [-Werror=missing-declarations] set_inferior_cwd (const char *cwd) ^~~~~~~~~~~~~~~~ gdb/gdbserver/ChangeLog: * inferiors.c: Include gdbsupport/common-inferior.h. Change-Id: Iae5ccb3e1dc37ce79f03f08465f603a0411e7af0 --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/inferiors.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index ad176c7add0..bd9280f3c91 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2020-01-13 Simon Marchi + + * inferiors.c: Include gdbsupport/common-inferior.h. + 2020-01-13 Simon Marchi * hostio-errno.c: Include hostio.h. diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index cf6e914863b..88adb16eac2 100644 --- a/gdb/gdbserver/inferiors.c +++ b/gdb/gdbserver/inferiors.c @@ -19,6 +19,7 @@ along with this program. If not, see . */ #include "server.h" +#include "gdbsupport/common-inferior.h" #include "gdbthread.h" #include "dll.h" -- 2.30.2