From: Roland McGrath Date: Thu, 5 Nov 2009 19:43:38 +0000 (-0800) Subject: Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure. X-Git-Tag: elfutils-0.144~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6229eb57c2708ed0e9b6555cc4301aa496649228;p=thirdparty%2Felfutils.git Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure. --- diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog index 48f266513..9e76838fd 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,6 +1,7 @@ 2009-11-05 Roland McGrath * link_map.c (report_r_debug): Skip entries with l_ld==0. + Use dwfl_addrmodule for l_ld lookup, don't bail on lookup failure. 2009-09-04 Roland McGrath diff --git a/libdwfl/link_map.c b/libdwfl/link_map.c index 7938f85e5..ecb499058 100644 --- a/libdwfl/link_map.c +++ b/libdwfl/link_map.c @@ -378,11 +378,7 @@ report_r_debug (uint_fast8_t elfclass, uint_fast8_t elfdata, the same area, find that existing module to adjust. The l_ld address is the only one we know for sure to be within the module's own segments (its .dynamic). */ - Dwfl_Module *mod; - int segndx = INTUSE(dwfl_addrsegment) (dwfl, l_ld, &mod); - if (unlikely (segndx < 0)) - return release_buffer (-1); - + Dwfl_Module *mod = INTUSE(dwfl_addrmodule) (dwfl, l_ld); if (mod != NULL) { /* We have a module. We can give it a better name from l_name. */