2007-10-09 Pedro Alves * symfile.c (syms_from_objfile): Don't warn if loadable sections are not found. Don't warn about which is the lowest section. Only warn about a section not being found if VERBO or info_verbose. Turn that warning into a print_unfiltered. --- gdb/symfile.c | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) Index: src/gdb/symfile.c =================================================================== --- src.orig/gdb/symfile.c 2007-10-28 22:57:49.000000000 +0000 +++ src/gdb/symfile.c 2007-10-29 00:09:34.000000000 +0000 @@ -821,15 +821,6 @@ syms_from_objfile (struct objfile *objfi if (lower_sect == NULL) bfd_map_over_sections (objfile->obfd, find_lowest_section, &lower_sect); - if (lower_sect == NULL) - warning (_("no loadable sections found in added symbol-file %s"), - objfile->name); - else - if ((bfd_get_section_flags (objfile->obfd, lower_sect) & SEC_CODE) == 0) - warning (_("Lowest section in %s is %s at %s"), - objfile->name, - bfd_section_name (objfile->obfd, lower_sect), - paddr (bfd_section_vma (objfile->obfd, lower_sect))); if (lower_sect != NULL) lower_offset = bfd_section_vma (objfile->obfd, lower_sect); else @@ -861,9 +852,10 @@ syms_from_objfile (struct objfile *objfi } else { - warning (_("section %s not found in %s"), - addrs->other[i].name, - objfile->name); + if (verbo || info_verbose) + printf_unfiltered (_("section %s not found in %s\n"), + addrs->other[i].name, + objfile->name); addrs->other[i].addr = 0; } }