google / bloaty

Bloaty: a size profiler for binaries
Apache License 2.0
4.71k stars 340 forks source link

bloaty: Don't know how to parse DWARF form: 31 #298

Open mattst88 opened 2 years ago

mattst88 commented 2 years ago

On Gentoo Linux:

#include <stdio.h>

int main() {
    printf("hello world\n");
    return 0;
}
~ % gcc t.c -o t                                                                                            
~ % bloaty -d compileunits -s file t
bloaty: Don't know how to parse DWARF form: 31

31 is DW_TAG_ptr_to_member_type, which looks to be unhandled in bloaty. Two questions:

  1. Why is my toolchain emitting DW_TAG_ptr_to_member_type? It doesn't seem common.
  2. Does bloaty need to implement support for handling DW_TAG_ptr_to_member_type?