tag: Dwarf

Dreaming while programming

25 Dec, 2024 - 4 minutes
At work I encountered a situation when having a small standalone tool to display the variables with expanded types and when available also display the address. For a basic look at symbols and their addresses, the tool readelf can be used, the issue is that it does not expand the types and only shows the addresses of the main variable, not of its sub stuff in structs or arrays of stuff. Other tools which can be used and I am aware of are: dwarfdump, objdump and pahole. Each has its strong and weak points but I did not manage to find the feature I wanted.