Parsing DWARF and static variables declared in functions?
Do you plan to add support for parsing static variables declared in functions?
You already need to parse DWARF, maybe add location resolution for this type of variables also.
You do it in STM32CubeIDE:

We do it externally using pyelftools.
Yes, there is a lot of assumptions in our script (compression, dwarf format,...), but it works in our use case.
Kind regards,
Ziga
Code:
Dwarf parsing useing pyelftools (modified example of https://github.com/eliben/pyelftools/blob/master/examples/dwarf_die_tree.py) to output also all DIE properties

"current_" is on location:
DW_AT_location = [3, 44, 1, 0, 32]
DW_OP_addr = 0x03, next bytes are in little endian
0x2000012C
