diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-02 20:28:16 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-07-22 17:57:27 +0100 |
commit | ab769488e75272c3cbea4626a346fd0c336b2de6 (patch) | |
tree | f8df0e4cc998210af7387454f4e72bdd2c55979c /gold/reloc.cc | |
parent | 2484ca436ac68716636a7aca3826bca3cda243a4 (diff) | |
download | gdb-ab769488e75272c3cbea4626a346fd0c336b2de6.zip gdb-ab769488e75272c3cbea4626a346fd0c336b2de6.tar.gz gdb-ab769488e75272c3cbea4626a346fd0c336b2de6.tar.bz2 |
libctf, create: member names of "" and NULL should be the same
This matters for the case of unnamed bitfields, whose names are the null
string. These are special in that they are the only members whose
"names" are allowed to be duplicated in a single struct, but we were
only handling this for the case where name == NULL. Translate "" to
NULL to help callers.
libctf/
* ctf-create.c (ctf_add_member_offset): Support names of ""
as if they were the null pointer.
Diffstat (limited to 'gold/reloc.cc')
0 files changed, 0 insertions, 0 deletions