drgn/tests
Omar Sandoval 4f56a22d2e dwarftypeindex: handle zero-length and flexible array ambiguity
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.
2018-08-17 00:41:47 -07:00
..
__init__.py type: improve type handling 2018-02-24 19:37:51 -08:00
test_corereader.py corereader: add CoreReader.read_c_string() 2018-07-23 18:19:41 -07:00
test_dwarftypeindex.py dwarftypeindex: handle zero-length and flexible array ambiguity 2018-08-17 00:41:47 -07:00
test_leb128.py Separate internal API from public API 2018-07-14 10:20:17 -07:00
test_memberdesignator.py memberdesignator: fix error message when missing ']' 2018-07-16 20:30:09 -07:00
test_memoryviewio.py Separate internal API from public API 2018-07-14 10:20:17 -07:00
test_program.py Separate internal API from public API 2018-07-14 10:20:17 -07:00
test_rlcompleter.py Separate internal API from public API 2018-07-14 10:20:17 -07:00
test_thunk.py type: add new CompoundType.members() 2018-07-15 08:08:42 -07:00
test_type.py type: get rid of unused Type._read_pretty() 2018-07-22 00:30:41 -07:00
test_typeindex.py tests: split DwarfTypeIndex tests out of TypeIndex tests 2018-07-15 18:07:36 -07:00
test_typename.py Separate internal API from public API 2018-07-14 10:20:17 -07:00