On Saturday, July 24, 2010 12:12:03 am Tom Tromey wrote: > >>>>> "Tom" == Tom Tromey writes: > Tom> Here is what I am testing. > > Here is the variant I am checking it. It seems to work with all > combinations of .debug_types, .gdb_index, and -readnow. > > Let me know if you hit any more problems. Hi Tom, It seems old GCCs do not recognize that the types_list_elements and types_list variables of dwarf2read.c:dwarf2_initialize_objfile are accessed under the same condition as they are initialized. GCC 4.1.2 (RHEL5) issues the following warning: src/gdb/dwarf2read.c: In function ‘dwarf2_initialize_objfile’: src/gdb/dwarf2read.c:1839: warning: ‘types_list_elements’ may be used uninitialized in this function src/gdb/dwarf2read.c:1838: warning: ‘types_list’ may be used uninitialized in this function The attached patch initializes the two variables to prevent the warnings. OK to apply? Regards -ken