aboutsummaryrefslogtreecommitdiff
path: root/gdb/csky-tdep.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-08-31 15:42:43 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-10-02 14:21:25 +0100
commit637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2 (patch)
tree3d2f7482d06adeecbfddada36372cb20a3c70a12 /gdb/csky-tdep.c
parent9b9e61c7cf49abdf9c2703c4d1f555d762c6e49f (diff)
downloadgdb-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.zip
gdb-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.tar.gz
gdb-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.tar.bz2
gdb: update now gdbarch_register_name doesn't return nullptr
After the previous few commit, gdbarch_register_name no longer returns nullptr. This commit audits all the calls to gdbarch_register_name and removes any code that checks the result against nullptr. There should be no visible change after this commit.
Diffstat (limited to 'gdb/csky-tdep.c')
-rw-r--r--gdb/csky-tdep.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/csky-tdep.c b/gdb/csky-tdep.c
index 17820aa..cc88120 100644
--- a/gdb/csky-tdep.c
+++ b/gdb/csky-tdep.c
@@ -2353,8 +2353,7 @@ csky_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
{
int raw_p;
- if (gdbarch_register_name (gdbarch, regnum) == NULL
- || gdbarch_register_name (gdbarch, regnum)[0] == '\0')
+ if (gdbarch_register_name (gdbarch, regnum)[0] == '\0')
return 0;
if (reggroup == all_reggroup)