diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-04 15:25:32 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-07-22 18:02:17 +0100 |
commit | c6e9a1e576ce4d948393b29e77b37e4ad934ee8f (patch) | |
tree | 9d1aa02a06b41c5c2cf446d5006152805f8b4c31 /libctf/ChangeLog | |
parent | 8b37e7b63ed77fa66e08c7dd08147db6a263d0fb (diff) | |
download | gdb-c6e9a1e576ce4d948393b29e77b37e4ad934ee8f.zip gdb-c6e9a1e576ce4d948393b29e77b37e4ad934ee8f.tar.gz gdb-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/ChangeLog')
-rw-r--r-- | libctf/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 114d4e6..288ad6e 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,11 @@ 2020-07-22 Nick Alcock <nick.alcock@oracle.com> + * 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. + +2020-07-22 Nick Alcock <nick.alcock@oracle.com> + * ctf-impl.h (ctf_assert): New. (ctf_err_warning_t): Likewise. (ctf_file_t) <ctf_errs_warnings>: Likewise. |