diff options
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; |