volatilityfoundation / dwarf2json

convert ELF/DWARF symbol and type information into vol3's intermediate JSON
Other
95 stars 28 forks source link

Names from typedefs #52

Closed mkonshie closed 1 year ago

mkonshie commented 1 year ago

Resolves volatilityfoundation/volatility3#985

Prior to this commit, dwarf2json ignores typedefs and generates unnamed user_types for anonymous structs. This makes it difficult to refer to those types.

This PR uses a typedef's name to refer to a user_type when dwarf2json encounters an anonymous struct instead of using a generated name.

gcmoreira commented 1 year ago

@mkonshie this works for me. Tested using Fedora Core 38 with kernel 6.3.12 as it was reported in https://github.com/volatilityfoundation/volatility3/issues/985 .. thanks