This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Include xml-support.h to get a variable declaration
- From: "Christian Biesinger via gdb-patches" <gdb-patches at sourceware dot org>
- To: gdb-patches at sourceware dot org
- Cc: Christian Biesinger <cbiesinger at google dot com>
- Date: Mon, 7 Oct 2019 14:06:31 -0500
- Subject: [PATCH] Include xml-support.h to get a variable declaration
- Reply-to: Christian Biesinger <cbiesinger at google dot com>
Instead of declaring xml_builtin as an extern variable
in the .c file.
gdb/gdbserver/ChangeLog:
2019-10-07 Christian Biesinger <cbiesinger@google.com>
* 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. */
--
2.23.0.581.g78d2f28ef7-goog