diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ea690ef..38b0ca3 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1073,6 +1073,15 @@ read_psymtabs_with_filename (struct objfile *objfile, const char *filename) { struct partial_symtab *p; +{ int hack_count = 0; + ALL_OBJFILE_PSYMTABS_REQUIRED (objfile, p) + { + if (filename_cmp (filename, p->filename) == 0) + hack_count++; + } +if (hack_count > 10) error ("%d hack_count", hack_count); +} + ALL_OBJFILE_PSYMTABS_REQUIRED (objfile, p) { if (filename_cmp (filename, p->filename) == 0)