+2009-01-22 Roland McGrath <roland@redhat.com>
+
+ * dwfl_segment_report_module.c (addr_segndx): Remove bogus adjustments
+ after address-matching loop.
+
+ * segment.c (lookup): Fix fencepost in checking for HINT match.
+
2009-01-14 Roland McGrath <roland@redhat.com>
* gzip.c [!BZLIB] (mapped_zImage): New function.
/* Sniff out modules from ELF headers visible in memory segments.
- Copyright (C) 2008 Red Hat, Inc.
+ Copyright (C) 2008, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
while (segment < dwfl->lookup_elts - 1
&& dwfl->lookup_addr[segment] < addr);
- while (dwfl->lookup_segndx[segment] < 0
- && segment < dwfl->lookup_elts - 1)
- ++segment;
-
- if (dwfl->lookup_segndx[segment] >= 0)
- ndx = dwfl->lookup_segndx[segment];
-
return ndx;
}
/* Manage address space lookup table for libdwfl.
- Copyright (C) 2008 Red Hat, Inc.
+ Copyright (C) 2008, 2009 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
if (hint >= 0
&& address >= dwfl->lookup_addr[hint]
&& ((size_t) hint + 1 == dwfl->lookup_elts
- || address <= dwfl->lookup_addr[hint + 1]))
+ || address < dwfl->lookup_addr[hint + 1]))
return hint;
/* Do binary search on the array indexed by module load address. */