diff options
author | Pedro Alves <palves@redhat.com> | 2007-02-25 17:40:10 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-02-25 17:40:10 +0000 |
commit | 820f2bda8e60b9fa27458fb5b68cebc062ec5e7d (patch) | |
tree | d47a87d322ca048e040429c56674001c98ef426a /gdb/gdbserver/server.c | |
parent | 5235524473b7f8d4b2f1b81d38d6173fb3d25ee0 (diff) | |
download | gdb-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/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index db2bfca..b0a957f 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -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; |