8sa1-binutils-gdb/gdb/dwarf2
Tom Tromey 3637a558a5 Use std::vector for "registers_used" in compile feature
This changes the GDB compile code to use std::vector<bool> when
computing which registers are used.  This is a bit more idiomatic, but
the main benefit is that it also adds some checking when the libstd++
debug mode is enabled.

2021-01-23  Tom Tromey  <tom@tromey.com>

	* symtab.h (struct symbol_computed_ops) <generate_c_location>:
	Change type of "registers_used".
	* dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
	* dwarf2/loc.c (dwarf2_compile_property_to_c)
	(locexpr_generate_c_location, loclist_generate_c_location): Change
	type of "registers_used".
	* compile/compile.h (compile_dwarf_expr_to_c)
	(compile_dwarf_bounds_to_c): Update.
	* compile/compile-loc2c.c (pushf_register_address)
	(pushf_register, do_compile_dwarf_expr_to_c)
	(compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
	of "registers_used".
	* compile/compile-c.h (generate_c_for_variable_locations):
	Update.
	* compile/compile-c-symbols.c (generate_vla_size)
	(generate_c_for_for_one_variable): Change type of
	"registers_used".
	(generate_c_for_variable_locations): Return std::vector.
	* compile/compile-c-support.c (generate_register_struct): Change
	type of "registers_used".
	(compute): Update.
2021-01-23 20:33:25 -07:00
..
abbrev.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
abbrev.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
attribute.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
attribute.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
comp-unit.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
comp-unit.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
die.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dwz.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
dwz.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
expr.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
expr.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame-tailcall.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame-tailcall.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
frame.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-cache.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-cache.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-common.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-common.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-write.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
index-write.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
leb.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
leb.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
line-header.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
line-header.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
loc.c Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
loc.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
macro.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
macro.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
read.c gdb/dwarf: add assertion in maybe_queue_comp_unit 2021-01-20 21:04:43 -05:00
read.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
section.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
section.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
stringify.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
stringify.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00