binutils-gdb/gdb/compile
Jan Kratochvil 83d3415ef5 Code cleanup: compile: func_addr -> func_sym
Currently the code fetches _gdb_expr address/types at multiple places, guessing
its parameters at multiple places etc.

Fetch it once, verify it has expected type and then rely on it.

While the patch tries to clean up the code it is still horrible due to the
missing C++ sub-classing.


gdb/ChangeLog
2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
	Rely on its parameter count.
	(compile_object_load): Replace lookup_minimal_symbol_text by
	lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
	return value.
	* compile/compile-object-load.h (struct compile_module): Replace
	func_addr by func_sym.
	* compile/compile-object-run.c: Include block.h.
	(compile_object_run): Reset module variable after it is freed.  Use
	FUNC_SYM instead of FUNC_ADDR.  Rely on it.
2015-05-16 14:43:42 +02:00
..
compile-c-support.c compile: Use -Wall, not -w 2015-05-16 14:39:59 +02:00
compile-c-symbols.c Split TRY_CATCH into TRY + CATCH 2015-03-07 15:14:14 +00:00
compile-c-types.c
compile-internal.h
compile-loc2c.c compile: Use -Wall, not -w 2015-05-16 14:39:59 +02:00
compile-object-load.c Code cleanup: compile: func_addr -> func_sym 2015-05-16 14:43:42 +02:00
compile-object-load.h Code cleanup: compile: func_addr -> func_sym 2015-05-16 14:43:42 +02:00
compile-object-run.c Code cleanup: compile: func_addr -> func_sym 2015-05-16 14:43:42 +02:00
compile-object-run.h
compile.c compile: Use -Wall, not -w 2015-05-16 14:39:59 +02:00
compile.h compile: Distribute scope, add scope_data 2015-05-16 14:28:10 +02:00