aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-10-11binutils/:Andreas Schwab5-4/+41
* binutils-all/m68k/objdump.exp: Add fnop test. * binutils-all/m68k/fnop.s: New file. opcodes/: * m68k-opc.c (m68k_opcodes): Move fnop before fbf.
2010-10-11gdb/testsuite/Jan Kratochvil2-0/+11
* gdb.cp/infcall-dlopen.cc (openlib): Support NULL FILENAME. (main): Make openlib dummy call.
2010-10-11 * resolve.cc (symbol_to_bits): Report the value of the unsupportedIan Lance Taylor2-1/+6
binding.
2010-10-11 * c-typeprint.c (c_type_print_modifier): Add note that this printsDoug Evans2-1/+7
the address space id too.
2010-10-11 * gdb.texinfo (Values From Inferior): Add reference to "Types inDoug Evans2-1/+6
Python" from gdb.Value.type description.
2010-10-112010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel6-131/+143
* s390-opc.c: Make the instruction masks for the load/store on condition instructions to cover the condition code mask as well. * s390-opc.txt: lgoc -> locg and stgoc -> stocg. 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gas/s390/zarch-z196.d: Adjust the load/store on condition instructions. * gas/s390/zarch-z196.s: Likewise.
2010-10-11 * ld-elf/orphan-region.d: xfail frv-*-*.Alan Modra2-2/+6
2010-10-11 * elf32-frv.c (elf32_frv_relocate_section): Set "name" for global syms.Alan Modra2-3/+12
(elf32_frvfdpic_finish_dynamic_sections): Don't crash on __ROFIXUP_END__ defined in shared lib.
2010-10-11fix dates in previous blackfin commitsMike Frysinger1-3/+3
2010-10-11gdb/Jan Kratochvil2-0/+64
Fix attaching to re-prelinked executables on ppc64. * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect, initialize it, try to adjust FILESZ field by it.
2010-10-11gdb/testsuite/Jan Kratochvil2-34/+91
Fix missing _start PIE relocation on ppc64 due to stop on dl_main. * break-interp.exp (reach): Move the core body ... (reach_1): ... here. Use stop-on-solib-events for _dl_debug_state. (test_ld): Provide always real argument, even to the linker. Replace dl_main by _dl_debug_state.
2010-10-11gdb/testsuite/Jan Kratochvil2-7/+23
Fix results of prelinked PIEs on ppc*. * gdb.base/break-interp.exp (reach, test_core, test_attach_gdb): Accept also DISPLACEMENT "PRESENT". (main): Replace "ZERO" displacements by "PRESENT".
2010-10-11gas: blackfin: reign in overeager insn flag handlingMike Frysinger2-7/+14
Currently, trying to declare single letter variables in Blackfin assembly can sometimes lead to parser errors if that letter is used for insn flags. For example, X, Z, S, M, and T are used to change the behavior of insns: R0 = 1; R0 = 1 (X); R0 = 1 (Z); But the current parser just looks for single letter tokens rather than ones that show up in the (FLAGS) field. So only match these letters as flags when they're in parentheses. Not a complete fix, but it at least lets gcc tests pass now (the test gcc/testsuite/gcc.c-torture/compile/mangle-1.c to be exact). A complete fix would require a significant parser rewrite in order to handle: R0 = (x) (x); /* zero extend the address of the symbol "x" */ R0 = W; R0 = W[P0]; Signed-off-by: Steve Kilbane <steve.kilbane@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-11gas: blackfin: support numeric local labels with LOOP_BEGIN/LOOP_END pseudo ↵Mike Frysinger4-0/+38
insns The current LOOP_BEGIN/LOOP_END pseudo insns hit parser errors when trying to use numeric local labels. So add support for them. Signed-off-by: David Gibson <david.gibson@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-11gas: blackfin: fix LOOP_BEGIN/LOOP_END pseudo insns handling of local labelsMike Frysinger2-2/+9
The current LOOP_BEGIN/LOOP_END pseudo insns hit "Internal errors" when using local labels as the loop names due to attempts at removing them. Signed-off-by: David Gibson <david.gibson@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-10-11 * ld-mmix/sec-3.d: Adjust for 2010-09-29 orphan change.Alan Modra3-8/+13
* ld-mmix/sec-7m.d: Likewise.
2010-10-11 * elf32-arm.c (elf32_arm_final_link_relocate)Thomas Schwinge2-3/+10
(elf32_arm_relocate_section): Handle relocations against STN_UNDEF.
2010-10-11opcodes/Jan Kratochvil3-4/+11
* Makefile.am (libopcodes_a_SOURCES): New as empty. * Makefile.in: Regenerate.
2010-10-11 * elflink.c (_bfd_elf_link_output_relocs): Delete unused variableDave Korn2-2/+5
"output_rel_hdr".
2010-10-11*** empty log message ***gdbadmin1-1/+1
2010-10-10daily updateAlan Modra1-1/+1
2010-10-10*** empty log message ***gdbadmin1-1/+1
2010-10-09daily updateAlan Modra1-1/+1
2010-10-09Regenerate for bool -> bool_ changeAlan Modra4-59/+67
2010-10-09cgen/Alan Modra16-412/+433
* utils-cgen.scm (gen-attr-accessors): Rename bool attribute to bool_. * cpu/mep.opc (mep_cgen_insn_supported): Ditto. include/opcode/ * cgen.h (CGEN_ATTR, CGEN_ATTR_TYPE): Rename bool attribute to bool_. (CGEN_ATTR_BOOLS, CGEN_ATTR_CGEN_INSN_ALIAS_VALUE): Likewise. opcodes/ * fr30-desc.h: Regenerate. * frv-desc.h: Regenerate. * ip2k-desc.h: Regenerate. * iq2000-desc.h: Regenerate. * lm32-desc.h: Regenerate. * m32c-desc.h: Regenerate. * m32r-desc.h: Regenerate. * mep-desc.h: Regenerate. * mep-opc.c: Regenerate. * mt-desc.h: Regenerate. * openrisc-desc.h: Regenerate. * xc16x-desc.h: Regenerate. * xstormy16-desc.h: Regenerate.
2010-10-09Use BYTE_GET_SIGNED on r_addend.H.J. Lu4-7/+19
2010-10-08 H.J. Lu <hongjiu.lu@intel.com> * dwarf.c (byte_get_signed): Make it extern. * dwarf.h (byte_get_signed): New. * readelf.c (BYTE_GET_SIGNED): New. (slurp_rela_relocs): Use BYTE_GET_SIGNED on r_addend. (dump_relocations): Properly dump r_addend.
2010-10-092010-10-08 Bernd Schmidt <bernds@codesourcery.com>Jeff Johnston3-0/+83
Joseph Myers <joseph@codesourcery.com> * COPYING.LIBGLOSS: Add National Semiconductor and CodeSourcery notices. * COPYING.NEWLIB: Add Texas Instruments notice.
2010-10-09*** empty log message ***gdbadmin1-1/+1
2010-10-08daily updateAlan Modra1-1/+1
2010-10-08 * reloc.c (BFD_RELOC_ARM_HVC): Add.Alan Modra3-0/+8
* libbfd.h: Regenerate.
2010-10-08 * tracepoint.c (merge_uploaded_trace_state_variables): Only printDaniel Jacobowitz2-4/+13
messages if info_verbose.
2010-10-08Test case for unimplemented overload cases.Sami Wagiaalla3-0/+312
2010-10-08 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/oranking.exp: New test. * gdb.cp/oranking.cc: New test program.
2010-10-08gdb:Ken Werner6-19/+112
* valops.c (value_cast): Handle vector types. * valarith.c (value_binop): Widen scalar to vector if appropriate. gdb/testsuite: * gdb.base/gnu_vector.c (ia, ib, fa, fb): New variables. * gdb.base/gnu_vector.exp: Add tests for scalar to vector widening.
2010-10-082010-10-08 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-39/+64
* pei-x86_64.c (find_next_xdata_or_end): Removed. (pex64_dump_xdata): Remove arguments stop, onaline, and pdata. New argument endx. Print term "none" instead of misleading "CFA". (sort_xdata_arr): New function. (pex64_bfd_print_pdata): Use binary search/sort for unwind-RVAs instead of searching quadratic.
2010-10-08 * nm.c (value_format_64bit): Define appropriately for __MSVCRT__.Joseph Myers2-0/+14
(set_print_radix): Update for __MSVCRT__ definition of value_format_64bit.
2010-10-08Fix build with -DDEBUG=7Alan Modra15-29/+76
2010-10-08 * arm-tdep.c (thumb_expand_immediate): New function.Ulrich Weigand2-42/+404
(thumb_instruction_changes_pc): Likewise. (thumb2_instruction_changes_pc): Likewise. (thumb_analyze_prologue): Handle 32-bit Thumb instructions during prologue parsing. Improved support for optimized code. (thumb_scan_prologue): Do not reply on line-number information, use same heuristics as arm_scan_prologue insead. (skip_prologue_function): Accept functions "__tls_get_addr" and "__aeabi_read_tp".
2010-10-082010-10-08 Ulrich Weigand <uweigand@de.ibm.com>Ulrich Weigand2-0/+208
Daniel Jacobowitz <dan@codesourcery.com> * arm-tdep.c (thumb_in_function_epilogue_p) (arm_in_function_epilogue_p): New. (arm_gdbarch_init): Install arm_in_function_epilogue_p as gdbarch_in_function_epilogue_p callback.
2010-10-08*** empty log message ***gdbadmin1-1/+1
2010-10-07daily updateAlan Modra1-1/+1
2010-10-07 * configure.ac (build_lto_plugin): New shell variable.Dave Korn3-6/+29
(--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.
2010-10-07 * cc-with-index.sh (output_file): Default to a.out.Doug Evans2-0/+3
2010-10-07Add missing ChangeLog entry for toplevel configure from 2010-07-26.Ralf Wildenhues1-0/+5
2010-10-07 * dwarf2read.c (mapped_index): Rename member index_table toDoug Evans2-27/+36
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.
2010-10-07 * addrmap.h (addrmap_foreach_fn): New typedef.Doug Evans3-2/+88
(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.
2010-10-07merge from gccDJ Delorie3-13/+13
2010-10-07gas/Bernd Schmidt7-3/+39
* 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.
2010-10-07Correct dict_hash to our most recent version.Paul N. Hilfinger2-8/+22
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.
2010-10-07Rework symbol searches to move Ada-specific stuff to ada-lang.c.Paul N. Hilfinger5-231/+336
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.
2010-10-07Extend hashed symbol dictionaries to work with AdaPaul N. Hilfinger4-59/+200
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.