1. 09 Oct, 2010 2 commits
    • Jeff Johnston's avatar
      · 6ed3211e
      Jeff Johnston authored
      2010-10-08  Bernd Schmidt  <bernds@codesourcery.com>
                  Joseph Myers  <joseph@codesourcery.com>
      
              * COPYING.LIBGLOSS: Add National Semiconductor and CodeSourcery
              notices.
              * COPYING.NEWLIB: Add Texas Instruments notice.
      6ed3211e
    • gdbadmin's avatar
      *** empty log message *** · a76f9845
      gdbadmin authored
      a76f9845
  2. 08 Oct, 2010 11 commits
  3. 07 Oct, 2010 13 commits
    • Alan Modra's avatar
      daily update · 5c9ec63f
      Alan Modra authored
      5c9ec63f
    • Dave Korn's avatar
      * configure.ac (build_lto_plugin): New shell variable. · a8eb3f0a
      Dave Korn authored
      	(--enable-lto): Turn on by default for all non-ELF platforms that
      	have had LTO support added so far.  Set build_lto_plugin appropriately
      	for both ELF and non-ELF.
      	(configdirs): Add lto-plugin or not based on build_lto_plugin.
      	* configure: Regenerate.
      a8eb3f0a
    • Doug Evans's avatar
      00e14314
    • Ralf Wildenhues's avatar
    • Doug Evans's avatar
      * dwarf2read.c (mapped_index): Rename member index_table to · 3876f04e
      Doug Evans authored
      	symbol_table and index_table_slots to symbol_table_slots.
      	All uses updated.
      	(create_symbol_hash_table): Renamed from create_index_table.
      	All callers updated.
      	(add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
      	(write_hash_table): Rename local index_table to symbol_hash_table.
      3876f04e
    • Doug Evans's avatar
      * addrmap.h (addrmap_foreach_fn): New typedef. · 855c153f
      Doug Evans authored
      	(addrmap_foreach): Declare.
      	* addrmap.c (struct addrmap_funcs): New member foreach.
      	(addrmap_foreach): New function.
      	(addrmap_fixed_foreach): New function.
      	(addrmap_fixed_funcs): Update.
      	(struct mutable_foreach_data): New struct.
      	(addrmap_mutable_foreach_worker): New function.
      	(addrmap_mutable_foreach): New function.
      	(addrmap_mutable_funcs): Update.
      855c153f
    • DJ Delorie's avatar
      merge from gcc · 94e48200
      DJ Delorie authored
      94e48200
    • Bernd Schmidt's avatar
      gas/ · 5d4c71e1
      Bernd Schmidt authored
      	* config/tc-tic6x.c (tic6x_try_encode): Correct encoding of fstg field
      	in SPKERNEL instructions.
      
      opcodes/
      	* tic6x-dis.c (print_insn_tic6x): Correct decoding of fstg field
      	in SPKERNEL instructions.
      
      gas/testsuite/
      	* gas/tic6x/insns-c674x-sploop.d: Add two more sploop/spkernel tests.
      	* gas/tic6x/insns-c674x-sploop.s: Likewise.
      5d4c71e1
    • Paul N. Hilfinger's avatar
      Correct dict_hash to our most recent version. · 1d2a4540
      Paul N. Hilfinger authored
      Several changes to dict_hash from Adacore's local version were inadvertantly
      left out of the last change to that function.  These changes conservatively
      cause dict_hash to revert to msymbol_hash_iw in more cases where the symbol
      being hashed is known not to be Ada-encoded.  This avoids a few cases where
      the function hashes large groups of names with similar prefixes to the same
      value.
      
      Changelog:
      
      	gdb/
      	* dictionary.c (dict_hash): Revert to msymbol_hash_iw in
      	more cases.
      1d2a4540
    • Paul N. Hilfinger's avatar
      Rework symbol searches to move Ada-specific stuff to ada-lang.c. · 40658b94
      Paul N. Hilfinger authored
      This is a clean-up of some of our symbol-lookup machinery to pull some
      kludgy Ada-specific definitions out of psymtab.c.  In place of
      map_ada_symtabs and ada_lookup_partial_symbol, we have a method
      map_matching_symbols, which searches through all symbol tables and
      partial symbol tables looking for a symbol that matches according to
      a matching function that is passed as a parameter. This requires some
      care, because partial symbol tables speed up searches by binary search,
      while full symbol tables use hashing. To call map_matching_symbols, therefore,
      you may need to supply both a matching function that is compatible with the
      dictionary hash function and an ordering relation that is compatible with
      strcmp_iw, which is used to order partial symbol tables.
      
      Having added this general routine to psymtab.c, we use it in ada-lang.c
      to rework add_non_local_symbols (now renamed add_nonlocal_symbols).
      
      Changelog:
      
          gdb/
      
          * ada-lang.c (full_match): Declare.
          (ada_match_name): Rename to match_name (we should avoid prefixing static
          symbols with "ada_").
          (match_name): New name for ada_match_name.
          (struct ada_psym_data): Remove and replace with...
          (struct match_data): User data for map_matching_symbols.
          (ada_add_psyms): Remove.
          (aux_add_nonlocal_symbols): New function, used as callback for
          map_matching_symbols.
          (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
          symbols.
          (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
          (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
          Rework to use map_matching_symbols instead of map_ada_symtabs.
          (ada_lookup_symbol_list): Use add_nonlocal_symbols.
          * psymtab.c: Include dependency on dictionary.h.
          (match_partial_symbol): New function.
          (ada_lookup_partial_symbol): Remove.
          (map_block): New function, auxiliary to map_matching_symbols_psymtab.
          (map_matching_symbols_psymtab): New function.
          (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
          * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
      40658b94
    • Paul N. Hilfinger's avatar
      Extend hashed symbol dictionaries to work with Ada · c4d840bd
      Paul N. Hilfinger authored
      This patch allows Ada to speed up symbol lookup by using the facilities
      in dictionary.[ch] for hashed lookups.  First, we generalize dictionary
      search to allow clients to specify any matching function compatible with
      the hashing function. Next, we modify the hashing algorithm so that symbols
      that wild-match a name hash to the same value.  Finally, we modify Ada
      symbol lookup to use these facilities.
      
      Because this patch touches on a hashing algorithm used by other
      languages, I took the precaution of doing a speed test on a list of
      about 12000 identifiers (repeatedly inserting all of them into a table
      and then doing a lookup on a million names at random, thus testing the
      speed of the hashing algorithm and how well it distributed names).
      There was actually a slight speedup, probably as a result of open-
      coding some of the tests in msymbol_hash_iw.  By design, the revised
      hashing algorithm produces the same results as the original on most
      "normal" C identifiers.
      
      We considered augmenting the dictionary interface still further by allowing
      different hashing algorithms for different dictionaries, based on the
      (supposed) language of the symbols in that dictionary.  While this produced
      better isolation of the changes to Ada programs, the additional flexibility
      also complicated the dictionary interface.  I'd prefer to keep things
      simple for now.
      
      Tested w/o regressions on Linux i686.
      
      ChangeLog:
      
      	gdb/
      	* ada-lang.c (ada_match_name): Use new API for wild_match.
      	(wild_match): Change API to be consistent with that of strcmp_iw;
      	return 0 for a match, and switch operand order.
      	(full_match): New function.
      	(ada_add_block_symbols): Use dict_iter_match_{first,next} for
      	matching to allow use of hashing.
      	* dictionary.c (struct dict_vector): Generalize iter_name_first,
      	iter_name_next ot iter_match_first, iter_match_next.
      	(iter_name_first_hashed): Replace with iter_match_first_hashed.
      	(iter_name_next_hashed): Replace with iter_match_next_hashed.
      	(iter_name_first_linear): Replace with iter_match_first_linear.
      	(iter_name_next_linear): Replace with iter_match_next_linear.
      	(dict_iter_name_first): Re-implement to use dict_iter_match_first.
      	(dict_iter_name_next): Re-implement to use dict_iter_match_next.
      	(dict_iter_match_first): New function.
      	(dict_iter_match_next): New function.
      	(dict_hash): New function.
      	* dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
      	* psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
      c4d840bd
    • Doug Evans's avatar
    • gdbadmin's avatar
      *** empty log message *** · 717d4e8d
      gdbadmin authored
      717d4e8d
  4. 06 Oct, 2010 14 commits
    • Hans-Peter Nilsson's avatar
    • Hans-Peter Nilsson's avatar
      * traps.c (cris_break_13_handler): Pass lseek · 7cf1d8af
      Hans-Peter Nilsson authored
      	offset parameter as sign-extended.
      7cf1d8af
    • Hans-Peter Nilsson's avatar
    • DJ Delorie's avatar
      merge from gcc · 9711ae4d
      DJ Delorie authored
      9711ae4d
    • Alan Modra's avatar
      daily update · b98aa77c
      Alan Modra authored
      b98aa77c
    • Doug Evans's avatar
      * Makefile.in (REQUIRED_SUBDIRS): New var. · 9c9606fb
      Doug Evans authored
      	(subdir_do): Verify required subdir Makefiles exist.
      9c9606fb
    • Ken Werner's avatar
      gdb: · 2f608a3a
      Ken Werner authored
      	* dwarf2read.c (read_tag_const_type): Handle const arrays.
      gdb/testsuite:
      	* gdb.base/constvars.c (logical, lugged, luck, lunar, lumen, lurk,
      	lush, lynx) New constant.
      	* gdb.base/constvars.exp: Test const array types.
      	* gdb.dwarf2/dw2-strp.exp: Add const qualifier for ptype tests.
      2f608a3a
    • Doug Evans's avatar
      Create subdir data-directory. · aa2e2d8d
      Doug Evans authored
      	* Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
      	data-directory/Makefile.in.
      	(SUBDIRS): Add data-directory.
      	(all): Remove xml-syscall-copy dependency.
      	(xml-syscall-copy): Moved to data-directory/Makefile.in as
      	stamp-syscalls.
      	(xml-syscall-install): Moved to data-directory/Makefile.in as
      	install-syscalls.
      	(install-only): Remove xml-syscall-install dependency.
      	(all-data-directory): New rule.
      	(data-directory/Makefile): New rule.
      	* configure.ac (AC_OUTPUT): Add data-directory/Makefile.
      	* configure: Regenerate.
      	* data-directory/Makefile.in: New file.
      	* python/lib/gdb/__init__.py: New file.
      
      	testsuite/
      	* gdb.base/catch-syscall.exp (do_syscall_tests): Update location
      	of syscall staging area.
      aa2e2d8d
    • Joel Brobecker's avatar
      [Ada] Fix ARI warnings in advance_wild_match · aa27d0b3
      Joel Brobecker authored
      gdb/ChangeLog:
      
              * ada-lang.c (advance_wild_match): Delete local variable t2.
              Adjust code accordingly.  Minor reformatting.
      aa27d0b3
    • Nick Clifton's avatar
      * script-sections.cc(class Memory_region): Remove · ea5cae92
      Nick Clifton authored
              current_lma_offset_ field.  Rename current_vma_offset_ to
              current_offset_.  Add last_section_ field.
              (Memory_region::get_current_vma_address): Rename to
              get_current_address.
              (Memory_region::get_current_lma_address): Delete.
              (Memory_region::increment_vma_offset): Rename to
              increment_offset.
              (Memory_region::increment_lma_offset): Delete.
              (Memory_region::attributes_compatible): New method.  Returns
              true if the provided section is compatible with the region.
              (Memory_region::get_last_section): New method.  Returns the last
              section to use the region.
              (Memory_region::set_last_section): New method.  Stores the last
              section to use the region.
              (Script_sections::block_in_region): New method.  Returns true if
              a block of memory is contained within a region.
              (Script_sections::find_memory_region): New method.  Locates a
              memory region to be used to set a VMA or LMA address.
              (Output_section_definition::set_section_addresses): Add code to
              check for addresses set by memory regions.
              (Output_segment::set_section_addresses): Remove memory region
              walking code.
              (Script_sections::create_segment): Add a warning if a header
              segment is created outside of any region.
              * script-sections.h (class Script_sections): Add prototypes for
              find_memory_region and block_in_region methods.
              * testsuite/memory_test.s: Use .long instead of .word.
              * testsuite/memory_test.t: Add some more output sections.
              * testsuite/memory_test.sh: Update expected output.
      
              * ld.texinfo: Update description of computation of VMA and LMA
              addresses for output sections.
      
              * ld-scripts/rgn-at5.t: Add some more output sections.
              * ld-scripts/rgn-at5.d: Update expected output.
      ea5cae92
    • Paolo Bonzini's avatar
      really sync config/ChangeLog · c0e4ee6b
      Paolo Bonzini authored
      c0e4ee6b
    • Ken Werner's avatar
      gdb: · 2844d6b5
      Ken Werner authored
      	* gdbtypes.h (struct main_type): Remove flag_nottext.
      	(enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
      	(enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
      	(TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
      	* gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
      	of TYPE_FLAG_NOTTEXT.
      	(init_type): Remove the initialization of the flag_nottext field.
      	(gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
      	TYPE_FLAG_NOTTEXT.
      	* c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
      gdb/testsuite:
      	* gdb.base/gnu_vector.c: Add variable c4.
      	* gdb.base/gnu_vector.exp: Add tests for character vector printing.
      	* gdb.arch/altivec-abi.exp: Fix expect pattern of character vectors.
      2844d6b5
    • Nathan Sidwell's avatar
      bfd/ · 9ae92b05
      Nathan Sidwell authored
      	* elf32-arm.c (elf32_arm_stub_long_branch_any_arm_pic,
      	elf32_arm_stub_long_branch_any_arm_pic): Use a consistent name for
      	ip/r12.
      	(arm_type_of_stub): Remove superfluous braces.
      
      	gas/
      	* config/tc-arm.c (encode_branch): Remove superfluous braces.
      	(do_t_branch): Move reloc setting to end of routine.
      9ae92b05
    • Paolo Bonzini's avatar
      sync config/ChangeLog · bd0ca0f7
      Paolo Bonzini authored
      bd0ca0f7