aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-02-03Increase MAX_REGISTER_SIZE to 32.H.J. Lu2-1/+5
2010-02-03 H.J. Lu <hongjiu.lu@intel.com> * defs.h (MAX_REGISTER_SIZE): Increase to 32.
2010-02-03Move NOP from 0x00 to 0x0f.Anthony Green2-3/+11
2010-02-03bfd/Alan Modra5-140/+524
* elf64-ppc.c (struct plt_entry): Move earlier in file. (struct got_entry): Likewise. Add is_indirect and got.ent fields. (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry. Update all uses. (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass. Remove no_multi_toc. (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect when allocating a new struct got_entry. (allocate_got): New function, extracted from.. (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd. (ppc64_elf_size_dynamic_sections): Track got relocs allocated in .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries. (ppc64_elf_setup_section_lists): Remove output_bfd param and no_multi_toc, add add_stub_section and layout_sections_again. Stash new params in htab. Extract some code to.. (ppc64_elf_start_multitoc_partition): ..here. New function. (ppc64_elf_next_toc_section): Check for linker script errors. Handle second pass toc scan. (merge_got_entries, merge_global_got, reallocate_got): New functions. (ppc64_elf_reinit_toc): Rename to.. (ppc64_elf_finish_multitoc_partition): ..this. (ppc64_elf_layout_multitoc): New function. (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and layout_sections_again params. (ppc64_elf_relocate_section): Handle indirect got entries. * elf64-ppc.h: Update prototypes. Declare new functions. ld/ * emultempl/ppc64elf.em (build_toc_list): Report errors from ppc64_elf_next_toc_section. (after_allocation): Update for changed function names and params. Run second pass of multitoc partitioning.
2010-02-03Fix nop insn for moxieAnthony Green2-11/+20
2010-02-032010-02-02 Doug Kwan <dougkwan@google.com>Doug Kwan10-28/+920
* Makefile.am (HFILES): Add arm-reloc-property.h. (DEFFILES): New. (TARGETSOURCES): Add arm-reloc-property.cc (ALL_TARGETOBJS): Add arm-reloc-property.$(OBJEXT) (libgold_a_SOURCES): $(DEFFILES) * Makefile.in: Regenerate. * arm-reloc-property.cc: New file. * arm-reloc-property.h: New file. * arm-reloc.def: New file. * arm.cc: Update comments. (arm-reloc-property.h): New included header. (arm_reloc_property_table): New global variable. (Target_arm::do_select_as_default_target): New method definition. * configure.tgt (armeb*-*-*,armbe*-*-*,arm*-*-*): Add arm-reloc-property to targ_extra_obj. * parameters.cc (set_parameters_target): Call Target::select_as_default_target(). * target.h (Target::select_as_default_target): New method definition. (Target::do_select_as_default_target): Same.
2010-02-03*** empty log message ***gdbadmin1-1/+1
2010-02-02gdbTom Tromey5-2/+73
* valops.c (value_cast_structs): Try downcasting using the RTTI type. gdb/testsuite * gdb.cp/virtbase.exp: Add regression tests. * gdb.cp/virtbase.cc (RHA, RHB, RHC): New classes. (main): Instantiate RHC.
2010-02-02 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.Tom Tromey4-30/+9
(gnuv2_baseclass_offset): Now static. * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h. * gnu-v2-abi.h: Remove.
2010-02-02daily updateAlan Modra1-1/+1
2010-02-02gdbTom Tromey8-62/+45
* m2-typeprint.c (m2_record_fields): Don't use TYPE_DECLARED_TYPE. * gdbtypes.h (TYPE_DECLARED_CLASS): New macro. (struct main_type) <flag_declared_class>: New field. (struct cplus_struct_type) <declared_type>: Remove. <ntemplate_args>: Move earlier. (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT) (DECLARED_TYPE_TEMPLATE): Remove. (TYPE_DECLARED_TYPE): Remove. * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE. * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS. * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not TYPE_DECLARED_TYPE. gdb/testsuite * gdb.dwarf2/member-ptr-forwardref.exp: Update expected result for type-printing change.
2010-02-02gdbTom Tromey11-15/+223
PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * valops.c (search_struct_field): Compute nbases after calling CHECK_TYPEDEF. (check_field): Call CHECK_TYPEDEF. * cp-valprint.c (cp_print_value): Pass correct address to baseclass_offset. Fix check for virtual base past the end of the object. Don't offset address passed to cp_print_value_fields or apply_val_pretty_printer. (cp_print_value_fields): Fix call to val_print. (cp_print_value_fields_rtti): New function. * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti. * p-valprint.c (pascal_object_print_value_fields): Fix call to val_print. * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded offset to address. * language.h (struct language_defn) <la_val_print>: Document. * c-lang.h (cp_print_value_fields_rtti): Declare. gdb/testsuite PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890: * gdb.cp/virtbase.cc: New file. * gdb.cp/virtbase.exp: New file. * gdb.cp/userdef.exp: Allow 'struct' or 'class'.
2010-02-02Add NT_386_XSTATE.H.J. Lu7-1/+52
bfd/ 2010-02-02 H.J. Lu <hongjiu.lu@intel.com> * elf-bfd.h (elfcore_write_xstatereg): New. * elf.c (elfcore_grok_xstatereg): New. (elfcore_write_xstatereg): Likewise. (elfcore_grok_note): Handle NT_X86_XSTATE. (elfcore_write_register_note): Handle .reg-xstate section. binutils/ 2010-02-02 H.J. Lu <hongjiu.lu@intel.com> * readelf.c (get_note_type): Handle NT_X86_XSTATE. include/elf/ 2010-02-02 H.J. Lu <hongjiu.lu@intel.com> * common.h (NT_386_XSTATE): New.
2010-02-02gdbserver crash when running 32bits exes on x64 Windows.Joel Brobecker2-3/+29
* inferiors.c (find_inferior): Add function documentation. (unloaded_dll): Handle the case where the unloaded dll has not been previously registered in the dll list.
2010-02-022010-02-01 Doug Kwan <dougkwan@google.com>Doug Kwan2-1/+37
* arm.cc (Arm_exidx_fixup::Arm_exidx_fixup): Initialize first_output_text_section_. (Arm_exidx_fixup::first_output_text_section): New method definition. (Arm_exidx_fixup::first_output_text_section_): New data member. (Arm_exidx_fixup::process_exidx_section): Record the first text output section seen. (Arm_output_section::fix_exidx_coverage): Set correct linked section and entsize in output section header.
2010-02-02*** empty log message ***gdbadmin1-1/+1
2010-02-01daily updateAlan Modra1-1/+1
2010-02-01gdb/Jan Kratochvil4-7/+60
PR libc/11214: * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New. (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU]. (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New. gdb/testsuite/ PR libc/11214: * gdb.threads/current-lwp-dead.c: Include features.h. (HAS_NOMMU): New. (fn, main): Move CLONE_VM into [__UCLIBC__ && HAS_NOMMU].
2010-02-01 * i386-tdep.c (i386_frame_cache): Assume valid anonymousDaniel Jacobowitz2-1/+19
functions use a frame pointer.
2010-02-01gdb/Jan Kratochvil6-3/+84
* solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert by a conditional setting DYN_ADDR. Use DYN_ADDR. * config/djgpp/fnchange.lst: Add translations for symbol-without-target_section.exp and symbol-without-target_section.c. gdb/testsuite/ * gdb.base/symbol-without-target_section.exp, gdb.base/symbol-without-target_section.c: New.
2010-02-01 * gdb.base/bigcore.exp: Reset increased timeout.Daniel Jacobowitz3-0/+7
* gdb.base/interrupt.exp: Match unexpected gdb prompt.
2010-02-01 * gdb.base/gcore.exp (capture_command_output): UseDaniel Jacobowitz2-5/+6
gdb_test_multiple.
2010-02-01 * gdbarch.sh: Set LANG and LC_ALL to C, not c.Daniel Jacobowitz3-5/+10
(remote_breakpoint_for_pc): Correct invalid_p check. * gdbarch.c: Regenerated.
2010-02-01 * arm-tdep.c (arm_find_mapping_symbol): New function, fromDaniel Jacobowitz5-18/+308
arm_pc_is_thumb. (arm_pc_is_thumb): Use arm_find_mapping_symbol. (extend_buffer_earlier): New function. (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants. (arm_adjust_breakpoint_address): New function. (arm_gdbarch_init): Register arm_adjust_breakpoint_address. testsuite/ * gdb.arch/thumb2-it.S (it_breakpoints): New function. * gdb.arch/thumb2-it.exp (test_it_break): New function. (Top level): Call it.
2010-02-01 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)Daniel Jacobowitz9-11/+494
(arm_linux_thumb2_le_breakpoint): New constants. (arm_linux_init_abi): Set thumb2_breakpoint and thumb2_breakpoint_size. * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions. (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE. Implement support for single stepping through IT blocks if a 32-bit Thumb breakpoint instruction is available. (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction is available, use it when needed. (arm_remote_breakpoint_from_pc): New function. (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc. * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint comment. Add thumb2_breakpoint and thumb2_breakpoint_size. gdbserver/ * linux-arm-low.c (thumb_breakpoint_len): Delete. (thumb2_breakpoint): New. (arm_breakpoint_at): Check for Thumb-2 breakpoints. testsuite/ * gdb.arch/thumb2-it.S, gdb.arch/thumb2-it.exp: New files.
2010-02-01 * arch-utils.c (default_remote_breakpoint_from_pc): New function.Daniel Jacobowitz9-28/+123
* arch-utils.h (default_remote_breakpoint_from_pc): Declare. * gdbarch.c, gdbarch.h: Regenerated. * gdbarch.sh (remote_breakpoint_from_pc): New architecture method. * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use gdbarch_remote_breakpoint_from_pc. doc/ * gdb.texinfo (Architecture-Specific Protocol Details): New section. Document ARM breakpoint types. (Register Packet Format): Move into the new section. (Packets): Describe the KIND argument for Z0, z0, Z1, and z1 packets.
2010-02-012010-02-01 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+5
* som.c (som_write_ar_hdr): Define this macro.
2010-02-01Fix testsuite for Thumb2 jump reloc veneers.Ramana Radhakrishnan6-0/+86
2010-02-01 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> * ld-arm/jump-reloc-veneers-long.d: New test. * ld-arm/jump-reloc-veneers-short1.d: Likewise. * ld-arm/jump-reloc-veneers-short2.d: Likewise. * ld-arm/jump-reloc-veneers.s: Likewise. * ld-arm/arm-elf.exp (armelftests): Run them.
2010-02-01 * objcopy.c (copy_object): Set SEC_LINKER_CREATED when addingNathan Sidwell5-1/+29
sections. testsuite/ * binutils-all/note-1.d: New. * binutils-all/objcopy.exp: Add it.
2010-02-01*** empty log message ***gdbadmin1-1/+1
2010-01-31daily updateAlan Modra1-1/+1
2010-01-31 * configure.ac: Add "recommended" version checks for GMP/MPC.Kaveh Ghazi3-20/+94
Update recommended GMP/MPFR/MPC versions. * configure: Regenerate.
2010-01-31*** empty log message ***gdbadmin1-1/+1
2010-01-30daily updateAlan Modra1-1/+1
2010-01-30binutils/testsuite/ChangeLog:Dave Korn8-7/+10
* binutils-all/windres/html.rc: Don't xfail x86_64-*-mingw*. * binutils-all/windres/lang.rc: Likewise. * binutils-all/windres/messagetable.rc: Likewise. * binutils-all/windres/strtab1.rc: Likewise. * binutils-all/windres/strtab2.rc: Likewise. * binutils-all/windres/version.rc: Likewise. * binutils-all/windres/version_cat.rc: Likewise.
2010-01-30 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,Dave Anglin2-4/+15
R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the linkage table pointer to use the global table pointer if not doing a shared link.
2010-01-302010-01-29 Viktor Kutuzov <vkutuzov@accesssoftek.com>Doug Kwan2-3/+146
* gold/arm.cc: Added support for the ARM relocations: R_ARM_THM_PC8, R_ARM_THM_PC12, R_ARM_THM_ALU_PREL_11_0. (Arm_relocate_functions::thm_alu11): New Method. (Arm_relocate_functions::thm_pc8): New Method. (Arm_relocate_functions::thm_pc12): New Method. (Target_arm::Scan::local): Handle the relocations. (Target_arm::Scan::global): Likewise. (Target_arm::Relocate::relocate): Likewise. (Target_arm:Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
2010-01-302010-01-29 Doug Kwan <dougkwan@google.com>Doug Kwan2-22/+7
* arm.cc (Target_arm::Scan::global): General PLTs for the same set of relocation types as ld.
2010-01-30*** empty log message ***gdbadmin1-1/+1
2010-01-29daily updateAlan Modra1-1/+1
2010-01-292010-01-29 Doug Kwan <dougkwan@google.com>Doug Kwan2-148/+26
* arm.cc (Arm_relocate_functions::arm_branch_common) Change visibility to public. (Arm_relocate_functions::thumb_branch_common): Ditto. (Arm_relocate_functions::thm_call, Arm_relocate_functions::thm_jump24, Arm_relocate_functions::thm_xpc22, Arm_relocate_functions::plt32, Arm_relocate_functions::xpc25, Arm_relocate_functions::call, Arm_relocate_functions::jump24): Remove. (Target_arm::Relocate::relocate): Adjust code to call Arm_relocation_functions::arm_branch_common and Arm_relocation_functions::thumb_branch_common instead of their removed wrappers. Merge switch-cases together to reduce source code size.
2010-01-292010-01-29 Doug Kwan <dougkwan@google.com>Doug Kwan3-6/+169
* arm.cc (Arm_relobj::Arm_relobj): Initialize new data member output_local_symbol_count_needs_update_. (Arm_relobj::output_local_symbol_count_needs_update, Arm_relobj::set_output_local_symbol_count_needs_update, Arm_relobj::update_output_local_symbol_count): New methods. (Arm_relobj::output_local_symbol_count_needs_update_): New data member. (Arm_exidx_cantunwind::do_fixed_endian_write): Write address of pointed function as in a R_ARM_PREL31 relocation. (Arm_output_section<big_endian>::fix_exidx_coverage): Mark objects for output local symbol count updating. (Target_arm::do_relax): Update output local symbol counts in objects if necessary. * object.h (Sized_relobj::set_output_local_symbol_count): New method.
2010-01-29 gas/testsuite/Daniel Jacobowitz8-58/+212
* gas/arm/dis-data.d: Update test name. Do not expect .word output. * gas/arm/dis-data2.d, gas/arm/dis-data2.s, gas/arm/dis-data3.d, gas/arm/dis-data3.s: New tests. opcodes/ * opcodes/arm-dis.c (struct arm_private_data): New. (print_insn_coprocessor, print_insn_arm): Update to use struct arm_private_data. (is_mapping_symbol, get_map_sym_type): New functions. (get_sym_code_type): Check the symbol's section. Do not check mapping symbols. (print_insn): Default to disassembling ARM mode code. Check for mapping symbols separately from other symbols. Use struct arm_private_data.
2010-01-29 PR 11136Nick Clifton5-5/+29
* config/tc-arm.c (neon_check_type): Handle a neon_shape value of NS_NULL. * gas/arm/neon-omit.s: Add instruction that causes crash. * gas/arm/neon-omit.d: Add expected disassembly.
2010-01-29 * arm.cc: Added support for the ARM relocations:Ian Lance Taylor2-34/+147
R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL, R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL. (Arm_relocate_functions::movw_rel_nc): Renamed (was movw_prel_nc). (Arm_relocate_functions::movw_rel): New method. (Arm_relocate_functions::movt_rel): Renamed (was movt_prel). (Arm_relocate_functions::thm_movw_rel_nc): Renamed (was thm_movw_prel_nc). (Arm_relocate_functions::thm_movw_rel): New method. (Arm_relocate_functions::thm_movt_rel): Renamed (was thm_movt_prel). (Target_arm::Scan::local): Handle MOVW_BREL/MOVT_BREL relocations. (Target_arm::Scan::global): Likewise. (Target_arm::Relocate::relocate): Likewise. (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
2010-01-29 * infrun.c (prepare_to_proceed): Handle other signals which mightDaniel Jacobowitz4-26/+58
match a breakpoint. (handle_inferior_event): Move the check for unusual breakpoint signals earlier. gdbserver/ * linux-low.c (get_stop_pc): Check for SIGTRAP. (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible breakpoints.
2010-01-29 * gdb.base/call-strs.exp, gdb.base/default.exp,Daniel Jacobowitz17-18/+55
gdb.base/ending-run.exp, gdb.base/finish.exp, gdb.base/funcargs.exp, gdb.base/huge.exp, gdb.base/nodebug.exp, gdb.base/ptype.exp, gdb.base/restore.exp, gdb.base/return.exp, gdb.base/setvar.exp, gdb.base/watchpoints.exp, gdb.threads/gcore-thread.exp, gdb.base/watchpoint-solib.exp: Save and restore timeout. * gdb.base/ending-run.exp: Correct restore of timeout. * gdb.base/page.exp: Remove unnecessary timeout setting.
2010-01-29amd64 - function returning record with field straddling 2 registersJoel Brobecker7-0/+166
gdb/ChangeLog: From Paul Hilfinger <hilfinger@adacore.com> * amd64-tdep.c (amd_classify_aggregate): Handle the case of a record of length <= 16 in which a field straddles the two eightbytes. gdb/testsuite/ChangeLog: * gdb.ada/rec_return: New testcase.
2010-01-29Implement return values on amd64-windows.Joel Brobecker2-1/+64
* amd64-windows-tdep.c: #include gdbcore.h and regcache.h. (amd64_windows_return_value): New function. (amd64_windows_init_abi): Call set_gdbarch_return_value with amd64_windows_return_value.
2010-01-29amd64-windows: 32 bytes allocated on stack by caller for integer parameter ↵Joel Brobecker4-4/+32
registers * i386-tdep.h (struct gdbarch_tdep): Add new field integer_param_regs_saved_in_caller_frame. * amd64-windows-tdep.c (amd64_windows_init_abi): Set tdep->integer_param_regs_saved_in_caller_frame to 1. * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2010-01-29Add summary line to the second to last entry.Joel Brobecker1-0/+1