aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/win32-i386-low.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-02-25 17:40:10 +0000
committerPedro Alves <palves@redhat.com>2007-02-25 17:40:10 +0000
commit820f2bda8e60b9fa27458fb5b68cebc062ec5e7d (patch)
treed47a87d322ca048e040429c56674001c98ef426a /gdb/gdbserver/win32-i386-low.c
parent5235524473b7f8d4b2f1b81d38d6173fb3d25ee0 (diff)
downloadgdb-820f2bda8e60b9fa27458fb5b68cebc062ec5e7d.zip
gdb-820f2bda8e60b9fa27458fb5b68cebc062ec5e7d.tar.gz
gdb-820f2bda8e60b9fa27458fb5b68cebc062ec5e7d.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver/win32-i386-low.c')
-rw-r--r--gdb/gdbserver/win32-i386-low.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/gdb/gdbserver/win32-i386-low.c b/gdb/gdbserver/win32-i386-low.c
index 817eb37..6823b54 100644
--- a/gdb/gdbserver/win32-i386-low.c
+++ b/gdb/gdbserver/win32-i386-low.c
@@ -1054,6 +1054,12 @@ win32_write_inferior_memory (CORE_ADDR memaddr, const unsigned char *myaddr,
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,
@@ -1066,8 +1072,16 @@ static struct target_ops win32_target_ops = {
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. */