aboutsummaryrefslogtreecommitdiff
path: root/gdb/csky-tdep.c
diff options
context:
space:
mode:
authorJiangshuai Li <jiangshuai_li@c-sky.com>2021-07-15 15:22:11 +0800
committerAndrew Burgess <andrew.burgess@embecosm.com>2021-08-12 09:47:06 +0100
commitb2ee4824b177a359c2db590a9978418211435011 (patch)
tree406cc6cb236b221eaa32065f54f27b290bc161d9 /gdb/csky-tdep.c
parent6e425ff4bfa87ef02f88334262f71a964673dfa7 (diff)
downloadgdb-b2ee4824b177a359c2db590a9978418211435011.zip
gdb-b2ee4824b177a359c2db590a9978418211435011.tar.gz
gdb-b2ee4824b177a359c2db590a9978418211435011.tar.bz2
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 <jiangshuai_li@c-sky.com> * csky-tdep.c : not using tdesc funtions in csky_register_name
Diffstat (limited to 'gdb/csky-tdep.c')
-rw-r--r--gdb/csky-tdep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index 5940429..657ba75 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;