This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 9b333ba3405066be10f4fc1c497b7fb1a7cafd53


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  9b333ba3405066be10f4fc1c497b7fb1a7cafd53 (commit)
       via  5f6cac4085c95c5339b9549dc06d4f9184184fa6 (commit)
       via  2750ef27997b6114da090a25a314396eaf85a87a (commit)
       via  34643a32c6b17041b7ebc13ac3077f6eaec7ec80 (commit)
       via  2273f0ac95a79ce29ef42025c63f90e82cf907d7 (commit)
       via  77e371c079408e265f1dfd2b0620dd8e76c23371 (commit)
       via  3b7344d5ab495cd82b6c72ec5e00d018549837fb (commit)
       via  40c1a0073715c1e3f93afc83edac8396eb362a98 (commit)
       via  efd66ac6698323d9523a4dce352008c4c835812e (commit)
       via  50e65b1713256487d50514b50b38b3fd1080b93e (commit)
      from  1b588015839caafc608a6944a78aea170f5fb2f6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9b333ba3405066be10f4fc1c497b7fb1a7cafd53

commit 9b333ba3405066be10f4fc1c497b7fb1a7cafd53
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Oct 17 12:03:06 2013 -0600

    make "file" use the BFD cache better
    
    Right now the "file" command will discard the exec_bfd and then
    possibly open a new one.
    
    If this ends up reopening the same file, it can cause needless work by
    gdb -- destroying all the per-BFD data just to re-read it again.
    
    This patch changes the code to hold a reference to the old exec_bfd
    while opening the new one.
    
    The possible downside of this is a higher peak memory use.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* exec.c (exec_file_attach): Hold a reference to exec_bfd.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5f6cac4085c95c5339b9549dc06d4f9184184fa6

commit 5f6cac4085c95c5339b9549dc06d4f9184184fa6
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Oct 15 11:50:58 2013 -0600

    add short-circuit logic to elfread.c
    
    If minimal symbols have already been read into a per-BFD object, then
    a symbol reader can skip re-reading them.  This changes the ELF reader
    to do so.
    
    We only skip the work if the file is ELF+DWARF.  If it has stabs or
    mdebug sections, then I think extra information is computed during the
    minsym creation pass; and so we must still repeat it.  Eventually even
    this will go away, once all symbol types have switched to being
    progspace-independent.  In the meantime this has no negative effect --
    it is just a missing optimization for a small set of users.
    
    This change also required a somewhat non-obvious change to the OBJSTAT
    accounting code.  If a symbol reader skips re-reading minimal symbols,
    then the corresponding OBJSTAT will not be updated.  This leads to a
    test failure in gdb.base/maint.exp.
    
    To fix this, I've moved the needed stat field out of objfile and into
    the per-BFD object.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* elfread.c (elf_read_minimal_symbols): Return early if
    	minimal symbols have already been read.  Add "ei" parameter.
    	(elf_symfile_read): Call elf_read_minimal_symbols earlier.
    	* minsyms.c (prim_record_minimal_symbol_full): Update.
    	* objfiles.h (struct objstats) <n_minsyms>: Move...
    	(struct objfile_per_bfd_storage) <n_minsyms>: ... here.
    	* symmisc.c (print_objfile_statistics): Update.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2750ef27997b6114da090a25a314396eaf85a87a

commit 2750ef27997b6114da090a25a314396eaf85a87a
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Oct 15 11:43:46 2013 -0600

    split out elf_read_minimal_symbols
    
    This is just a simple refactoring in elfread.c to split out the
    minsym-reading code into its own function.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* elfread.c (elf_read_minimal_symbols): New function, from
    	elf_symfile_read.
    	(elf_symfile_read): Call it.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=34643a32c6b17041b7ebc13ac3077f6eaec7ec80

