* dwarf2read.c (dwarf2_locate_sections): When we find a macro info
authorJim Blandy <jimb@codesourcery.com>
Tue, 4 Feb 2003 20:17:02 +0000 (20:17 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 4 Feb 2003 20:17:02 +0000 (20:17 +0000)
section, let dwarf_macinfo_section point to it, not
dwarf_loc_section.

gdb/ChangeLog
gdb/dwarf2read.c

index 289ad10a9b401c7734211d5a88595daa29069add..2c37e80a4d0c4ca83dc30c172f72f30215599a3e 100644 (file)
@@ -1,3 +1,9 @@
+2003-02-04  Jim Blandy  <jimb@redhat.com>
+
+       * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
+       section, let dwarf_macinfo_section point to it, not
+       dwarf_loc_section.
+
 2003-02-04  Daniel Jacobowitz  <drow@mvista.com>
 
        Pointed out by Anton Blanchard <anton@samba.org>.
index ee0c9d4b1bb4f49ede27ce400cb2975867290403..dbd6460ca78cd41fc1b5c801a99dd223ce2d9bf5 100644 (file)
@@ -978,7 +978,7 @@ dwarf2_locate_sections (bfd *ignore_abfd, asection *sectp, void *ignore_ptr)
     {
       dwarf_macinfo_offset = sectp->filepos;
       dwarf_macinfo_size = bfd_get_section_size_before_reloc (sectp);
-      dwarf_loc_section = sectp;
+      dwarf_macinfo_section = sectp;
     }
   else if (STREQ (sectp->name, STR_SECTION))
     {