This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Parsing Dwarf files

Hi there,

is there anybody who already handled to parse an elf file containing dwarf debug info? I'm especially interested in making a list of the used variables and their memory-adress (that works fine for me, utilizing GAWK and symbols from debug info) but I can't manage to get the members of a struct.

I would like to make the following list from the struct Personality

struct Personality

{

int nr;

int version;

}

Personality = 0; (Adress)

Personality.nr = 0

Personality.version = 2 (assumed that int is 2 byte for now)

 

Anyone ever had the same problem or knows a good solution for me?

Thanks

Marco