Message ID | 1422106237-20723-1-git-send-email-mjw@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/gdb/symfile.c b/gdb/symfile.c index d55e361..5c80892 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3451,7 +3451,9 @@ unmap_overlay_command (char *args, int from_tty) /* First, find a section matching the user supplied argument. */ ALL_OBJSECTIONS (objfile, sec) - if (!strcmp (bfd_section_name (objfile->obfd, sec->the_bfd_section), args)) + if (section_is_overlay (sec) + && !strcmp (bfd_section_name (objfile->obfd, sec->the_bfd_section), + args)) { if (!sec->ovly_mapped) error (_("Section %s is not mapped"), args);