mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-25 10:23:05 +00:00
4f56a22d2e
The DIE generated by GCC for a zero-length array doesn't have a DW_AT_upper_bound or DW_AT_count attribute; it looks identical to that of a flexible array. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86985. The semantics of zero-length and flexible arrays are slightly different (see https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html), so there are a few specific cases where replacing a zero-length array with a flexible array creates an invalid type. We can tell when the type must have been a zero-length array; in other cases, we will just assume the type is a flexible array. This ambiguity will hopefully be fixed in a future version of GCC. |
||
---|---|---|
.. | ||
__init__.py | ||
test_corereader.py | ||
test_dwarftypeindex.py | ||
test_leb128.py | ||
test_memberdesignator.py | ||
test_memoryviewio.py | ||
test_program.py | ||
test_rlcompleter.py | ||
test_thunk.py | ||
test_type.py | ||
test_typeindex.py | ||
test_typename.py |