aboutsummaryrefslogtreecommitdiff
path: root/gdb/reggroups.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/reggroups.c
parent9b9e61c7cf49abdf9c2703c4d1f555d762c6e49f (diff)
downloadfsf-binutils-gdb-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.zip
fsf-binutils-gdb-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.tar.gz
fsf-binutils-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/reggroups.c')
-rw-r--r--gdb/reggroups.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/reggroups.c b/gdb/reggroups.c
index b81031b..8e4af30 100644
--- a/gdb/reggroups.c
+++ b/gdb/reggroups.c
@@ -146,8 +146,7 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
int float_p;
int raw_p;
- if (gdbarch_register_name (gdbarch, regnum) == NULL
- || *gdbarch_register_name (gdbarch, regnum) == '\0')
+ if (*gdbarch_register_name (gdbarch, regnum) == '\0')
return 0;
if (group == all_reggroup)
return 1;