aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-02-10 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extraVladimir Prus2-13/+21
whitespace character after a dot in comment. (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables): Likewise. (list_args_or_locals): For the 'all' (that is -stack-list-variables) case, always output list of tuples. Output 'arg' field if variable is argument.
2010-02-10 * testsuite/Makefile.am (check_PROGRAMS): Add tls_pie_test.Ian Lance Taylor3-2/+53
(tls_test_main_pie.o, tls_test_pie.o): New targets. (tls_test_file2_pie.o, tls_test_c_pie.o, tls_pie_test): Likewise. * testsuite/Makefile.in: Rebuild.
2010-02-10Fix "infor reg sse" on Linux/x86-64.H.J. Lu2-1/+7
2010-02-10 H.J. Lu <hongjiu.lu@intel.com> PR gdb/11265 * amd64-linux-tdep.c (amd64_linux_register_reggroup_p): Call i386_register_reggroup_p instead of default_register_reggroup_p.
2010-02-102010-02-10 Sterling Augustine <sterling@tensilica.com>Sterling Augustine1-10/+16
* config/tc-xtensa.c (xtensa_find_unaligned_loops): Rewrite.
2010-02-10gas/Richard Sandiford4-8/+37
* config/tc-ppc.c (md_show_usage): Add -mpwr4, -mpwr5, -mpwr5x, -mpwr6 and -mpwr7. opcodes/ * ppc-dis.c (ppc_opts): Add "pwr4", "pwr5", "pwr5x", "pwr6" and "pwr7". Move "a2" into alphabetical order.
2010-02-10ld/Richard Sandiford5-23/+41
* Makefile.am (CFILES): Add ldlex-wrapper.c. (OFILES): Replace ldlex.c with ldlex-wrapper.c. (ldlex.o): Replace with... (ldlex-wrapper.o): ...this new rule. (EXTRA_ld_new_SOURCES): Add ldlex.l. (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c. * Makefile.in: Regenerate. * ldlex.l (sysdep.h): Don't include here. * ldlex-wrapper.c: New file.
2010-02-10gdbTom Tromey6-0/+48
* parser-defs.h (parser_debug): Declare. * parse.c (_initialize_parse): Install "debug parser" set/show command. (parser_debug): New global. (show_parserdebug): New function. * c-exp.y (c_parse): Set yydebug. gdb/testsuite * gdb.texinfo (Debugging Output): Document set debug parser and show debug parser.
2010-02-10Add i387_ext, i386_eflags and i386_mxcsr.H.J. Lu3-1/+114
2010-02-10 H.J. Lu <hongjiu.lu@intel.com> * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT, TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. (tdesc_predefined_types): Add i387_ext, i386_eflags and i386_mxcsr. (tdesc_find_type): New. (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT, TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR. * target-descriptions.h (tdesc_find_type): New.
2010-02-102010-02-10 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+6
* gdb-gdb.py: Comment fix.
2010-02-10*** empty log message ***gdbadmin1-1/+1
2010-02-09daily updateAlan Modra1-1/+1
2010-02-09 * output.h (Output_data_dynamic::add_section_size): New methodDavid S. Miller10-10/+69
that takes two Output_data objects. (Output_data_dynamic::Dynamic_entry): Create storage for secondary entry param. Handle it in initializers. * output.cc (Output_data_dynamic::Dynamic_entry::write): For DYNAMIC_SECTION_SIZE, add in second object size if non-NULL. * layout.h (Layout::add_target_dynamic_tags): Add dynrel_includes_plt arg. * layout.cc (Layout::add_target_dynamic_tags): If dynrel_includes_plt, and .rela.plt exists, set DT_REL{,A}SZ to sum of .rela.dyn and .rela.plt * arm.cc (Target_arm::do_finalize_sections): Update to pass false for dynrel_includes_plt. * i386.cc (Target_i386::do_finalize_sections): Likewise. * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise. * sparc.cc (Target_sparc::make_plt_entry): Force .rela.dyn to be output before .rela.plt (Target_sparc::do_finalize_sections): Update to pass true for dynrel_includes_plt. * powerpc.cc (Target_powerpc::make_plt_entry): Force .rela.dyn to be output before .rela.plt (Target_powerpc::do_finalize_sections): Update to pass true for dynrel_includes_plt when 32-bit.
2010-02-09 * sparc.cc (Target_sparc::Scan::local): Do not emit relocs other thanDavid S. Miller2-35/+38
R_SPARC_RELATIVE using ->add_local_relative(). (Target_sparc::Scan::global): Likewise for ->add_global_relative().
2010-02-092010-02-09 Sterling Augustine <sterling@tensilica.com>Sterling Augustine2-3/+42
* config/tc-xtensa.c (RELAXED_LOOP_INSN_BYTES): New. (next_frag_pre_opcode_bytes): Use RELAXED_LOOP_INSN_BYTES. (xtensa_mark_zcl_first_insns): Rewrite to handle corner case.
2010-02-09Document i387_ext, i386_eflags and i386_mxcsr.H.J. Lu2-0/+14
2010-02-09 H.J. Lu <hongjiu.lu@intel.com> * gdb.texinfo (Predefined Target Types): Add i387_ext, i386_eflags and i386_mxcsr.
2010-02-092010-02-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-48/+146
* machoread.c (macho_symfile_relocate): New function. (macho_sym_fns): Use macho_symfile_relocate instead of default_symfile_relocate. (macho_oso_data): New type. (current_oso): New variable. (macho_add_oso_symfile): Do not compute section_addr_info, but instead set vma of sections. Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd. Set and clear current_oso.
2010-02-092010-02-08 Christophe Lyon <christophe.lyon@st.com>Christophe Lyon6-8/+209
gas/ * config/tc-arm.c (md_pcrel_from_section): Keep base to zero for non-local branches (BFD_RELOC_THUMB_PCREL_BRANCH23, BFD_RELOC_THUMB_PCREL_BLX, BFD_RELOC_ARM_PCREL_BLX, BFD_RELOC_ARM_PCREL_CALL) gas/testsuite/ * gas/arm/branch-reloc.s, gas/arm/branch-reloc.d, gas/arm/branch-reloc.l: New tests and expected results with all variants of call: ARM/Thumb, local/global, inter/intra-section, using BL/BLX.
2010-02-092010-02-09 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+11
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for non-external relocation.
2010-02-09 * gdb.ada/ptype_tagged_param: New testcase.Joel Brobecker5-0/+133
2010-02-09Wrong type description for tagged type parameter.Joel Brobecker2-1/+15
* ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a reference to a tagged type.
2010-02-09 * elf64-ppc.c (merge_got_entries): Move earlier in file.Alan Modra2-40/+76
(allocate_dynrelocs): Merge got entries here if not doing multi-toc. (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got. (ppc64_elf_layout_multitoc): Don't resize if we have already merged got entries.
2010-02-09bfd/Martin Schwidefsky7-0/+189
2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp, elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, elfcore_write_s390_prefix): New. * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp, elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, elfcore_write_s390_prefix): New. (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. (elfcore_write_register_note): Handle .reg-s390-timer, .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs, .reg-s390-prefix section. binutils/ 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * readelf.c (get_note_type): Handle NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. include/elf/ 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> * common.h (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX): Define.
2010-02-09 * elf64-ppc.c (has_small_toc_reloc): Don't define.Alan Modra2-10/+20
(makes_toc_func_call, call_check_in_progress): Shuffle flags. (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update code setting the flag. (ppc64_elf_next_toc_section): Group big-toc sections in 0x80008000 chunks.
2010-02-09 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.Alan Modra2-41/+19
2010-02-09 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirectAlan Modra2-24/+30
unsigned char. Update variables and code using them throughout file. (struct ppc_link_hash_entry): Likewise for tls_mask.
2010-02-092010-02-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+12
* objfiles.c (objfile_separate_debug_iterate): Do not iterate on brothers of the parent.
2010-02-09 * ld-elfvsb/elfvsb.exp: Fix tests for arm*-*-linux*.Nick Clifton3-0/+68
* ld-shared/shared.exp: Likewise.
2010-02-092010-02-08 Doug Kwan <dougkwan@google.com>Doug Kwan2-5/+43
* arm.cc (Arm_relobj::simple_input_section_output_address): New method. (Arm_relobj::section_needs_cortex_a8_stub_scanning, Arm_relobj::scan_section_for_cortex_a8_stubs, Arm_relobj::do_relocation_section): Instead of calling Output_section::output_address, use faster Arm_relobj::simple_input_section_output_address.
2010-02-09 * sparc.cc (Target_sparc::Scan::local): Handle R_SPARC_GOTDATA_OP*David S. Miller2-0/+19
just like R_SPARC_GOT{10,13,22}. (Target_sparc::Scan::local): Likewise. (Target_sparc::Relocate:relocate): Likewise.
2010-02-09gold/David S. Miller2-6/+37
2010-02-08 David S. Miller <davem@davemloft.net> * sparc.cc (Target_sparc::Relocate::relocate): If relocation offset is unaligned for R_SPARC_16, R_SPARC_32, or R_SPARC_64, use the unaligned relocation helper function.
2010-02-09*** empty log message ***gdbadmin1-1/+1
2010-02-08daily updateAlan Modra1-1/+1
2010-02-08gdbTom Tromey7-25/+146
PR c++/8017: * value.h: Update. * valops.c (search_struct_field): Make 'name' const. (search_struct_method): Likewise. (find_method_list): Make 'method' const. (value_struct_elt): Make 'name' and 'err' const. (value_find_oload_method_list): Make 'method' const. (find_overload_match): Make 'name' const. * eval.c (evaluate_subexp_standard): New locals function, function_name. <OP_FUNCALL>: Handle OP_SCOPE specially. gdb/testsuite PR c++/8017: * gdb.cp/overload.exp: Add tests. * gdb.cp/overload.cc (struct K): New. (namespace N): New. (main): Call new functions. (K::staticoverload): Define.
2010-02-08include/David S. Miller12-64/+579
* elf/sparc.h (R_SPARC_JMP_IREL, R_SPARC_IRELATIVE): Define. bfd/ * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New. (BFD_RELOC_SPARC_IRELATIVE): Likewise. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table and loc_hash_memory. (_bfd_sparc_elf_link_hash_table_free): Declare. * elf32-sparc.c (elf32_sparc_add_symbol_hook): New. (elf_backend_add_symbol_hook, elf_backend_post_process_headers, bfd_elf32_bfd_link_hash_table_free): Define. * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set has_ifunc_symbols if STT_GNU_IFUNC. (bfd_elf64_bfd_link_hash_table_free): Define. (elf_backend_post_process_headers): Define always. * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New. (sparc_reloc_map): Add entries for new IFUNC relocs. (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs. (_bfd_sparc_elf_info_to_howto_ptr): Likewise. (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq, elf_sparc_get_local_sym_hash): New. (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization from here... (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate local hash table. (_bfd_sparc_elf_link_hash_table_free): New. (create_ifunc_sections): New. (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols cons up a fake local hash table entry for it. Unconditionally add a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count dyn relocs for ifunc. (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc. (allocate_dynrelocs): Unconditionally emit a PLT entry when STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc. (allocate_local_dynrelocs): New function. (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash table. Emit dynamic relocs to irelplt when not shared. Treat iplt like splt. (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand. (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt in iplt/irelplt. ld/testsuite/ * ld-ifunc/ifunc.exp: Run for sparc.
2010-02-08bfd/David S. Miller3-151/+138
* elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot, srelgot, splt, srelplt, and sgotplt members in favor of generic copies. * elfxx-sparc.c (create_got_section): Delete. (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic section creator does that work for us. Use ->elf.foo instead of ->foo where applicable. (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo where applicable. (allocate_dynrelocs): Likewise. (_bfd_sparc_elf_size_dynamic_sections): Likewise. (_bfd_sparc_elf_relocate_section): Likewise. (sparc_vxworks_build_plt_entry): Likewise. (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. (sparc_finish_dyn): Likewise. (sparc_vxworks_finish_exec_plt): Likewise. (sparc_vxworks_finish_shared_plt): Likewise. (_bfd_sparc_elf_finish_dynamic_sections): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_* macros for visibilty and locality checks. (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (_bfd_sparc_elf_relocate_section): Likewise. (_bfd_sparc_elf_finish_dynamic_symbol):Likewise. * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set but never used local var 'dynobj'. * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle nocopyreloc.
2010-02-08bfd/Richard Sandiford2-4/+13
* xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating max_contents_size, only consider sections whose contents must be swapped in.
2010-02-08 * infrun.c (handle_inferior_event): Do not look up regcacheUlrich Weigand2-9/+16
for exited processes.
2010-02-08Document i386 XML target features.H.J. Lu2-0/+44
2010-02-08 H.J. Lu <hongjiu.lu@intel.com> * gdb.texinfo: Document i386 target features.
2010-02-08* dwarf.c (display_debug_frames): Skip the 'S' character in CFIJim Blandy2-0/+7
'z' augmentation strings.
2010-02-082010-02-08 Sterling Augustine <sterling@tensilica.com>Sterling Augustine2-137/+113
* config/tc-xtensa.c (frag_format_size): Generalize logic to handle more instruction sizes and fetch widths. (branch_align_power): Likewise. (text_align_power): Likewise. (bytes_to_stretch): Likewise.
2010-02-08PR gdb/10728Chris Moller8-1/+117
* valarith.c (value_ptrdiff): Added a test for a zero type length, warn if found, and assume length = 1. * gdb.cp/pr10728-x.h: New file. * gdb.cp/pr10728-x.cc: New file. * gdb.cp/pr10728-y.cc: New file. * gdb.cp/pr10728.exp: New file. * gdb.cp/Makefile.in (EXECUTABLES): Add pr10728
2010-02-08PR gdb/9067Chris Moller6-17/+92
* cp-valprint.c (cp_print_value_fields) Fix use of obstacks. cp_print_static_field) Fix use of obstacks. * gdb.cp/pr9067.exp: New * gdb.cp/pr9067.cc: New * gdb.cp/Makefile.in (EXECUTABLES): Add pr9067
2010-02-08 * linux-nat.c (linux_nat_resume): In non-stop, also only tagPedro Alves2-21/+118
resumed LWPs as resumed. (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead of throwing an internal error. If an LWP of a process we're not waiting for reports a signal, don't force collecting a SIGSTOP, and if it was breakpoint hit in non-stop mode, cancel it. Don't go through all LWPs cancelling breakpoints in non-stop mode. (resume_stopped_resumed_lwps): New. (linux_nat_wait): Use it.
2010-02-08 * objdump.c (disassemble_bytes): Clear aux->reloc before printingNick Clifton8-35/+49
a new address, so as not to reuse a previous, non-related reloc. * gas/arm/arm-it-auto.d, gas/arm/bl-local-v4t.d, gas/arm/blx-local.d, gas/arm/thumb-w-good.d: Update expected results.
2010-02-08 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..Alan Modra2-32/+30
(ppc64_elf_size_dynamic_sections): ..and here.. (merge_got_entries): ..rather than here.
2010-02-08bfd/Alan Modra5-20/+56
* elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc. (has_small_toc_reloc): Define. (ppc64_elf_check_relocs): Set the above flags. (ppc64_elf_edit_opd): Delete obfd param. (ppc64_elf_tls_optimize): Likewise. (ppc64_elf_edit_toc): Likewise. (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param. * elf64-ppc.h: Update prototypes. ld/ * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed function parameters.
2010-02-08update copyright dateAlan Modra1-1/+1
2010-02-08 * section.c (struct bfd_section): Delete has_tls_reloc,Alan Modra8-58/+82
has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done. Add sec_flg0 thru sec_flg5. (BFD_FAKE_SECTION): Update for changed flags. * ecoff.c (bfd_debug_section): Likewise. * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update. * elf32-xtensa.c (reloc_done): Define. * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update. * bfd-in2.h: Regenerate.
2010-02-08 * lib/gdb.exp (gdb_test_timeout): New global variable.Joel Brobecker2-0/+21
Set it to timeout if not already set. (gdb_init): Reset the value of timeout to gdb_test_timeout.
2010-02-082010-02-08 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+10
* mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern for non-scattered relocations.