mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
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
This commit is contained in:
parent
6e425ff4bf
commit
b2ee4824b1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user