[PATCH 06/12] libctf: adjust dumper for symtypetab changes
H.J. Lu
hjl.tools@gmail.com
Mon Nov 23 14:42:24 GMT 2020
On Sun, Oct 25, 2020 at 7:18 AM Nick Alcock via Binutils
<binutils@sourceware.org> wrote:
>
> Now that we have a new format for the function info section, it's much
> easier to dump it: we can use the same code we use for the object type
> section, and that's got simpler too because we can use ctf_symbol_next.
>
> Also dump the new stuff in the header: the new flags bits and the index
> section lengths.
>
> libctf/ChangeLog
> 2020-10-23 Nick Alcock <nick.alcock@oracle.com>
>
> * ctf-dump.c (ctf_dump_header): Dump the new flags bits and the index
> section lengths.
> (ctf_dump_objts): Report indexed sections. Also dump functions. Use
> ctf_symbol_next, not manual looping.
> (ctf_dump_funcs): Delete.
> (ctf_dump): Use ctf_dump_objts, not ctf_dump_funcs.
> ---
> libctf/ctf-dump.c | 210 +++++++++++++++++-----------------------------
> 1 file changed, 79 insertions(+), 131 deletions(-)
>
> - new_bit = malloc (strlen (bit) + 1 + strlen (sym_name));
> - if (!new_bit)
> + if (asprintf (&typestr, ctf_errmsg (ctf_errno (fp))) < 0)
> goto oom;
>
This caused:
https://sourceware.org/bugzilla/show_bug.cgi?id=26934
--
H.J.
More information about the Binutils
mailing list