public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Include xml-support.h to get a variable declaration
@ 2019-10-07 19:06 Christian Biesinger via gdb-patches
  2019-10-09 17:47 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Biesinger via gdb-patches @ 2019-10-07 19:06 UTC (permalink / raw)
  To: gdb-patches; +Cc: Christian Biesinger

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-10  2:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-07 19:06 [PATCH] Include xml-support.h to get a variable declaration Christian Biesinger via gdb-patches
2019-10-09 17:47 ` Tom Tromey
2019-10-10  2:44   ` [PATCH v2] Create xml-builtin.h to declare xml_builtins cbiesinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).