diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-08-31 15:42:43 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-02 14:21:25 +0100 |
commit | 637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2 (patch) | |
tree | 3d2f7482d06adeecbfddada36372cb20a3c70a12 /gdb/valops.c | |
parent | 9b9e61c7cf49abdf9c2703c4d1f555d762c6e49f (diff) | |
download | binutils-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.zip binutils-637b2f86138a8ec0ab0fe89d3e4c5c111559d7f2.tar.gz binutils-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/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index b4866d0..0a215d6 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1417,7 +1417,7 @@ address_of_variable (struct symbol *var, const struct block *b) regname = gdbarch_register_name (get_frame_arch (frame), VALUE_REGNUM (val)); - gdb_assert (regname && *regname); + gdb_assert (regname != nullptr && *regname != '\0'); error (_("Address requested for identifier " "\"%s\" which is in register $%s"), |