This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: fix cut-and-paste-o in debug relocation patch
- From: Jim Blandy <jimb at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: 04 Feb 2003 15:09:51 -0500
- Subject: PATCH: fix cut-and-paste-o in debug relocation patch
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.
Index: gdb/dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.84
diff -c -r1.84 dwarf2read.c
*** gdb/dwarf2read.c 4 Feb 2003 18:07:01 -0000 1.84
--- gdb/dwarf2read.c 4 Feb 2003 20:10:20 -0000
***************
*** 978,984 ****
{
dwarf_macinfo_offset = sectp->filepos;
dwarf_macinfo_size = bfd_get_section_size_before_reloc (sectp);
! dwarf_loc_section = sectp;
}
else if (STREQ (sectp->name, STR_SECTION))
{
--- 978,984 ----
{
dwarf_macinfo_offset = sectp->filepos;
dwarf_macinfo_size = bfd_get_section_size_before_reloc (sectp);
! dwarf_macinfo_section = sectp;
}
else if (STREQ (sectp->name, STR_SECTION))
{