[commit] ping: Code cleanup: [patch 1/3 ppc64] Make addrs->SECTINDEX always defined
Jan Kratochvil
jan.kratochvil@redhat.com
Wed May 11 04:57:00 GMT 2011
On Sun, 17 Apr 2011 20:48:22 +0200, Jan Kratochvil wrote:
> Make addrs->SECTINDEX always defined.
> * symfile.c (relative_addr_info_to_section_offsets): Check for
> SECTINDEX -1, not for zero ADDR.
> (addrs_section_compar): Remove checking for invalid SECTINDEX.
> (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
> * symfile.h (struct section_addr_info) <sectindex>: Update the comment
> on its validity.
Checked in:
http://sourceware.org/ml/gdb-cvs/2011-05/msg00067.html
Thanks,
Jan
More information about the Gdb-patches
mailing list