1. May 11, 2012
    • H.J. Lu's avatar
      Always display addend as signed hex number · e04d7088
      H.J. Lu authored
      binutils/
      
      	PR binutils/14088
      	* readelf.c (dump_relocations): Always display addend as
      	signed hex number.
      
      ld/testsuite/
      
      	PR binutils/14088
      	* ld-ia64/tlspic.rd: Updated.
      	* ld-x86-64/tlsdesc-nacl.rd: Likewise.
      	* ld-x86-64/tlsdesc.rd: Likewise.
      	* ld-x86-64/tlspic-nacl.rd: Likewise.
      	* ld-x86-64/tlspic.rd: Likewise.
      e04d7088
    • Nick Clifton's avatar
      PR binutils/14028 · 208a4923
      Nick Clifton authored
      	* configure.in: Invoke ACX_HEADER_STRING.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      	* sysdep.h: If STRINGS_WITH_STRING is defined then include both
      	string.h and strings.h.
      208a4923
    • Pedro Alves's avatar
      2012-05-11 Yao Qi <yao@codesourcery.com> · bde24c0a
      Pedro Alves authored
      	    Pedro Alves  <palves@redhat.com>
      
      	* linux-low.c (enum stopping_threads_kind): New.
      	(stopping_threads): Change type to `enum stopping_threads_kind'.
      	(handle_extended_wait): If stopping and suspending threads, leave
      	the new_lwp suspended too.
      	(linux_wait_for_event): Adjust.
      	(stop_all_lwps): Set `stopping_threads' to
      	STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
      	whether we're suspending threads or just stopping them.  Assert no
      	recursion happens.
      bde24c0a
    • Nick Clifton's avatar
      PR 13503 · 99700d6f
      Nick Clifton authored
      	* reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
      	BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
      	* bfd-in2.h: Regenerate.
      	* libbfd.h: Regenrate.
      	* elf32-avr.c (elf_avr_howto_table): Add entries for
      	R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
      	(avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
      	R_AVR_8_HHI8.
      
      	* config/tc-avr.c (exp_mod_pm): Remove variable.
      	(exp_mod_data_t): New typedef.
      	(pexp_mod_data, exp_mod_data): New variables.
      	(avr_parse_cons_expression): Scan through exp_mod_data[] to find
      	data expression modifiers "pm", "gs", "lo8", hi8", "hhi8", "hh8"
      	and set pexp_mod_data accordingly to be used in avr_cons_fix_new.
      	(avr_cons_fix_new): Handle new data expression modifiers shipped
      	in pexp_mod_data.
      	(md_apply_fix): Handle BFD_RELOC_AVR_8_LO, BFD_RELOC_AVR_8_HI,
      	BFD_RELOC_AVR_8_HHI.
      
      	* elf/avr.h (RELOC_NUMBERS): Add values for R_AVR_8_LO8,
      	R_AVR_8_HI8, R_AVR_8_HHI8.
      99700d6f
    • H.J. Lu's avatar
      Handle R_X86_64_64 properly for x32 · fd885f3a
      H.J. Lu authored
      elfcpp/
      
      	PR gold/14091
      	* x86_64.h (R_X86_64_RELATIVE64): New.
      
      gold/
      
      	PR gold/14091
      	* x86_64.cc (Target_x86_64::Scan::local): For x32, generate
      	R_X86_64_RELATIVE64 instead of R_X86_64_RELATIVE in case of
      	R_X86_64_64.
      fd885f3a
    • Nick Clifton's avatar
      PR binutils/14006 · 6750a3a7
      Nick Clifton authored
      	* arm-dis.c (print_insn): Fix detection of instruction mode in
      	files containing multiple executable sections.
      6750a3a7
    • H.J. Lu's avatar
      Use int and bfd_signed_vma in x32 addend overflow check · 268a8d3a
      H.J. Lu authored
      bfd/
      
      	* elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
      	addend overflow check.
      
      gas/
      
      	* config/tc-i386.c (tc_gen_reloc): Use bfd_signed_vma in x32
      	addend overflow check.
      268a8d3a
    • DJ Delorie's avatar
      74b1e045
    • Alan Modra's avatar
      daily update · 099c90c4
      Alan Modra authored
      099c90c4
    • gdbadmin's avatar
      *** empty log message *** · 5eb53b33
      gdbadmin authored
      5eb53b33
    • H.J. Lu's avatar
      Display signed hex number in x32 addend overflow check · 6f2c9068
      H.J. Lu authored
      bfd/
      
      	* elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
      	hex number in x32 addend overflow check.
      
      gas/
      
      	* config/tc-i386.c (tc_gen_reloc): Display signed hex number in
      	x32 addend overflow check.
      
      ld/testsuite/
      
      	* ld-x86-64/ilp32-11.d: Updated.
      6f2c9068
    • Tom Tromey's avatar
      * dwarf2read.c (recursively_write_psymbols): New function. · 95554aad
      Tom Tromey authored
      	(write_psymtabs_to_index): Use it.
      
      	* dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
      	field.
      	(load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
      	(load_partial_comp_unit): Update.
      	(queue_comp_unit): Add argument 'pretend_language'.
      	(process_queue): Update.
      	(psymtab_to_symtab_1): Skip dependencies that have a user.
      	(load_partial_comp_unit_reader): Give meaning to the 'data'
      	argument.
      	(load_full_comp_unit): Add 'pretend_language' argument.
      	(process_full_comp_unit): Add 'pretend_language' argument.  Set
      	language on CU.
      	(process_imported_unit_die, read_file_scope, read_type_unit_scope):
      	Update.
      	(maybe_queue_comp_unit): Add 'pretend_language' argument.
      	(follow_die_offset, follow_die_sig, read_signatured_type_reader):
      	Update.
      	(prepare_one_comp_unit): Add 'pretend_language' argument.
      
      	* dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
      	(struct dwarf2_per_objfile) <just_read_cus>: New field.
      	(struct dwarf2_per_cu_data) <imported_symtabs>: New field.
      	(dw2_do_instantiate_symtab): Check whether symtab was read in
      	before queueing.
      	(dw2_instantiate_symtab): Add assertion.  Call
      	process_cu_includes.
      	(process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
      	(partial_symtab_p): New typedef.
      	(set_partial_user): New function.
      	(dwarf2_build_psymtabs_hard): Use set_partial_user.
      	(scan_partial_symbols): Add imported CU to imported_symtabs.
      	(dwarf2_psymtab_to_symtab): Call process_cu_includes.
      	(psymtab_to_symtab_1): Do nothing if psymtab is readin.
      	(get_symtab, recursively_compute_inclusions)
      	(compute_symtab_includes, process_cu_includes)
      	(process_imported_unit_die): New functions.
      	(process_die) <DW_TAG_imported_unit>: New case.
      	(dwarf2_per_objfile_free): Free 'imported_symtabs'.
      
      	* dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
      	comment.
      	(struct partial_die_info) <locdesc>: Remove.
      	<d>: New field.
      	(process_psymtab_comp_unit): Add 'read_partial' argument.
      	Update.
      	(process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
      	(scan_partial_symbols): Handle DW_TAG_imported_unit.
      	(add_partial_symbol): Update.
      	(process_die): Handle DW_TAG_partial_unit.
      	(read_file_scope): Update comment.
      	(load_partial_dies): Handle DW_TAG_imported_unit.
      	(read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
      	(determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
      95554aad
    • Tom Tromey's avatar
      * cc-with-dwz.sh: New file. · e871fbb9
      Tom Tromey authored
      e871fbb9
    • Tom Tromey's avatar
      * symtab.h (struct symtab) <includes, user>: New fields. · b5b04b5b
      Tom Tromey authored
      	* block.h (struct block_iterator) <d, idx, which>: New fields.
      	* block.c (initialize_block_iterator, find_iterator_symtab)
      	(block_iterator_step, block_iter_name_step)
      	(block_iter_match_step): New functions.
      	(block_iterator_first, block_iterator_next)
      	(block_iter_name_first, block_iter_name_next)
      	(block_iter_match_first, block_iter_match_next): Rewrite.
      	(get_block_symtab): New function.
      b5b04b5b
    • Tom Tromey's avatar
      * jv-lang.c (get_java_class_symtab): Use allocate_global_block, · 84a146c9
      Tom Tromey authored
      	set_block_symtab.
      	* jit.c (finalize_symtab): Use allocate_global_block,
      	set_block_symtab.
      	* buildsym.c (finish_block_internal): New function, from old
      	finish_block.
      	(finish_block): Rewrite.
      	(end_symtab): Use finish_block_internal, set_block_symtab.
      	* block.h (struct global_block): New.
      	(allocate_global_block, set_block_symtab): Declare.
      	* block.c (allocate_global_block, set_block_symtab): New
      	functions.
      84a146c9
    • Tom Tromey's avatar
      * psymtab.c (partial_map_expand_apply): Add assertion. · 9439a077
      Tom Tromey authored
      	(partial_map_symtabs_matching_filename): Skip included psymtabs.
      	(psymtab_to_symtab): Find unshared psymtab.
      	(dump_psymtab): Print including psymtabs.
      	(recursively_search_psymtabs): New function.
      	(expand_symtabs_matching_via_partial): Use it.
      	* psympriv.h (struct partial_symtab) <user, searched_flag>: New
      	fields.
      	(enum psymtab_search_status): New.
      9439a077
    • Tom Tromey's avatar
      * tracepoint.c (scope_info): Update. · 8157b174
      Tom Tromey authored
      	* symtab.c (lookup_block_symbol, iterate_over_symbols)
      	(find_pc_sect_symtab, search_symbols)
      	(default_make_symbol_completion_list_break_on)
      	(make_file_symbol_completion_list): Update.
      	* symmisc.c (dump_symtab_1): Update.
      	* stack.c (print_frame_args, iterate_over_block_locals)
      	(print_frame_labels, iterate_over_block_arg_vars): Update.
      	* python/py-block.c (block_object) <dict>: Remove.
      	<block>: New field.
      	<iter>: Change type.
      	(blpy_iter): Update.
      	(blpy_block_syms_iternext): Update.
      	* psymtab.c (map_block): Use block iterators.
      	* objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
      	* mi/mi-cmd-stack.c (list_args_or_locals): Update.
      	* mdebugread.c (parse_symbol, mylookup_symbol): Update.
      	* infrun.c (check_exception_resume): Update.
      	* cp-support.c (make_symbol_overload_list_block): Update.
      	* coffread.c (patch_opaque_types): Update.
      	* buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
      	* block.h (struct block_iterator): New.
      	(block_iterator_first, block_iterator_next, block_iter_name_first)
      	(block_iter_name_next, block_iter_match_first)
      	(block_iter_match_next): Declare.
      	(ALL_BLOCK_SYMBOLS): Redefine.
      	* block.c (block_iterator_first, block_iterator_next)
      	(block_iter_name_first, block_iter_name_next)
      	(block_iter_match_first, block_iter_match_next): New functions.
      	* ada-lang.c (ada_add_block_symbols)
      	(ada_make_symbol_completion_list): Use block iterator.
      8157b174
    • Tom Tromey's avatar
      * psymtab.c (PSYMTAB_TO_SYMTAB): Remove. · a2ca7a52
      Tom Tromey authored
      	(find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
      	(lookup_partial_symbol, find_last_source_symtab_from_partial)
      	(read_psymtabs_with_filename, map_matching_symbols_psymtab)
      	(expand_symtabs_matching_via_partial, maintenance_check_symtabs):
      	Update.
      a2ca7a52
    • H.J. Lu's avatar
      Count R_X86_64_RELATIVE64 as reloc_class_relative · 1da80baa
      H.J. Lu authored
      bfd/
      
      	* elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
      	R_X86_64_RELATIVE64.
      
      ld/testsuite/
      
      	* ld-x86-64/pr13082-1a.d: Check RELACOUNT.
      	* ld-x86-64/pr13082-1b.d: Likewise.
      1da80baa
    • Joel Brobecker's avatar
      Add print 'file'::var testcase with two libs defining the same global variable · 64ea88dc
      Joel Brobecker authored
      gdb/testsuite/ChangeLog:
      
      	* gdb.base/print-file-var-lib1.c, gdb.base/print-file-var-lib2.c,
      	gdb.base/print-file-var-main.c, gdb.base/print-file-var.exp:
      	New files.
      
      gdb/ChangeLog:
      
              * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
              print-file-var-lib2.c, print-file-var-main.c and
              print-file-var.exp (located in gdb/testsuite/gdb.base).
      64ea88dc
    • Joel Brobecker's avatar
      New testcase: gdb.base/ctxobj.exp · afba63f1
      Joel Brobecker authored
      gdb/testsuite/ChangeLog:
      
              * gdb.base/ctxobj-f.c, gdb.base/ctxobj-m.c, gdb.base/ctxobj-v.c,
              gdb.base/ctxobj.exp: New files.
      afba63f1
    • Joel Brobecker's avatar
      Search global symbols from the expression's block objfile first. · 99a547d6
      Joel Brobecker authored
      gdb/ChangeLog:
      
              * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
              try locating the symbol in the symbol's own objfile first, before
              extending the search to all objfiles.
              * symtab.c (lookup_symbol_aux_objfile): New function, extracted
              out of lookup_symbol_aux_symtabs.
              (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
              Replace extracted-out code by call to lookup_symbol_aux_objfile.
              Do not search EXCLUDE_OBJFILE.
              (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
              (lookup_symbol_global): Search for matches in the block's objfile
              first, before searching all other objfiles.
      99a547d6
  2. May 10, 2012
  3. May 09, 2012