aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-12-01 16:58:47 -0500
committerSergio Durigan Junior <sergiodj@redhat.com>2017-12-01 16:58:47 -0500
commit7f0f8ac8b15f5f5327116614b4137e5dd533ada2 (patch)
tree3222e4411f845b46423966547889920b775f62e7 /gdb/xcoffread.c
parent7ef67ba53397c52a87375403aa614c52b94ccc73 (diff)
downloadgdb-7f0f8ac8b15f5f5327116614b4137e5dd533ada2.zip
gdb-7f0f8ac8b15f5f5327116614b4137e5dd533ada2.tar.gz
gdb-7f0f8ac8b15f5f5327116614b4137e5dd533ada2.tar.bz2
Revert "Add support for the readnever concept"
This reverts commit e2e321740ce2e36a97be2a410cd56eebaa2304aa. It was mistakenly pushed.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c48
1 files changed, 23 insertions, 25 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index b1c634c..46a43bc9 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2975,33 +2975,31 @@ xcoff_initial_scan (struct objfile *objfile, symfile_add_flags symfile_flags)
/* Read the string table. */
init_stringtab (abfd, stringtab_offset, objfile);
- /* Read the .debug section, if present and if we're not ignoring
- it. */
- if (!(objfile->flags & OBJF_READNEVER))
- {
- struct bfd_section *secp;
- bfd_size_type length;
- bfd_byte *debugsec = NULL;
+ /* Read the .debug section, if present. */
+ {
+ struct bfd_section *secp;
+ bfd_size_type length;
+ bfd_byte *debugsec = NULL;
- secp = bfd_get_section_by_name (abfd, ".debug");
- if (secp)
- {
- length = bfd_section_size (abfd, secp);
- if (length)
- {
- debugsec
- = (bfd_byte *) obstack_alloc (&objfile->objfile_obstack,
- length);
+ secp = bfd_get_section_by_name (abfd, ".debug");
+ if (secp)
+ {
+ length = bfd_section_size (abfd, secp);
+ if (length)
+ {
+ debugsec
+ = (bfd_byte *) obstack_alloc (&objfile->objfile_obstack,
+ length);
- if (!bfd_get_full_section_contents (abfd, secp, &debugsec))
- {
- error (_("Error reading .debug section of `%s': %s"),
- name, bfd_errmsg (bfd_get_error ()));
- }
- }
- }
- info->debugsec = (char *) debugsec;
- }
+ if (!bfd_get_full_section_contents (abfd, secp, &debugsec))
+ {
+ error (_("Error reading .debug section of `%s': %s"),
+ name, bfd_errmsg (bfd_get_error ()));
+ }
+ }
+ }
+ info->debugsec = (char *) debugsec;
+ }
}
/* Read the symbols. We keep them in core because we will want to