binutils-gdb/gdb/common
Tom Tromey 3b7344d5ab use bound_minsym as result for lookup_minimal_symbol et al
This patch changes a few minimal symbol lookup functions to return a
bound_minimal_symbol rather than a pointer to the minsym.  This change
helps prepare gdb for computing a minimal symbol's address at the
point of use.

Note that this changes even those functions that ostensibly search a
single objfile.  That was necessary because, in fact, those functions
can search an objfile and its separate debug objfiles; and it is
important for the caller to know in which objfile the minimal symbol
was actually found.

The bulk of this patch is mechanical.

2014-02-26  Tom Tromey  <tromey@redhat.com>

	* ada-lang.c (ada_update_initial_language): Update.
	(ada_main_name, ada_has_this_exception_support): Update.
	* ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
	* aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
	* arm-tdep.c (arm_skip_stub): Update.
	* auxv.c (ld_so_xfer_auxv): Update.
	* avr-tdep.c (avr_scan_prologue): Update.
	* ax-gdb.c (gen_var_ref): Update.
	* breakpoint.c (struct breakpoint_objfile_data)
	<overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
	type to bound_minimal_symbol.
	(create_overlay_event_breakpoint)
	(create_longjmp_master_breakpoint)
	(create_std_terminate_master_breakpoint)
	(create_exception_master_breakpoint): Update.
	* bsd-uthread.c (bsd_uthread_lookup_address): Update.
	* c-exp.y (classify_name): Update.
	* coffread.c (coff_symfile_read): Update.
	* common/agent.c (agent_look_up_symbols): Update.
	* d-lang.c (d_main_name): Update.
	* dbxread.c (find_stab_function_addr, end_psymtab): Update.
	* dec-thread.c (enable_dec_thread): Update.
	* dwarf2loc.c (call_site_to_target_addr): Update.
	* elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
	* eval.c (evaluate_subexp_standard): Update.
	* findvar.c (struct minsym_lookup_data) <result>: Change type
	to bound_minimal_symbol.
	<objfile>: Remove.
	(minsym_lookup_iterator_cb, default_read_var_value): Update.
	* frame.c (inside_main_func): Update.
	* frv-tdep.c (frv_frame_this_id): Update.
	* gcore.c (call_target_sbrk): Update.
	* glibc-tdep.c (glibc_skip_solib_resolver): Update.
	* gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
	Update.
	* go-lang.c (go_main_name): Update.
	* hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
	(hppa_hpux_find_import_stub_for_addr): Update.
	* hppa-tdep.c (hppa_extract_17,	hppa_lookup_stub_minimal_symbol):
	Update.  Change return type.
	* hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
	type.
	* jit.c (jit_breakpoint_re_set_internal): Update.
	* linux-fork.c (inferior_call_waitpid, checkpoint_command):
	Update.
	* linux-nat.c (get_signo): Update.
	* linux-thread-db.c (inferior_has_bug): Update
	* m32c-tdep.c (m32c_return_value)
	(m32c_m16c_address_to_pointer): Update.
	* m32r-tdep.c (m32r_frame_this_id): Update.
	* m68hc11-tdep.c (m68hc11_get_register_info): Update.
	* machoread.c (macho_resolve_oso_sym_with_minsym): Update.
	* minsyms.c (lookup_minimal_symbol_internal): Rename to
	lookup_minimal_symbol.  Change return type.
	(lookup_minimal_symbol): Remove.
	(lookup_bound_minimal_symbol): Update.
	(lookup_minimal_symbol_text): Change return type.
	(lookup_minimal_symbol_solib_trampoline): Change return type.
	* minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
	(lookup_minimal_symbol_solib_trampoline): Change return type.
	* mips-linux-tdep.c (mips_linux_skip_resolver): Update.
	* objc-lang.c (lookup_objc_class, lookup_child_selector)
	(value_nsstring, find_imps): Update.
	* obsd-tdep.c (obsd_skip_solib_resolver): Update.
	* p-lang.c (pascal_main_name): Update.
	* ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
	* ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
	* proc-service.c (ps_pglobal_lookup): Update.
	* ravenscar-thread.c (get_running_thread_msymbol): Change
	return type.
	(has_ravenscar_runtime, get_running_thread_id): Update.
	* remote.c (remote_check_symbols): Update.
	* sol-thread.c (ps_pglobal_lookup): Update.
	* sol2-tdep.c (sol2_skip_solib_resolver): Update.
	* solib-dsbt.c (lm_base): Update.
	* solib-frv.c (lm_base, frv_relocate_section_addresses):
	Update.
	* solib-irix.c (locate_base): Update.
	* solib-som.c (som_solib_create_inferior_hook)
	(som_solib_desire_dynamic_linker_symbols, link_map_start):
	Update.
	* solib-spu.c (spu_enable_break): Update.
	* solib-svr4.c (elf_locate_base, enable_break): Update.
	* spu-tdep.c (spu_get_overlay_table, spu_catch_start)
	(flush_ea_cache): Update.
	* stabsread.c (define_symbol): Update.
	* symfile.c (simple_read_overlay_table): Update.
	* symtab.c (find_pc_sect_line): Update.
	* tracepoint.c (scope_info): Update.
	* tui-disasm.c (tui_get_begin_asm_address): Update.
	* value.c (value_static_field): Update.
