]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Dwarf: adjust fetch_indirect{,_line}_string()'s return type
authorJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2025 10:21:11 +0000 (12:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2025 10:21:11 +0000 (12:21 +0200)
commitd94cdcc88131ec01e008cbe3bd09262f47877f16
tree74d75a6e21eeaed0597ccef634d015abb455d3a3
parent7cbb38b74202f6204d01da81f459297fb873fb9d
Dwarf: adjust fetch_indirect{,_line}_string()'s return type

As already is the case for fetch_indexed_string() and
fetch_alt_indirect_string(), have them return a pointer to plain char,
properly compatible with e.g. the %s format specifier that the return
values are used with in several cases. This way no casts at call sites are
necessary, and several (bogus) ones in the functions can be exchanged for
just one each. Some other constification is needed elsewhere, now that
const-ness isn't being cast away anymore.
binutils/dwarf.c