* server.c (get_features_xml): Check if target implemented
[deliverable/binutils-gdb.git] / gdb / gdbserver / server.c
index db2bfca8af34ebd2e9276a6a9d85fcdeb907860b..b0a957f5cbc77fe6d148297a6160201a86aa76c6 100644 (file)
@@ -216,7 +216,9 @@ get_features_xml (const char *annex)
 
   if (features_supported == -1)
     {
-      const char *arch = (*the_target->arch_string) ();
+      const char *arch = NULL;
+      if (the_target->arch_string != NULL)
+       arch = (*the_target->arch_string) ();
 
       if (arch == NULL)
        features_supported = 0;
This page took 0.024322 seconds and 4 git commands to generate.