struct elfinfo
{
- file_ptr dboffset; /* Offset to dwarf debug section */
- unsigned int dbsize; /* Size of dwarf debug section */
- file_ptr lnoffset; /* Offset to dwarf line number section */
- unsigned int lnsize; /* Size of dwarf line number section */
asection *stabsect; /* Section pointer for .stab section */
asection *stabindexsect; /* Section pointer for .stab.index section */
asection *mdebugsect; /* Section pointer for .mdebug section */
struct elfinfo *ei;
ei = (struct elfinfo *) eip;
- if (strcmp (sectp->name, ".debug") == 0)
- {
- ei->dboffset = sectp->filepos;
- ei->dbsize = bfd_get_section_size (sectp);
- }
- else if (strcmp (sectp->name, ".line") == 0)
- {
- ei->lnoffset = sectp->filepos;
- ei->lnsize = bfd_get_section_size (sectp);
- }
- else if (strcmp (sectp->name, ".stab") == 0)
+ if (strcmp (sectp->name, ".stab") == 0)
{
ei->stabsect = sectp;
}
We look for sections with specific names, to tell us what debug
format to look for: FIXME!!!
- dwarf_build_psymtabs() builds psymtabs for DWARF symbols;
elfstab_build_psymtabs() handles STABS symbols;
mdebug_build_psymtabs() handles ECOFF debugging information.
/* DWARF 2 sections */
dwarf2_build_psymtabs (objfile, mainline);
}
- else if (ei.dboffset && ei.lnoffset)
- {
- /* DWARF sections */
- dwarf_build_psymtabs (objfile,
- mainline,
- ei.dboffset, ei.dbsize,
- ei.lnoffset, ei.lnsize);
- }
/* FIXME: kettenis/20030504: This still needs to be integrated with
dwarf2read.c in a better way. */