Re: DWARF question about size of a variable

2022-06-09 Thread Michael Matz via Gcc
Hello, On Wed, 8 Jun 2022, Carl Love via Gcc wrote: > Is there dwarf information that gives the size of a variable? Yes, it's in the type description. For array types the siblings of it give the index types and ranges. If that range is computed at runtime DWARF will (try to) express it as an

Re: DWARF question about size of a variable

2022-06-08 Thread Eric Botcazou via Gcc
> Is there dwarf information that gives the size of a variable? I have a > test case which when run on Intel gdb can print the size of an > optimized out variable. However on PowerPC, gdb says the size > information for the variable is optimized out. Is there some DWARF > information that I can

DWARF question about size of a variable

2022-06-08 Thread Carl Love via Gcc
GCC developers: Is there dwarf information that gives the size of a variable? I have a test case which when run on Intel gdb can print the size of an optimized out variable. However on PowerPC, gdb says the size information for the variable is optimized out. Is there some DWARF information that