aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-06-16 * linespec.c (collect_methods): Delete.Keith Seitz5-117/+20
(add_matching_methods): Reove destructor special case. (find_method): Call find_methods directly instead of collect_methods. * valops.c (value_struct_elt): Remove destructor special cases. (check_field): Likewise. (value_struct_elt_for_reference): Likewise. (destructor_name_p): Remove misleading comment about dtors being "special cases". * gdbtypes.h (get_destructor_fn_field): Remove. No longer needed. * gdbtypes.c (get_destructor_fn_field): Likewise.
2009-06-16 * mi/mi-main.c (mi_cmd_data_read_memory): DispatchPedro Alves2-2/+11
TARGET_OJECT_MEMORY reads to the topmost target, not the the flattened current_target.
2009-06-162009-06-16 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu5-24/+29
* elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New. * elf32-i386.c (elf_i386_local_hash): Removed. (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. (elf_i386_get_local_sym_hash): Likewise. * elf64-x86-64.c (elf64_x86_64_local_hash): Removed. (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. (elf64_x86_64_get_local_sym_hash): Likewise. * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise. (get_local_sym_hash): Likewise.
2009-06-162009-06-16 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-53/+50
* elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec, rel_got_sec and plt_sec. (elfNN_ia64_relax_section): Updated. (elfNN_ia64_create_dynamic_sections): Likewise. (get_got): Likewise. (allocate_dynrel_entries): Likewise. (elfNN_ia64_size_dynamic_sections): Likewise. (set_got_entry): Likewise. (elfNN_ia64_choose_gp): Likewise. (elfNN_ia64_relocate_section): Likewise. (elfNN_ia64_finish_dynamic_symbol): Likewise. (elfNN_ia64_finish_dynamic_sections): Likewise.
2009-06-16 * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bitsUlrich Weigand2-10/+11
also for calls.
2009-06-162009-06-16 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu10-609/+567
* configure.in (elf): Add elf-ifunc.lo. * configure: Regenerated. * Makefile.in: Likewise. * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. * elf32-i386.c (elf_i386_link_hash_table): Remove sgot, sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. (elf_i386_link_hash_table_create): Likewise. (elf_i386_create_dynamic_sections): Likewise. (elf_i386_check_relocs): Likewise. (elf_i386_allocate_dynrelocs): Likewise. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_symbol): Likewise. (elf_i386_finish_dynamic_sections): Likewise. (elf_i386_create_got_section): Removed. * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot, sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. (elf64_x86_64_compute_jump_table_size): Updated. (elf64_x86_64_link_hash_table_create): Likewise. (elf64_x86_64_create_dynamic_sections): Likewise. (elf64_x86_64_check_relocs): Likewise. (elf64_x86_64_allocate_dynrelocs): Likewise. (elf64_x86_64_size_dynamic_sections): Likewise. (elf64_x86_64_relocate_section): Likewise. (elf64_x86_64_finish_dynamic_symbol): Likewise. (elf64_x86_64_finish_dynamic_sections): Likewise. (elf64_x86_64_create_got_section): Removed. * elflink.c (_bfd_elf_create_got_section): Use log_file_align for pointer alignment. Set up section pointers. (_bfd_elf_create_dynamic_sections): Likewise. (_bfd_elf_create_ifunc_sections): Moved to ... * elf-ifunc.c: Here. New. * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo. (BFD32_BACKENDS_CFILES): Add elf-ifunc.c. Run "make dep-am".
2009-06-16merge from gccDJ Delorie2-6/+19
2009-06-16 PR 10197Nick Clifton2-5/+11
* testsuite/test-demangle.c: Rename getline to get_line to avoid conflicts with system function of the same name.
2009-06-16 * corefile.c (cmp_symbol_map): New function.Nick Clifton4-53/+74
(read_function_mappins): Use qsort to sort the symbols. (search_mapped_symbol): New function. (core_create_function_syms): Use bsearch to find symbols. * corefile.h (struct function_map): Add new bit-field: is_first. * cg_print.c (cmp_symbol_map): New function. (cg_print_file_ordering): Sort the symbol map.
2009-06-16 * elf32-arm.c (cortex_a8_erratum_scan): Change type of offsetNick Clifton2-17/+26
to bfd_signed_vma. Cast constant operands which are used in offset related expressions to bfd_signed_vma type as appropriate.
2009-06-162009-06-16 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-103/+148
* avr-tdep.c (struct gdbarch_tdep): Replace the unused field with call_length field. (avr_register_name): Add const to register_names. (avr_scan_arg_moves): Move inside avr_scan_prologue. (avr_scan_prologue): Add pc_end argument. Only read prologue bytes that can be read. Limit the scan to the known prologue length. Makes pattern variables static and const. Fix indentation. (avr_skip_prologue): Pass func_end argument to avr_scan_prologue. Fix indentation. (avr_breakpoint_from_pc): Constify avr_break_insn. (avr_extract_return_value): Fix function comment. (avr_frame_unwind_cache): Fix GNU style violations. Pass current_pc argument to avr_scan_prologue to stop prologue analysis to the current pc. This fixes the bug with the 'next' command. Correctly set the SP register of the previous frame (use call_length). (avr_frame_prev_register): Fix indentation. Correctly read PC from the stack on avr6 architectures. (avr_push_dummy_call): Fix indentation. (avr_gdbarch_init): Set call_length according to the architecture.
2009-06-16bfd/Maciej W. Rozycki4-7/+60
* elf32-vax.c (elf_vax_plt_sym_val): New function. (elf_backend_plt_sym_val): Define. opcodes/ * vax-dis.c (is_function_entry): Return success for synthetic symbols too. (is_plt_tail): New function. (print_insn_vax): Decode PLT entry offset longword.
2009-06-16bfd/Maciej W. Rozycki2-0/+22
* elf32-vax.c (elf_vax_reloc_type_class): New function. (elf_backend_reloc_type_class): Define.
2009-06-16bfd/Maciej W. Rozycki2-1/+15
* elf32-vax.c (elf_vax_relocate_section): For symbol references from an executable to a shared library treat R_VAX_PC32 relocations as R_VAX_PLT32 ones.
2009-06-16bfd/Maciej W. Rozycki2-5/+21
* elf32-vax.c (elf_vax_instantiate_got_entries): Skip local symbols in GOT space calculation. (elf_vax_relocate_section): Adjust accordingly.
2009-06-16bfd/Maciej W. Rozycki2-1/+6
* elf32-vax.c (elf_vax_plt_entry): Set the entry mask to include <R11:R2>.
2009-06-16bfd/Maciej W. Rozycki4-23/+50
* elf32-vax.c (elf_vax_check_relocs): Handle the visibility attribute. (elf_vax_relocate_section): Likewise. gas/ * config/tc-vax.c (md_estimate_size_before_relax): Accept indirect symbol references in the PIC mode and emit a PC-relative relocation instead of a GOT/PLT one. Likewise for symbols known to be hidden at this point.
2009-06-16daily updateAlan Modra1-1/+1
2009-06-16*** empty log message ***gdbadmin1-1/+1
2009-06-152009-06-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-10/+15
* elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2009-06-152009-06-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-16/+21
* elf32-i386.c (elf_i386_check_relocs): Reformat. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2009-06-15 PR 10186Nick Clifton6-3/+18
* arm-dis.c (thumb32_opcodes): Fix binary value of SEV.W instruction. * gas/arm/thumb32.d: Fix expected binary value of SEV.W instruction. * config/tc-arm.c (T16_32_TAB): Fix binary value of SEV.W instruction.
2009-06-15 PR 10173Nick Clifton2-2/+9
* cr16-dis.c (print_arg): Avoid printing the 0x prefix twice.
2009-06-152009-06-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-4/+13
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerated.
2009-06-15 * configure.ac: Define is_elf for QNX Neutrino targets.Nick Clifton3-2/+7
* configure: Regenerate.
2009-06-152009-06-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* ld-ifunc/ifunc-9-x86.d: Fix a typo.
2009-06-152009-06-15 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+7
* elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2009-06-152009-06-15 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon8-1/+392
* infcall.c (show_unwind_on_terminating_exception_p): New function. (call_function_by_hand): Create breakpoint and clean-up call for std::terminate.breakpoint. Add unwind_on_terminating_exception_p gate. Pop frame on breakpoint hit. (_initialize_infcall): Add add_setshow_boolean_cmd for unwind-on-terminating-exception. testsuite/ 2009-06-15 Phil Muldoon <pmuldoon@redhat.com> * gdb.cp/gdb2495.cc: New file. * gdb.cp/gdb2495.exp: New file. doc/ 2009-06-15 Phil Muldoon <pmuldoon@redhat.com> * doc/gdb.texinfo (Calling): Document set-unwind-on-terminating-exception usage.
2009-06-15 PR 10263Nick Clifton6-16/+41
* arm-dis.c (print_insn): Ignore is_data if the user has requested the disassembly of data as well as instructions. * objdump.c (disassemble_bytes): Set the DISASSEMBLE_DATA bit in the flags field of the disassemble_info structure if the -D switch is in operation. * dis-asm.h (struct disassemble_info): New value for the flags field.
2009-06-15 * po/ru.po: New Russian translation.Nick Clifton4-2/+3848
* configure.in (ALL_LINGUAS): Add ru. * configure: Regenerate.
2009-06-15 * corefile.c (core_create_syms_from): Use BFD_VMA_FMT whenNick Clifton2-1/+6
scanning in an address.
2009-06-152009-06-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-3/+4
* elf32-i386.c: Remove duplicated comments.
2009-06-15*** empty log message ***gdbadmin1-1/+1
2009-06-15daily updateAlan Modra1-1/+1
2009-06-14bfd/H.J. Lu6-20/+110
2009-06-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/10270 * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow dynamic IFUNC pointer in non-shared object. Use .got.plt for IFUNC definition in PIE. (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in PIE locally. * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow dynamic IFUNC pointer in non-shared object. Use .got.plt for IFUNC definition in PIE. (elf64_x86_64_relocate_section): Resolve IFUNC definition in PIE locally. ld/testsuite/ 2009-06-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/10270 * ld-ifunc/ifunc-9-x86.d: New. * ld-ifunc/ifunc-9-x86.s: Likewise.
2009-06-14 * cgen.sh: Handle multiple simultaneous runs for parallel makes.Doug Evans2-42/+49
2009-06-142009-06-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-3/+11
* elf32-i386.c (elf_i386_relocate_section): Properly report local symbol for unhandled relocation against STT_GNU_IFUNC symbol. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2009-06-142009-06-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu3-2/+11
* elf32-i386.c (elf_i386_check_relocs): Properly report local symbol for unhandled relocation against STT_GNU_IFUNC symbol. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2009-06-14bfd/H.J. Lu21-16/+684
2009-06-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/10269 * elf32-i386.c: Include "objalloc.h" and "hashtab.h". (elf_i386_link_hash_table): Add loc_hash_table and loc_hash_memory. (elf_i386_local_hash): New. (elf_i386_local_htab_hash): Likewise. (elf_i386_local_htab_eq): Likewise. (elf_i386_get_local_sym_hash): Likewise. (elf_i386_link_hash_table_free): Likewise. (elf_i386_allocate_local_dynrelocs): Likewise. (elf_i386_finish_local_dynamic_symbol): Likewise. (bfd_elf64_bfd_link_hash_table_free): Likewise. (elf_i386_link_hash_table_create): Create loc_hash_table and loc_hash_memory. (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols. (elf_i386_size_dynamic_sections): Likewise. (elf_i386_relocate_section): Likewise. (elf_i386_finish_dynamic_sections): Likewise. (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym isn't NULL. * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h". (elf64_x86_64_link_hash_table): Add loc_hash_table and loc_hash_memory. (elf64_x86_64_local_hash): New. (elf64_x86_64_local_htab_hash): Likewise. (elf64_x86_64_local_htab_eq): Likewise. (elf64_x86_64_get_local_sym_hash): Likewise. (elf64_x86_64_link_hash_table_free): Likewise. (elf64_x86_64_allocate_local_dynrelocs): Likewise. (elf64_x86_64_finish_local_dynamic_symbol): Likewise. (bfd_elf64_bfd_link_hash_table_free): Likewise. (elf64_x86_64_link_hash_table_create): Create loc_hash_table and loc_hash_memory. (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC symbols. (elf64_x86_64_size_dynamic_sections): Likewise. (elf64_x86_64_relocate_section): Likewise. (elf64_x86_64_finish_dynamic_sections): Likewise. (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if sym isn't NULL. gas/ 2009-06-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/10269 * config/tc-i386.c (md_apply_fix): Use TC_FORCE_RELOCATION instead of generic_force_reloc. * config/tc-i386.h (TC_FORCE_RELOCATION): New. ld/testsuite/ 2009-06-13 H.J. Lu <hongjiu.lu@intel.com> PR ld/10269 *: ld-ifunc/ifunc-1-local-x86.d: New. *: ld-ifunc/ifunc-1-local-x86.s: Likewise. *: ld-ifunc/ifunc-2-local-i386.d: Likewise. *: ld-ifunc/ifunc-2-local-i386.s: Likewise. *: ld-ifunc/ifunc-2-local-x86-64.d: Likewise. *: ld-ifunc/ifunc-2-local-x86-64.s: Likewise. *: ld-ifunc/ifunc-4-local-x86.d: Likewise. *: ld-ifunc/ifunc-4-local-x86.s: Likewise. *: ld-ifunc/ifunc-5-local-i386.s: Likewise. *: ld-ifunc/ifunc-5-local-x86-64.s: Likewise. *: ld-ifunc/ifunc-5a-local-i386.d: Likewise. *: ld-ifunc/ifunc-5a-local-x86-64.d: Likewise. *: ld-ifunc/ifunc-5b-local-i386.d: Likewise. *: ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
2009-06-14*** empty log message ***gdbadmin1-1/+1
2009-06-14daily updateAlan Modra1-1/+1
2009-06-13 * dwarf2read.c (dwarf2_psymtab_to_symtab): PropagateKevin Buettner2-0/+19
`has_section_at_zero' flag from stripped objfile to separate, debug info only, objfile.
2009-06-13*** empty log message ***gdbadmin1-1/+1
2009-06-13daily updateAlan Modra1-1/+1
2009-06-12gdb/testsuite/Jan Kratochvil2-0/+9
Report error on GDB crash during runto. * lib/gdb.exp (runto <eof>): New.
2009-06-12 * exec.h (section_table_xfer_memory_partial): Improve description,Pedro Alves3-24/+14
mention SECTION_NAME. * exec.c (section_table_xfer_memory_partial): Remove stale description.
2009-06-12 * corefile.c (num_of_syms_in): New function - computes the numberNick Clifton7-19/+154
of symbols in a given file. (core_create_syms_from): New function - populates a symbol table from the symbols found in a specified file. * corefile.h: Prototype core_create_syms_from. * gprof.c (long_options): Add --external-symbol-table. (usage): Mention it. (main): Initiailize external_symbol_table from --external-symbol-table option. If set use it. * gprof.texi: Document the new option. * NEWS: Mention new feature added to gprof.
2009-06-122009-06-10 Philip Blundell <philb@gnu.org>Phil Blundell2-0/+6
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash if section has no ELF data.
2009-06-122009-06-10 Philip Blundell <philb@gnu.org>Phil Blundell2-6/+12
* elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if elf_sec->this_hdr == NULL.
2009-06-12 * readelf.c (process_symbol_table): Set gnubuckets to NULL afterNick Clifton2-2/+7
freeing it and before returning.