From: Jiangshuai Li Date: Thu, 15 Jul 2021 07:22:11 +0000 (+0800) Subject: gdb:csky rm tdesc_has_registers in csky_register_name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2ee4824b177a359c2db590a9978418211435011;p=binutils-gdb.git gdb:csky rm tdesc_has_registers in csky_register_name As CSKY arch has not parsed target-description.xml in csky_gdbarch_init, when a remote server, like csky-qemu or gdbserver, send a target-description.xml to gdb, tdesc_has_registers will return ture, but tdesc_register_name (gdbarch, 0) will return NULL, so a cmd "info registers r0" will not work. Function of parsing target-description.xml will be add later for CSKY arch, now it is temporarily removed to allow me to do other supported tests. 2021-07-15 Jiangshuai Li * csky-tdep.c : not using tdesc funtions in csky_register_name --- diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c index 5940429e192..657ba75d080 100644 --- a/gdb/csky-tdep.c +++ b/gdb/csky-tdep.c @@ -235,9 +235,6 @@ static const char * const csky_register_names[] = static const char * csky_register_name (struct gdbarch *gdbarch, int reg_nr) { - if (tdesc_has_registers (gdbarch_target_desc (gdbarch))) - return tdesc_register_name (gdbarch, reg_nr); - if (reg_nr < 0) return NULL;