From patchwork Mon Oct 7 19:06:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 34856 Received: (qmail 120145 invoked by alias); 7 Oct 2019 19:06:36 -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 119912 invoked by uid 89); 7 Oct 2019 19:06:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:6214, serverc, server.c, UD:server.c X-HELO: mail-qk1-f202.google.com Received: from mail-qk1-f202.google.com (HELO mail-qk1-f202.google.com) (209.85.222.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Oct 2019 19:06:35 +0000 Received: by mail-qk1-f202.google.com with SMTP id x77so15928329qka.11 for ; Mon, 07 Oct 2019 12:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=kVxEGwgfdMeh6ZRkIZcpF0mSL3s1IoB9zhrv3dJoYXM=; b=V6Nud1fHnG8pSUaRDbKtkKraijQxljBBALUgSkFsqVfx2Gdw5bNj4znZ+YdhjXThzW etxhYxw0RYbdpuUugZiZnrpUvmxVQx7pr6VfmuzYIihs2nadScQxnhq7gVbIu11Vn//p KajOVSI7S9ivuq0lqUMLs8qfN8s6sw0bzXJ3hyxtqsFNWrxe64uhtpd30QuwzjjSd3IZ ErXZRaOAOd/HqvQoGBZcBNK/FdI3mIIOctQkzdYVpSxZaUaQJw5wlBrc3IIJAggL/Jlu LND+tSYdlZt703YaqzrSV2bhK9K36tqBhpXTTY5ftY6kYr51gg8b4vx32tN+O9/c9J43 9zvQ== Date: Mon, 7 Oct 2019 14:06:31 -0500 Message-Id: <20191007190631.47743-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH] Include xml-support.h to get a variable declaration X-Patchwork-Original-From: "Christian Biesinger via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger X-IsSubscribed: yes Instead of declaring xml_builtin as an extern variable in the .c file. gdb/gdbserver/ChangeLog: 2019-10-07 Christian Biesinger * server.c (get_features_xml): Remove declaration of xml_builtin in favor of including xml-support.h. --- gdb/gdbserver/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 0bfff04fd7..da20340b7a 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -45,6 +45,10 @@ #include "gdbsupport/selftest.h" #include "gdbsupport/scope-exit.h" +#ifdef USE_XML +#include "xml-support.h" +#endif + #define require_running_or_return(BUF) \ if (!target_running ()) \ { \ @@ -920,7 +924,6 @@ get_features_xml (const char *annex) #ifdef USE_XML { - extern const char *const xml_builtin[][2]; int i; /* Look for the annex. */