arch_string.
* win32-i386-low.c (win32_arch_string): New.
(win32_target_ops): Add win32_arch_string as arch_string member.
+2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
+
+ * server.c (get_features_xml): Check if target implemented
+ arch_string.
+ * win32-i386-low.c (win32_arch_string): New.
+ (win32_target_ops): Add win32_arch_string as arch_string member.
+
2007-02-22 Markus Deuling <deuling@de.ibm.com>
* spu-low.c (spu_arch_string): New.
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;
return child_xfer_memory (memaddr, (char *) myaddr, len, 1, 0) != len;
}
+static const char *
+win32_arch_string (void)
+{
+ return "i386";
+}
+
static struct target_ops win32_target_ops = {
win32_create_inferior,
win32_attach,
win32_store_inferior_registers,
win32_read_inferior_memory,
win32_write_inferior_memory,
- 0,
- 0
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ win32_arch_string
};
/* Initialize the Win32 backend. */