From 0cf824c9e4d91fb8a2446d29bfa699637c4135a3 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 4 Feb 2003 20:17:02 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_locate_sections): When we find a macro info section, let dwarf_macinfo_section point to it, not dwarf_loc_section. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2read.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 289ad10a9b..2c37e80a4d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-02-04 Jim Blandy + + * 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 Pointed out by Anton Blanchard . diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index ee0c9d4b1b..dbd6460ca7 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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)) {