I would like to create a program in C under Windows using the libdwarf library that is able to extract information about a variable given as input. The program should output the size in bytes of the variable and the type (unsigned, signed, float).
So far I was able to compile the library under Windows, but I'm having a hard time figuring out all the library functions. What I need is a function that takes a string (name of the variable) and outputs a DIE offset. After that I can use other functions to extract the type attribute at the given DIE offset.
Does such a function exist?