arvidn / struct_layout

tool to show the structure layout of types in your C/C++ program, highlighting padding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make this work on linux

Swatinem opened this issue · comments

The copy of dwarfdump on linus (I use this one: https://aur.archlinux.org/packages/libdwarf/ from http://www.prevanders.net/dwarf.html) has a completely different output format, the parser does not understand it. Would be awesome to add it though.

The quick way to make it work is to use llvm-dwarfdump, which is what is actually used on macOS. If I patch dwarfdump to llvm-dwarfdump it seems to work fine