mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
976ca31673
While doing the psymtab-sharing patchset, I avoided renaming variables unnecessarily to avoid adding noise to patches, but I'd like to do it now. Basically, we have these dwarf2 per-something structures: - dwarf2_per_objfile - dwarf2_per_bfd - dwarf2_per_cu_data I named the instances of dwarf2_per_bfd `per_bfd` and most of instances of dwarf2_per_cu_data are called `per_cu`. Most pre-existing instances of dwarf2_per_objfile are named `dwarf2_per_objfile`. For consistency with the other type, I'd like to rename them to just `per_objfile`. The `dwarf2_` prefix is superfluous, since it's already clear we are in dwarf2 code. It also helps reducing the line wrapping by saving 7 precious columns. gdb/ChangeLog: * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, dwarf2/index-cache.h, dwarf2/index-write.c, dwarf2/index-write.h, dwarf2/line-header.c, dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile variables and fields from `dwarf2_per_objfile` to just `per_objfile` throughout. Change-Id: I3c45cdcc561265e90df82cbd36b4b4ef2fa73aef
40 lines
1.4 KiB
C
40 lines
1.4 KiB
C
/* DWARF index writing support for GDB.
|
|
|
|
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef DWARF_INDEX_WRITE_H
|
|
#define DWARF_INDEX_WRITE_H
|
|
|
|
#include "symfile.h"
|
|
#include "dwarf2/read.h"
|
|
|
|
/* Create index files for OBJFILE in the directory DIR.
|
|
|
|
An index file is created for OBJFILE itself, and is created for its
|
|
associated dwz file, if it has one.
|
|
|
|
BASENAME is the desired filename base for OBJFILE's index. An extension
|
|
derived from INDEX_KIND is added to this base name. DWZ_BASENAME is the
|
|
same, but for the dwz file's index. */
|
|
|
|
extern void write_psymtabs_to_index
|
|
(dwarf2_per_objfile *per_objfile, const char *dir, const char *basename,
|
|
const char *dwz_basename, dw_index_kind index_kind);
|
|
|
|
#endif /* DWARF_INDEX_WRITE_H */
|