This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Include xml-support.h to get a variable declaration


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]