Bug 20202 - Feature request: when printing substitute typedef for anoymous structure
Summary: Feature request: when printing substitute typedef for anoymous structure
Status: RESOLVED FIXED
Alias: None
Product: libabigail
Classification: Unclassified
Component: default (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: Dodji Seketeli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 16:51 UTC by Ben Woodard
Modified: 2021-12-01 23:22 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Woodard 2016-06-03 16:51:37 UTC
something like

typedef struct {
  int member;
  char member2;
} mystruct;

is enough of a C idiom that I think it would be a nice enahancement that instead of printing something like:

  [C]'function size_t _elf32_xltsize(const Elf_Data*, unsigned int, unsigned int, int)' at 32.xlate\
tof.c:336:1 has some indirect sub-type changes:

    parameter 1 of type 'const Elf_Data*' has sub-type changes:
      in pointed to type 'const Elf_Data':
        in unqualified underlying type 'typedef Elf_Data' at libelf.h:167:1:
          underlying type 'struct __anonymous_struct__' at libelf.h:160:1 changed:
            1 data member deletion:
              'void* __anonymous_struct__::d_buf', at offset 0 (in bits) at libelf.h:161:1

So instead of printing:
              'void* __anonymous_struct__::d_buf', at offset 0 (in bits) at libelf.h:161:1

Print something like:
              'void* TheTypedefedName, at offset 0 (in bits) at libelf.h:161:1
Comment 1 Ben Woodard 2021-12-01 23:22:41 UTC
This got fixed a while ago.