aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.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/valops.c
parent9b9e61c7cf49abdf9c2703c4d1f555d762c6e49f (diff)
downloadbinutils-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.c2
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"),