diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-09-01 15:39:59 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-10-02 14:21:24 +0100 |
commit | 7ac20d65a8d0c9cdb329d49e8d9e58e38c39fec4 (patch) | |
tree | 44b2972b9219c629017b6d8ed3d6dbe32799ff04 /gdb/avr-tdep.c | |
parent | 7df4240040277fb752fd010f5a947cf2d32bc3a5 (diff) | |
download | gdb-7ac20d65a8d0c9cdb329d49e8d9e58e38c39fec4.zip gdb-7ac20d65a8d0c9cdb329d49e8d9e58e38c39fec4.tar.gz gdb-7ac20d65a8d0c9cdb329d49e8d9e58e38c39fec4.tar.bz2 |
gdb/csky: remove nullptr return from csky_pseudo_register_name
Building on the previous commits, in this commit I remove two
instances of 'return NULL' from csky_pseudo_register_name, and replace
them with a return of the empty string.
These two are particularly interesting, and worth pulling into their
own commit, because these returns of NULL appear to be depended on
within other parts of the csky code.
In csky-linux-tdep.c in the register collect/supply code, GDB checks
for the register name being nullptr in order to decide if a target
supports a particular feature or not. I've updated the code to check
for the empty string.
I have no way of testing this change.
Diffstat (limited to 'gdb/avr-tdep.c')
0 files changed, 0 insertions, 0 deletions