Index: coffread.c =================================================================== RCS file: /cvs/src/src/gdb/coffread.c,v retrieving revision 1.33 diff -c -p -r1.33 coffread.c *** coffread.c 4 Feb 2003 18:07:00 -0000 1.33 --- coffread.c 6 Feb 2003 19:39:27 -0000 *************** *** 45,50 **** --- 45,52 ---- #include "target.h" #include "gdb_assert.h" + #include "coff-pe-read.h" + extern void _initialize_coffread (void); struct coff_symfile_info *************** coff_symtab_read (long symtab_offset, un *** 1084,1089 **** --- 1086,1098 ---- process_coff_symbol (cs, &main_aux, objfile); break; } + } + + if ((nsyms == 0) && (pe_file)) + { + /* We've got no debugging symbols, but it's is a portable + executable, so try to read the export table */ + read_pe_exported_syms (objfile); } if (last_source_file)