binutils-gdb/gdb/dwarf2
Tom Tromey 7e7a35fbca Shrink size of dwarf2_per_cu_data
I noticed some holes in struct dwarf2_per_cu_data.  This patch
rearranges the type slightly, and shrinks the size of some fields.
This reduces it from 136 bytes to 112 bytes (on x86-64).

I also reduced the size of the DWARF "version" fields in a couple of
spots.  It seemed needless to use a short to hold a value that ranges
from 2 to 5, and this also helped the goal of shrinking
dwarf2_per_cu_data.

2021-04-21  Tom Tromey  <tom@tromey.com>

	* dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
	unsigned char.
	(struct dwarf2_per_cu_data): Rearrange.
	* dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
	unsigned char.
	(struct comp_unit_head): Rearrange.
	* dwarf2/comp-unit.c (read_comp_unit_head): Update.
2021-04-21 16:57:31 -06:00
..
abbrev.c Remove Irix 6 workaround from DWARF abbrev reader 2021-03-13 09:41:05 -07:00
abbrev.h Constify abbrev_table::lookup_abbrev 2021-03-13 09:41:05 -07:00
attribute.c
attribute.h
comp-unit.c Shrink size of dwarf2_per_cu_data 2021-04-21 16:57:31 -06:00
comp-unit.h Shrink size of dwarf2_per_cu_data 2021-04-21 16:57:31 -06:00
die.h
dwz.c Move dwarf2_get_dwz_file to dwarf2/dwz.h 2021-03-06 09:26:40 -07:00
dwz.h Move dwarf2_get_dwz_file to dwarf2/dwz.h 2021-03-06 09:26:40 -07:00
expr.c
expr.h
frame-tailcall.c
frame-tailcall.h
frame.c Introduce dwarf2/public.h 2021-03-20 17:23:40 -06:00
frame.h
index-cache.c
index-cache.h
index-common.c
index-common.h Handle unaligned mapping of .gdb_index 2021-04-17 13:56:36 -06:00
index-write.c Handle unaligned mapping of .gdb_index 2021-04-17 13:56:36 -06:00
index-write.h Introduce dwarf2/public.h 2021-03-20 17:23:40 -06:00
leb.c
leb.h
line-header.c
line-header.h
loc.c
loc.h
macro.c Avoid crash on missing dwz file 2021-03-06 09:26:39 -07:00
macro.h
public.h Simplify DWARF reader initialization 2021-03-28 10:43:15 -06:00
read.c Handle unaligned mapping of .gdb_index 2021-04-17 13:56:36 -06:00
read.h Shrink size of dwarf2_per_cu_data 2021-04-21 16:57:31 -06:00
sect-names.h Move dwarf2_get_dwz_file to dwarf2/dwz.h 2021-03-06 09:26:40 -07:00
section.c gdb: Handle missing .debug_str section 2021-04-07 11:31:30 +01:00
section.h
stringify.c Reimplement dwarf_unit_type_name 2021-03-18 12:08:41 -06:00
stringify.h Fix typo in dwarf2/stringify.h 2021-03-31 09:48:56 -06:00