aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-decl.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-06-04 15:25:32 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 18:02:17 +0100
commitc6e9a1e576ce4d948393b29e77b37e4ad934ee8f (patch)
tree9d1aa02a06b41c5c2cf446d5006152805f8b4c31 /libctf/ctf-decl.c
parent8b37e7b63ed77fa66e08c7dd08147db6a263d0fb (diff)
downloadbinutils-c6e9a1e576ce4d948393b29e77b37e4ad934ee8f.zip
binutils-c6e9a1e576ce4d948393b29e77b37e4ad934ee8f.tar.gz
binutils-c6e9a1e576ce4d948393b29e77b37e4ad934ee8f.tar.bz2
libctf, types: enhance ctf_type_aname to print function arg types
Somehow this never got implemented, which makes debugging any kind of bug that has to do with argument types fantastically confusing, because it *looks* like the func type takes no arguments though in fact it does. This also lets us simplify the dumper slightly (and introduces our first uses of ctf_assert and ctf_err_warn: there will be many more). ctf_type_aname dumps function types without including the function pointer name itself: ctf_dump search-and-replaces it in. This seems to give the nicest-looking results for existing users of both, even if it is a bit fiddly. libctf/ * ctf-types.c (ctf_type_aname): Print arg types here... * ctf-dump.c (ctf_dump_funcs): ... not here: but do substitute in the type name here.
Diffstat (limited to 'libctf/ctf-decl.c')
0 files changed, 0 insertions, 0 deletions