commit 34643a32c6b17041b7ebc13ac3077f6eaec7ec80
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Oct 15 11:37:19 2013 -0600

    move minimal symbols to per-bfd
    
    Now that minimal symbols are independent of the program space, we can
    move them to the per-BFD object.  This lets us save memory in the
    multi-inferior case; and, once the symbol readers are updated, time.
    
    The other prerequisite for this move is that all the objects referred
    to by the minimal symbols have a lifetime at least as long as the
    per-BFD object.  I think this is satisfied partially by this patch
    (moving the copied names there) and partially by earlier patches
    moving the demangled name hash.
    
    This patch contains a bit of logic to avoid creating new minimal
    symbols if they have already been read for a given BFD.  This allows
    us to avoid trying to update all the symbol readers for this
    condition.  At first glance this may seem like a hack, but some symbol
    readers mix psym and minsym reading, and would require logic just like
    this regardless -- and it is simpler and less error-prone to just do
    the work in a central spot.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
    	(lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
    	(lookup_minimal_symbol_solib_trampoline)
    	(lookup_minimal_symbol_by_pc_section_1)
    	(lookup_minimal_symbol_and_objfile): Update.
    	(prim_record_minimal_symbol_full): Use the per-BFD obstack.
    	Don't allocate a minimal symbol if minsyms have already been read.
    	(build_minimal_symbol_hash_tables): Update.
    	(install_minimal_symbols): Do nothing if minsyms already read.
    	Use the per-BFD obstack.
    	(terminate_minimal_symbol_table): Use the per-BFD obstack.
    	* objfiles.c (allocate_objfile): Call
    	terminate_minimal_symbol_table later.
    	(have_minimal_symbols): Update.
    	* objfiles.h (struct objfile_per_bfd_storage) <msymbols,
    	minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
    	Move from struct objfile.
    	<minsyms_read>: New field.
    	(struct objfile) <msymbols, minimal_symbol_count,
    	msymbol_hash, msymbol_demangled_hash>: Move.
    	(ALL_OBJFILE_MSYMBOLS): Update.
    	* symfile.c (read_symbols): Set minsyms_read.
    	(reread_symbols): Update.
    	* symmisc.c (dump_objfile, dump_msymbols): Update.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2273f0ac95a79ce29ef42025c63f90e82cf907d7

commit 2273f0ac95a79ce29ef42025c63f90e82cf907d7
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Oct 15 13:28:57 2013 -0600

    change minsyms not to be relocated at read-time
    
    This removes the runtime offsets from minsyms.  Instead, these offsets
    will now be applied whenever the minsym's address is computed.
    
    This patch redefines MSYMBOL_VALUE_ADDRESS to actually use the offsets
    from the given objfile.  Then, it updates all the symbol readers,
    changing them so that they do not add in the section offset when
    creating the symbol.
    
    This change also lets us remove relocation of minsyms from
    objfile_relocate1 and also msymbols_sort.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* minsyms.c (msymbols_sort): Remove.
    	* minsyms.h (msymbols_sort): Remove.
    	* objfiles.c (objfile_relocate1): Don't relocate minsyms.
    	* symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
    	* elfread.c (elf_symtab_read): Don't add section offsets.
    	* xcoffread.c (record_minimal_symbol): Don't add section offset
    	to minimal symbol address.
    	* somread.c (text_offset, data_offset): Remove.
    	(som_symtab_read): Don't add section offsets to minimal symbol
    	addresses.
    	* coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
    	Don't add section offsets to minimal symbols.
    	* coffread.c (coff_symtab_read): Don't add section offsets
    	to minimal symbol addresses.
    	* machoread.c (macho_symtab_add_minsym): Don't add section offset
    	to minimal symbol addresses.
    	* mipsread.c (read_alphacoff_dynamic_symtab): Don't add
    	section offset to minimal symbol addresses.
    	* mdebugread.c (parse_partial_symbols): Don't add section
    	offset to minimal symbol addresses.
    	* dbxread.c (read_dbx_dynamic_symtab): Don't add section
    	offset to minimal symbol addresses.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=77e371c079408e265f1dfd2b0620dd8e76c23371

commit 77e371c079408e265f1dfd2b0620dd8e76c23371
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 15 08:46:35 2013 -0600

    start change to progspace independence
    
    This patch starts changing minimal symbols to be independent of the
    program space.
    
    Specifically, it adds a new objfile parameter to MSYMBOL_VALUE_ADDRESS
    and changes all the code to use it.  This is needed so we can change
    gdb to apply the section offset when a minsym's address is computed,
    as opposed to baking the offsets into the symbol itself.
    
    A few spots still need the unrelocated address.  For these, we
    introduce MSYMBOL_VALUE_RAW_ADDRESS.
    
    As a convenience, we also add the new macro BMSYMBOL_VALUE_ADDRESS,
    which computes the address of a bound minimal symbol.  This just does
    the obvious thing with the fields.
    
    Note that this change does not actually enable program space
    independence.  That requires more changes to gdb.  However, to ensure
    that these changes compile properly, this patch does add the needed
    section lookup code to MSYMBOL_VALUE_ADDRESS -- it just ensures it has
    no effect at runtime by multiplying the offset by 0.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* ada-lang.c (ada_main_name): Update.
    	(ada_add_standard_exceptions): Update.
    	* ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
    	* aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
    	* arm-tdep.c (skip_prologue_function, 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.
    	* blockframe.c (get_pc_function_start)
    	(find_pc_partial_function_gnu_ifunc): Update.
    	* breakpoint.c (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-valprint.c (c_val_print): Update.
    	* coff-pe-read.c (add_pe_forwarded_sym): Update.
    	* common/agent.c (agent_look_up_symbols): Update.
    	* dbxread.c (find_stab_function_addr, end_psymtab): Update.
    	* dwarf2loc.c (call_site_to_target_addr): Update.
    	* dwarf2read.c (dw2_find_pc_sect_symtab): Update.
    	* elfread.c (elf_gnu_ifunc_record_cache)
    	(elf_gnu_ifunc_resolve_by_got): Update.
    	* findvar.c (default_read_var_value): Update.
    	* frame.c (inside_main_func): Update.
    	* frv-tdep.c (frv_frame_this_id): Update.
    	* glibc-tdep.c (glibc_skip_solib_resolver): Update.
    	* gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
    	Update.
    	* hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
    	(hppa_hpux_find_dummy_bpaddr): Update.
    	* hppa-tdep.c (hppa_symbol_address): Update.
    	* infcmd.c (until_next_command): Update.
    	* jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
    	Update.
    	* linespec.c (minsym_found, add_minsym): 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.
    	* maint.c (maintenance_translate_address): Update.
    	* minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
    	(frob_address): New function.
    	(lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
    	frob_address.  Rename parameter to "pc_in".
    	(compare_minimal_symbols, compact_minimal_symbols): Use raw
    	addresses.
    	(find_solib_trampoline_target, minimal_symbol_upper_bound):
    	Update.
    	* mips-linux-tdep.c (mips_linux_skip_resolver): Update.
    	* mips-tdep.c (mips_skip_pic_trampoline_code): Update.
    	* objc-lang.c (find_objc_msgsend): Update.
    	* objfiles.c (objfile_relocate1): Update.
    	* obsd-tdep.c (obsd_skip_solib_resolver): Update.
    	* p-valprint.c (pascal_val_print): Update.
    	* parse.c (write_exp_msymbol): Update.
    	* ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
    	(ppc_elfv2_skip_entrypoint): Update.
    	* ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
    	* printcmd.c (build_address_symbolic, msym_info)
    	(address_info): Update.
    	* proc-service.c (ps_pglobal_lookup): Update.
    	* psymtab.c (find_pc_sect_psymtab_closer)
    	(find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
    	Change msymbol parameter to bound_minimal_symbol.
    	* ravenscar-thread.c (get_running_thread_id): Update.
    	* remote.c (remote_check_symbols): Update.
    	* sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
    	address.
    	* sol2-tdep.c (sol2_skip_solib_resolver): Update.
    	* solib-dsbt.c (lm_base): Update.
    	* solib-frv.c (lm_base, main_got): Update.
    	* solib-irix.c (locate_base): Update.
    	* solib-som.c (som_solib_create_inferior_hook)
    	(link_map_start): Update.
    	* solib-spu.c (spu_enable_break, ocl_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, scan_file_globals): Update.
    	* stack.c (find_frame_funname): Update.
    	* symfile-debug.c (debug_qf_expand_symtabs_matching)
    	(debug_qf_find_pc_sect_symtab): Update.
    	* symfile.c (simple_read_overlay_table)
    	(simple_overlay_update): Update.
    	* symfile.h (struct quick_symbol_functions)
    	<find_pc_sect_symtab>: Change type of msymbol to
    	bound_minimal_symbol.
    	* symmisc.c (dump_msymbols): Update.
    	* symtab.c (find_pc_sect_symtab_via_partial)
    	(find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
    	(search_symbols, print_msymbol_info): Update.
    	* symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
    	(MSYMBOL_VALUE_ADDRESS): Redefine.
    	(BMSYMBOL_VALUE_ADDRESS): New macro.
    	* tracepoint.c (scope_info): Update.
    	* tui/tui-disasm.c (tui_find_disassembly_address)
    	(tui_get_begin_asm_address): Update.
    	* valops.c (find_function_in_inferior): Update.
    	* value.c (value_static_field, value_fn_field): Update.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3b7344d5ab495cd82b6c72ec5e00d018549837fb

commit 3b7344d5ab495cd82b6c72ec5e00d018549837fb
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Oct 14 19:53:29 2013 -0600

    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.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=40c1a0073715c1e3f93afc83edac8396eb362a98

commit 40c1a0073715c1e3f93afc83edac8396eb362a98
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 15 08:44:43 2013 -0600

    make MSYMBOL_VALUE_ADDRESS an rvalue
    
    This changes MSYMBOL_VALUE_ADDRESS to be an rvalue.  In a later patch
    we change this macro to compute its value; this patch introduces a
    setter to make the break a bit cleaner.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* minsyms.c (prim_record_minimal_symbol_full): Use
    	SET_MSYMBOL_VALUE_ADDRESS.
    	* objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
    	* sh64-tdep.c (sh64_elf_make_msymbol_special): Use
    	SET_MSYMBOL_VALUE_ADDRESS.
    	* symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
    	(SET_MSYMBOL_VALUE_ADDRESS): New macro.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=efd66ac6698323d9523a4dce352008c4c835812e

commit efd66ac6698323d9523a4dce352008c4c835812e
Author: Tom Tromey <tromey@redhat.com>
Date:   Thu Aug 15 08:43:43 2013 -0600

    change minsym representation
    
    In a later patch we're going to change the minimal symbol address
    calculation to apply section offsets at the point of use.  To make it
    simpler to catch potential problem spots, this patch changes the
    representation of minimal symbols and introduces new
    minimal-symbol-specific variants of the various accessors.  This is
    necessary because it would be excessively ambitious to try to convert
    all the symbol types at once.
    
    The core of this change is just renaming a field in minimal_symbol;
    the rest is just a fairly mechanical rewording.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
    	(MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
    	(MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
    	(MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
    	(MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
    	(MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
    	(MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
    	* ada-lang.c (ada_main_name): Update.
    	(ada_lookup_simple_minsym): Update.
    	(ada_make_symbol_completion_list): Update.
    	(ada_add_standard_exceptions): Update.
    	* ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
    	* aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
    	* amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
    	* arm-tdep.c (skip_prologue_function): Update.
    	(arm_skip_stack_protector, arm_skip_stub): Update.
    	* arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
    	(arm_wince_skip_main_prologue): Update.
    	* auxv.c (ld_so_xfer_auxv): Update.
    	* avr-tdep.c (avr_scan_prologue): Update.
    	* ax-gdb.c (gen_var_ref): Update.
    	* block.c (call_site_for_pc): Update.
    	* blockframe.c (get_pc_function_start): Update.
    	(find_pc_partial_function_gnu_ifunc): Update.
    	* breakpoint.c (create_overlay_event_breakpoint): Update.
    	(create_longjmp_master_breakpoint): Update.
    	(create_std_terminate_master_breakpoint): Update.
    	(create_exception_master_breakpoint): Update.
    	(resolve_sal_pc): Update.
    	* bsd-uthread.c (bsd_uthread_lookup_address): Update.
    	* btrace.c (ftrace_print_function_name, ftrace_function_switched):
    	Update.
    	* c-valprint.c (c_val_print): Update.
    	* coff-pe-read.c (add_pe_forwarded_sym): Update.
    	* coffread.c (coff_symfile_read): Update.
    	* common/agent.c (agent_look_up_symbols): Update.
    	* dbxread.c (find_stab_function_addr): Update.
    	(end_psymtab): Update.
    	* dwarf2loc.c (call_site_to_target_addr): Update.
    	(func_verify_no_selftailcall): Update.
    	(tailcall_dump): Update.
    	(call_site_find_chain_1): Update.
    	(dwarf_expr_reg_to_entry_parameter): Update.
    	* elfread.c (elf_gnu_ifunc_record_cache): Update.
    	(elf_gnu_ifunc_resolve_by_got): Update.
    	* f-valprint.c (info_common_command): Update.
    	* findvar.c (read_var_value): Update.
    	* frame.c (get_prev_frame_1): Update.
    	(inside_main_func): Update.
    	* frv-tdep.c (frv_skip_main_prologue): Update.
    	(frv_frame_this_id): Update.
    	* glibc-tdep.c (glibc_skip_solib_resolver): Update.
    	* gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
    	* gnu-v3-abi.c (gnuv3_rtti_type): Update.
    	(gnuv3_skip_trampoline): Update.
    	* hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
    	(hppa64_hpux_in_solib_call_trampoline): Update.
    	(hppa_hpux_skip_trampoline_code): Update.
    	(hppa64_hpux_search_dummy_call_sequence): Update.
    	(hppa_hpux_find_import_stub_for_addr): Update.
    	(hppa_hpux_find_dummy_bpaddr): Update.
    	* hppa-tdep.c (hppa_symbol_address)
    	(hppa_lookup_stub_minimal_symbol): Update.
    	* i386-tdep.c (i386_skip_main_prologue): Update.
    	(i386_pe_skip_trampoline_code): Update.
    	* ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
    	* infcall.c (get_function_name): Update.
    	* infcmd.c (until_next_command): Update.
    	* jit.c (jit_breakpoint_re_set_internal): Update.
    	(jit_inferior_init): Update.
    	* linespec.c (minsym_found): Update.
    	(add_minsym): Update.
    	* linux-fork.c (info_checkpoints_command): Update.
    	* linux-nat.c (get_signo): Update.
    	* linux-thread-db.c (inferior_has_bug): Update.
    	* m32c-tdep.c (m32c_return_value): Update.
    	(m32c_m16c_address_to_pointer): Update.
    	(m32c_m16c_pointer_to_address): 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.
    	* maint.c (maintenance_translate_address): Update.
    	* minsyms.c (add_minsym_to_hash_table): Update.
    	(add_minsym_to_demangled_hash_table): Update.
    	(msymbol_objfile): Update.
    	(lookup_minimal_symbol): Update.
    	(iterate_over_minimal_symbols): Update.
    	(lookup_minimal_symbol_text): Update.
    	(lookup_minimal_symbol_by_pc_name): Update.
    	(lookup_minimal_symbol_solib_trampoline): Update.
    	(lookup_minimal_symbol_by_pc_section_1): Update.
    	(lookup_minimal_symbol_and_objfile): Update.
    	(prim_record_minimal_symbol_full): Update.
    	(compare_minimal_symbols): Update.
    	(compact_minimal_symbols): Update.
    	(build_minimal_symbol_hash_tables): Update.
    	(install_minimal_symbols): Update.
    	(terminate_minimal_symbol_table): Update.
    	(find_solib_trampoline_target): Update.
    	(minimal_symbol_upper_bound): Update.
    	* mips-linux-tdep.c (mips_linux_skip_resolver): Update.
    	* mips-tdep.c (mips_stub_frame_sniffer): Update.
    	(mips_skip_pic_trampoline_code): Update.
    	* msp430-tdep.c (msp430_skip_trampoline_code): Update.
    	* objc-lang.c (selectors_info): Update.
    	(classes_info): Update.
    	(find_methods): Update.
    	(find_imps): Update.
    	(find_objc_msgsend): Update.
    	* objfiles.c (objfile_relocate1): Update.
    	* objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
    	* obsd-tdep.c (obsd_skip_solib_resolver): Update.
    	* p-valprint.c (pascal_val_print): Update.
    	* parse.c (write_exp_msymbol): Update.
    	* ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
    	(ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
    	* ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
    	* printcmd.c (build_address_symbolic): Update.
    	(sym_info): Update.
    	(address_info): Update.
    	* proc-service.c (ps_pglobal_lookup): Update.
    	* psymtab.c (find_pc_sect_psymtab_closer): Update.
    	(find_pc_sect_psymtab): Update.
    	* python/py-framefilter.c (py_print_frame): Update.
    	* ravenscar-thread.c (get_running_thread_id): Update.
    	* record-btrace.c (btrace_call_history, btrace_get_bfun_name):
    	Update.
    	* remote.c (remote_check_symbols): Update.
    	* rs6000-tdep.c (rs6000_skip_main_prologue): Update.
    	(rs6000_skip_trampoline_code): Update.
    	* sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
    	* sol2-tdep.c (sol2_skip_solib_resolver): Update.
    	* solib-dsbt.c (lm_base): Update.
    	* solib-frv.c (lm_base): Update.
    	(main_got): Update.
    	* solib-irix.c (locate_base): Update.
    	* solib-som.c (som_solib_create_inferior_hook): Update.
    	(som_solib_desire_dynamic_linker_symbols): Update.
    	(link_map_start): Update.
    	* solib-spu.c (spu_enable_break): Update.
    	(ocl_enable_break): Update.
    	* solib-svr4.c (elf_locate_base): Update.
    	(enable_break): Update.
    	* spu-tdep.c (spu_get_overlay_table): Update.
    	(spu_catch_start): Update.
    	(flush_ea_cache): Update.
    	* stabsread.c (define_symbol): Update.
    	(scan_file_globals): Update.
    	* stack.c (find_frame_funname): Update.
    	(frame_info): Update.
    	* symfile.c (simple_read_overlay_table): Update.
    	(simple_overlay_update): Update.
    	* symmisc.c (dump_msymbols): Update.
    	* symtab.c (fixup_section): Update.
    	(find_pc_sect_line): Update.
    	(skip_prologue_sal): Update.
    	(search_symbols): Update.
    	(print_msymbol_info): Update.
    	(rbreak_command): Update.
    	(MCOMPLETION_LIST_ADD_SYMBOL): New macro.
    	(completion_list_objc_symbol): Update.
    	(default_make_symbol_completion_list_break_on): Update.
    	* tracepoint.c (scope_info): Update.
    	* tui/tui-disasm.c (tui_find_disassembly_address): Update.
    	(tui_get_begin_asm_address): Update.
    	* valops.c (find_function_in_inferior): Update.
    	* value.c (value_static_field): Update.
    	(value_fn_field): Update.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=50e65b1713256487d50514b50b38b3fd1080b93e

commit 50e65b1713256487d50514b50b38b3fd1080b93e
Author: Tom Tromey <tromey@redhat.com>
Date:   Mon Aug 19 07:58:44 2013 -0600

    introduce minimal_symbol_upper_bound
    
    This introduces minimal_symbol_upper_bound and changes various bits of
    code to use it.  Since this function is intimately tied to the
    implementation of minimal symbol tables, I believe it belongs in
    minsyms.c.
    
    The new function is extracted from find_pc_partial_function_gnu_ifunc.
    This isn't a "clean" move because the old function interleaved the
    caching and the computation; but this doesn't make sense for the new
    code.
    
    2014-02-26  Tom Tromey  <tromey@redhat.com>
    
    	* blockframe.c (find_pc_partial_function_gnu_ifunc): Use
    	bound minimal symbols.  Move code that knows about minsym
    	table layout...
    	* minsyms.c (minimal_symbol_upper_bound): ... here.  New
    	function.
    	* minsyms.h (minimal_symbol_upper_bound): Declare.
    	* objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
    	minimal_symbol_upper_bound.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog               |  464 +++++++++++++++++++++++++++++++++++++++++++
 gdb/ada-lang.c              |   18 +-
 gdb/ada-tasks.c             |   12 +-
 gdb/aix-thread.c            |   15 +-
 gdb/amd64-windows-tdep.c    |    6 +-
 gdb/arm-tdep.c              |   14 +-
 gdb/arm-wince-tdep.c        |    6 +-
 gdb/auxv.c                  |    9 +-
 gdb/avr-tdep.c              |    7 +-
 gdb/ax-gdb.c                |    7 +-
 gdb/block.c                 |    2 +-
 gdb/blockframe.c            |   54 +----
 gdb/breakpoint.c            |   60 +++---
 gdb/bsd-uthread.c           |    6 +-
 gdb/btrace.c                |    4 +-
 gdb/c-exp.y                 |    2 +-
 gdb/c-valprint.c            |    7 +-
 gdb/coff-pe-read.c          |   28 ++--
 gdb/coffread.c              |   17 +-
 gdb/common/agent.c          |    7 +-
 gdb/d-lang.c                |    4 +-
 gdb/dbxread.c               |   42 ++---
 gdb/dec-thread.c            |    6 +-
 gdb/dwarf2loc.c             |   33 ++--
 gdb/dwarf2read.c            |    2 +-
 gdb/elfread.c               |  115 ++++++-----
 gdb/eval.c                  |    2 +-
 gdb/exec.c                  |   16 +-
 gdb/findvar.c               |   22 +--
 gdb/frame.c                 |    8 +-
 gdb/frv-tdep.c              |    9 +-
 gdb/gcore.c                 |    4 +-
 gdb/glibc-tdep.c            |    6 +-
 gdb/gnu-v2-abi.c            |    2 +-
 gdb/gnu-v3-abi.c            |   24 +-
 gdb/go-lang.c               |    4 +-
 gdb/hppa-hpux-tdep.c        |   36 ++--
 gdb/hppa-tdep.c             |   21 ++-
 gdb/hppa-tdep.h             |    2 +-
 gdb/i386-tdep.c             |    6 +-
 gdb/ia64-tdep.c             |    3 +-
 gdb/infcall.c               |    2 +-
 gdb/infcmd.c                |    2 +-
 gdb/jit.c                   |   17 +-
 gdb/linespec.c              |   15 +-
 gdb/linux-fork.c            |   11 +-
 gdb/linux-nat.c             |    7 +-
 gdb/linux-thread-db.c       |    6 +-
 gdb/m32c-tdep.c             |   29 ++--
 gdb/m32r-tdep.c             |    5 +-
 gdb/m68hc11-tdep.c          |    6 +-
 gdb/machoread.c             |   19 +--
 gdb/maint.c                 |    6 +-
 gdb/mdebugread.c            |   38 +---
 gdb/minsyms.c               |  332 ++++++++++++++++++-------------
 gdb/minsyms.h               |   43 ++--
 gdb/mips-linux-tdep.c       |    4 +-
 gdb/mips-tdep.c             |   10 +-
 gdb/mipsread.c              |    3 -
 gdb/msp430-tdep.c           |    2 +-
 gdb/objc-lang.c             |   49 +++---
 gdb/objfiles.c              |   16 +--
 gdb/objfiles.h              |   67 ++++---
 gdb/obsd-tdep.c             |    5 +-
 gdb/p-lang.c                |    8 +-
 gdb/p-valprint.c            |    7 +-
 gdb/parse.c                 |    6 +-
 gdb/ppc-linux-tdep.c        |   16 +-
 gdb/ppc-sysv-tdep.c         |   10 +-
 gdb/printcmd.c              |   50 +++---
 gdb/proc-service.c          |    7 +-
 gdb/psymtab.c               |   14 +-
 gdb/python/py-framefilter.c |    2 +-
 gdb/ravenscar-thread.c      |   28 ++--
 gdb/record-btrace.c         |    4 +-
 gdb/remote.c                |    8 +-
 gdb/rs6000-tdep.c           |    8 +-
 gdb/sh64-tdep.c             |    2 +-
 gdb/sol-thread.c            |    6 +-
 gdb/sol2-tdep.c             |    5 +-
 gdb/solib-dsbt.c            |    6 +-
 gdb/solib-frv.c             |   12 +-
 gdb/solib-irix.c            |    6 +-
 gdb/solib-som.c             |   79 ++++----
 gdb/solib-spu.c             |   16 +-
 gdb/solib-svr4.c            |   18 +-
 gdb/somread.c               |   24 +--
 gdb/spu-tdep.c              |   29 ++--
 gdb/stabsread.c             |   23 +-
 gdb/stack.c                 |   15 +-
 gdb/symfile-debug.c         |    4 +-
 gdb/symfile.c               |   21 +--
 gdb/symfile.h               |    2 +-
 gdb/symmisc.c               |   23 +-
 gdb/symtab.c                |   90 +++++----
 gdb/symtab.h                |   45 ++++-
 gdb/tracepoint.c            |    6 +-
 gdb/tui/tui-disasm.c        |   21 +-
 gdb/valops.c                |    2 +-
 gdb/value.c                 |   10 +-
 gdb/xcoffread.c             |    1 -
 101 files changed, 1495 insertions(+), 945 deletions(-)


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]