2014-02-26 12:11:17 -07:00
..
agent.c use bound_minsym as result for lookup_minimal_symbol et al 2014-02-26 12:11:17 -07:00
agent.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ax.def Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
break-common.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
btrace-common.h btrace, gdbserver: read branch trace incrementally 2014-01-16 13:11:42 +01:00
buffer.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
buffer.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
common-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
common-utils.h Add ARI (ok) marker for __func__ reference in common-utils.h 2014-01-22 09:03:31 +04:00
common.m4 Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
create-version.sh Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
filestuff.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
filestuff.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
format.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
format.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_assert.h Move ASSERT_FUNCTION to FUNCTION_NAME. 2014-01-17 10:00:07 -08:00
gdb_locale.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_signals.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb_thread_db.h Move fallback thread_db.h to a separate file. 2013-04-16 18:14:55 +00:00
gdb_vecs.c Add delim_string_to_char_ptr_vec. 2014-01-17 10:23:29 -08:00
gdb_vecs.h Add delim_string_to_char_ptr_vec. 2014-01-17 10:23:29 -08:00
gdb_wait.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
glibc_thread_db.h Update glibc_thread_db.h from upstream. 2013-04-16 18:17:11 +00:00
host-defs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-cpuid.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-gcc-cpuid.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
i386-xstate.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-btrace.c convert to_supports_btrace 2014-02-19 07:45:26 -07:00
linux-btrace.h convert to_supports_btrace 2014-02-19 07:45:26 -07:00
linux-osdata.c Fix crash on process name "(sd-pam)" (PR 16594). 2014-02-21 18:39:40 +01:00
linux-osdata.h Change 'len' of linux_common_xfer_osdata to ULONGEST. 2014-01-14 22:20:51 +08:00
linux-procfs.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-procfs.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-ptrace.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
linux-ptrace.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mips-linux-watch.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mips-linux-watch.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
print-utils.c share "cell" code 2014-02-12 09:59:13 -07:00
print-utils.h share "cell" code 2014-02-12 09:59:13 -07:00
ptid.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
ptid.h common/ptid.h: Mention that process_stratum targets should prefer ptid.lwp. 2014-02-19 18:27:01 +00:00
queue.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
rsp-low.c update rsp-low comments 2014-02-12 09:59:20 -07:00
rsp-low.h update rsp-low comments 2014-02-12 09:59:20 -07:00
signals.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
vec.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
vec.h Move ASSERT_FUNCTION to FUNCTION_NAME. 2014-01-17 10:00:07 -08:00
version.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
xml-utils.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
xml-utils.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00