GDB contains code in read_structure_type() which is supposed to check for incorrect DWARF generated by ICC for an incomplete structure type. The code is incomplete, in that it doesn't check for length == 0, and it doesn't set the STUB flag. This patch adds the test and sets the flag. gdb: 2014-01-07 Michael Eager * dwarf2read.c (read_structure_type): Set stub if ICC & length == 0. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077