Author: arty
Date: Wed Jun 8 02:32:20 2011
New Revision: 52144
URL:
http://svn.reactos.org/svn/reactos?rev=52144&view=rev
Log:
gcc-4.6.0 doesn't include a pubnames section.
Modified:
branches/cmake-bringup/lib/rossym/dwarfopen.c
branches/cmake-bringup/lib/rossym/dwarfpubnames.c
Modified: branches/cmake-bringup/lib/rossym/dwarfopen.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/rossym/dwarfo…
==============================================================================
--- branches/cmake-bringup/lib/rossym/dwarfopen.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/rossym/dwarfopen.c [iso-8859-1] Wed Jun 8 02:32:20 2011
@@ -30,10 +30,10 @@
if(pe->loadsection(pe, ".debug_abbrev", &d->abbrev) < 0
|| pe->loadsection(pe, ".debug_aranges", &d->aranges) < 0
|| pe->loadsection(pe, ".debug_line", &d->line) < 0
- || pe->loadsection(pe, ".debug_pubnames", &d->pubnames) < 0
|| pe->loadsection(pe, ".debug_info", &d->info) < 0
|| pe->loadsection(pe, ".debug_loc", &d->loc) < 0)
goto err;
+ pe->loadsection(pe, ".debug_pubnames", &d->pubnames);
pe->loadsection(pe, ".debug_frame", &d->frame);
pe->loadsection(pe, ".debug_ranges", &d->ranges);
pe->loadsection(pe, ".debug_str", &d->str);
Modified: branches/cmake-bringup/lib/rossym/dwarfpubnames.c
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/rossym/dwarfp…
==============================================================================
--- branches/cmake-bringup/lib/rossym/dwarfpubnames.c [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/rossym/dwarfpubnames.c [iso-8859-1] Wed Jun 8 02:32:20
2011
@@ -66,7 +66,8 @@
int
dwarflookupname(Dwarf *d, char *name, DwarfSym *sym)
{
- return _dwarfnametounit(d, name, &d->pubnames, sym);
+ if (!d->pubnames.data) return -1;
+ else return _dwarfnametounit(d, name, &d->pubnames, sym);
}
/*