diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-05-29 15:15:10 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-05-29 15:15:10 -0400 |
commit | 976ca31673841e14a7595ed32f8009b61608fe46 (patch) | |
tree | fa94f1d4ebbbe08a4a9c7c42f0ada88aea2f7406 /gdb/dwarf2/index-write.h | |
parent | 678048e8079ace915052f3070b2df97bcaea58d2 (diff) | |
download | gdb-976ca31673841e14a7595ed32f8009b61608fe46.zip gdb-976ca31673841e14a7595ed32f8009b61608fe46.tar.gz gdb-976ca31673841e14a7595ed32f8009b61608fe46.tar.bz2 |
gdb: rename dwarf2_per_objfile variables/fields to per_objfile
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
Diffstat (limited to 'gdb/dwarf2/index-write.h')
-rw-r--r-- | gdb/dwarf2/index-write.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/index-write.h b/gdb/dwarf2/index-write.h index 5ba1725..4710205 100644 --- a/gdb/dwarf2/index-write.h +++ b/gdb/dwarf2/index-write.h @@ -33,7 +33,7 @@ same, but for the dwz file's index. */ extern void write_psymtabs_to_index - (struct dwarf2_per_objfile *dwarf2_per_objfile, const char *dir, - const char *basename, const char *dwz_basename, dw_index_kind index_kind); + (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 */ |