From: Roland McGrath Date: Wed, 2 Jun 2010 03:17:36 +0000 (-0700) Subject: Clean up IDX_debug_* list. X-Git-Tag: elfutils-0.148~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=827d4d176b989c5d765c7f349edff6f994f8ea78;p=thirdparty%2Felfutils.git Clean up IDX_debug_* list. --- diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 31e3e7d46..12e70a7d9 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,5 +1,8 @@ 2010-06-01 Roland McGrath + * libdwP.h: Remove unused IDX_debug_*names, add IDX_debug_types. + * dwarf_begin_elf.c (dwarf_scnnames): Likewise. + * libdwP.h (CIE_VERSION): Remove unused macro. * dwarf_getsrclines.c: Fix version field test. diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c index 391a8b855..c3a49654e 100644 --- a/libdw/dwarf_begin_elf.c +++ b/libdw/dwarf_begin_elf.c @@ -1,5 +1,5 @@ /* Create descriptor from ELF descriptor for processing file. - Copyright (C) 2002, 2003, 2004, 2005, 2007, 2009 Red Hat, Inc. + Copyright (C) 2002-2010 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper , 2002. @@ -66,6 +66,7 @@ static const char dwarf_scnnames[IDX_last][17] = { [IDX_debug_info] = ".debug_info", + [IDX_debug_types] = ".debug_types", [IDX_debug_abbrev] = ".debug_abbrev", [IDX_debug_aranges] = ".debug_aranges", [IDX_debug_line] = ".debug_line", @@ -73,10 +74,6 @@ static const char dwarf_scnnames[IDX_last][17] = [IDX_debug_loc] = ".debug_loc", [IDX_debug_pubnames] = ".debug_pubnames", [IDX_debug_str] = ".debug_str", - [IDX_debug_funcnames] = ".debug_funcnames", - [IDX_debug_typenames] = ".debug_typenames", - [IDX_debug_varnames] = ".debug_varnames", - [IDX_debug_weaknames] = ".debug_weaknames", [IDX_debug_macinfo] = ".debug_macinfo", [IDX_debug_ranges] = ".debug_ranges" }; diff --git a/libdw/libdwP.h b/libdw/libdwP.h index 305ca2312..bfa8a4265 100644 --- a/libdw/libdwP.h +++ b/libdw/libdwP.h @@ -83,6 +83,7 @@ struct loc_block_s enum { IDX_debug_info = 0, + IDX_debug_types, IDX_debug_abbrev, IDX_debug_aranges, IDX_debug_line, @@ -90,10 +91,6 @@ enum IDX_debug_loc, IDX_debug_pubnames, IDX_debug_str, - IDX_debug_funcnames, - IDX_debug_typenames, - IDX_debug_varnames, - IDX_debug_weaknames, IDX_debug_macinfo, IDX_debug_ranges, IDX_last