binutils-gdb/gdb/compile
Kevin Buettner 2b1ffcfd6f Use BLOCK_ENTRY_PC in place of most uses of BLOCK_START
This change/patch substitues BLOCK_ENTRY_PC for BLOCK_START in
places where BLOCK_START is used to obtain the address at which
execution should enter the block.  Since blocks can now contain
non-contiguous ranges, the BLOCK_START - which is still be the
very lowest address in the block - might not be the same as
BLOCK_ENTRY_PC.

There is a change to infrun.c which is less obvious and less mechanical.
I'm posting it as a separate patch.

gdb/ChangeLog:

	* ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
	BLOCK_START.
	* blockframe.c (get_pc_function_start): Likewise.
	* compile/compile-c-symbols.c (convert_one_symbol): Likewise.
	(gcc_symbol_address): Likewise.
	* compile/compile-object-run.c (compile_object_run): Likewise.
	* compile/compile.c (get_expr_block_and_pc): Likewise.
	* dwarf2loc.c (dwarf2_find_location_expression): Likewise.
	(func_addr_to_tail_call_list): Likewise.
	* findvar.c (default_read_var_value): Likewise.
	* inline-frame.c (inline_frame_this_id): Likewise.
	(skip-inline_frames): Likewise.
	* infcmd.c (until_next_command): Likewise.
	* linespec.c (convert_linespec_to_sals): Likewise.
	* parse.c (parse_exp_in_context_1): Likewise.
	* printcmd.c (build_address_symbolic): likewise.
	(info_address_command): Likewise.
	symtab.c (find_function_start_sal): Likewise.
	(skip_prologue_sal): Likewise.
	(find_function_alias_target): Likewise.
	(find_gnu_ifunc): Likewise.
	* stack.c (find_frame_funname): Likewise.
	* symtab.c (fixup_symbol_section): Likewise.
	(find_function_start_sal): Likewise.
	(skip_prologue_sal): Likewsie.
	(find_function_alias_target): Likewise.
	(find_gnu_ifunc): Likewise.
	* tracepoint.c (info_scope_command): Likewise.
	* value.c (value_fn_field): Likewise.
2018-08-23 16:19:18 -07:00
..
compile-c-support.c Use policies for code generation 2018-08-10 11:14:25 -07:00
compile-c-symbols.c Use BLOCK_ENTRY_PC in place of most uses of BLOCK_START 2018-08-23 16:19:18 -07:00
compile-c-types.c Move compile_instance to compile.c 2018-08-10 11:14:25 -07:00
compile-c.h Move compile_instance to compile.c 2018-08-10 11:14:25 -07:00
compile-internal.h Use unique_ptr for htabs 2018-08-10 11:14:25 -07:00
compile-loc2c.c Move C-related declarations to compile-c.h 2018-08-10 11:14:25 -07:00
compile-object-load.c
compile-object-load.h
compile-object-run.c Use BLOCK_ENTRY_PC in place of most uses of BLOCK_START 2018-08-23 16:19:18 -07:00
compile-object-run.h
compile.c Use BLOCK_ENTRY_PC in place of most uses of BLOCK_START 2018-08-23 16:19:18 -07:00
compile.h
gcc-c-plugin.h Add a C++ wrapper for GCC C plug-in 2018-08-10 11:14:25 -07:00