From patchwork Fri Jan 10 22:00:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 37291 Received: (qmail 72431 invoked by alias); 10 Jan 2020 22:00:44 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 72364 invoked by uid 89); 10 Jan 2020 22:00:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail.efficios.com Received: from mail.efficios.com (HELO mail.efficios.com) (167.114.142.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Jan 2020 22:00:41 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 05BF36960FF for ; Fri, 10 Jan 2020 17:00:40 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id RKHGZEnA0mmS; Fri, 10 Jan 2020 17:00:39 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 5BA086960C2; Fri, 10 Jan 2020 17:00:36 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 5BA086960C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1578693636; bh=AsBd+occXAdJDKftgWo15u6FVzaiMHbSvqt2OgRKtOI=; h=From:To:Date:Message-Id:MIME-Version; b=LfI7suqaJeEfKu9SaBdvunhZqADi8MONtf8nvl/HHqIs4HOQNYAA+sdaNXE8Ugows LMBBBMebcUia0cZ/5814f7iReD8dEAklCV8bIBtPWSMllau50NTR3oFZ/2XdPI4bib sgdvxZsS9d75w+h2r1Gle44+JOJd7IpHzyEX8D+BYrVH/M/NTxIgiByn7uQIJQaz/M US8BlngZWK6sBT7xxwl2KQJYWj8cNY47MRE8zO63Vu0JBCdmdVCajrfNQbap9brLkx o5cLiTF+bvXu3TxgtVf9ieuowZt3IQYN2YpEVgPsj26+XOGtjJTjNQ9JGy0bSUfrSh sm9BhF7cr9K7A== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id 78wy2_k2ks76; Fri, 10 Jan 2020 17:00:36 -0500 (EST) Received: from smarchi-efficios.internal.efficios.com (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) by mail.efficios.com (Postfix) with ESMTPSA id B05386960AA; Fri, 10 Jan 2020 17:00:35 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH v2 4/7] gdbserver: include gdbsupport/common-inferior.h in inferiors.c Date: Fri, 10 Jan 2020 17:00:24 -0500 Message-Id: <20200110220027.26450-5-simon.marchi@efficios.com> In-Reply-To: <20200110220027.26450-1-simon.marchi@efficios.com> References: <20200110220027.26450-1-simon.marchi@efficios.com> MIME-Version: 1.0 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/inferiors.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/gdbserver/inferiors.c b/gdb/gdbserver/inferiors.c index cf6e914863b6..88adb16eac20 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"