aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-25bfd:Nick Clifton82-3551/+23945
* Makefile.am (ALL_MACHINES): Add cpu-epiphany.lo . (ALL_MACHINES_CFILES): Add cpu-epiphany.c . (BFD32_BACKENDS): Add elf32-epiphany.lo . (BFD32_BACKENDS_CFILES): Add elf32-epiphany.c . * Makefile.in, bfd-in2.h, configure, libbfd.h: Regenerate. * archures.c (bfd_arch_epiphany): Add. (bfd_mach_epiphany16, bfd_mach_epiphany32): Define. (bfd_epiphany_arch): Declare. (bfd_archures_list): Add &bfd_epiphany_arch. * config.bfd (epiphany-*-elf): New target case. * configure.in (bfd_elf32_epiphany_vec): New target vector case. * reloc.c (BFD_RELOC_EPIPHANY_SIMM8): New relocation. (BFD_RELOC_EPIPHANY_SIMM24, BFD_RELOC_EPIPHANY_HIGH): Likewise. (BFD_RELOC_EPIPHANY_LOW, BFD_RELOC_EPIPHANY_SIMM11): Likewise. (BFD_RELOC_EPIPHANY_IMM11, BFD_RELOC_EPIPHANY_IMM8): Likewise. * targets.c (bfd_elf32_epiphany_vec): Declare. (_bfd_target_vector): Add bfd_elf32_epiphany_vec. * po/SRC-POTFILES.in, po/bfd.pot: Regenerate. * cpu-epiphany.c, elf32-epiphany.c: New files. binutils: * readelf.c (include "elf/epiphany.h") (guess_is_rela, dump_relocation): Handle EM_ADAPTEVA_EPIPHANY. (get_machine_name, is_32bit_abs_reloc, is_32bit_pcrel_reloc): Likewise. (is_16bit_abs_reloc, is_none_reloc): Likewise. * po/binutils.pot: Regenerate. cpu: * cpu/epiphany.cpu, cpu/epiphany.opc: New files. gas: * NEWS: Mention addition of Adapteva Epiphany support. * config/tc-epiphany.c, config/tc-epiphany.h: New files. * Makefile.am (TARGET_CPU_CFILES): Add config/tc-epiphany.c . (TARGET_CPU_HFILES): Add config/tc-epiphany.h . * Makefile.in, configure, doc/Makefile.in, po/POTFILES.in: Regenerate. * configure.in: Also set using_cgen for epiphany. * configure.tgt: Handle epiphany. * doc/Makefile.am (CPU_DOCS): Add c-epiphany.texi . * doc/all.texi: Set EPIPHANY. * doc/as.texinfo: Add EPIPHANY-specific text. * doc/c-epiphany.texi: New file. * po/gas.pot: Regenerate. gas/testsuite: * gas/epiphany: New directory. include: * dis-asm.h (print_insn_epiphany): Declare. * elf/epiphany.h: New file. * elf/common.h (EM_ADAPTEVA_EPIPHANY): Define. ld: * NEWS: Mention addition of Adapteva Epiphany support. * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32epiphany.c . (eelf32epiphany.c): New rule. * Makefile.in: Regenerate. * configure.tgt: Handle epiphany-*-elf. * po/ld.pot: Regenerate. * testsuite/ld-srec/srec.exp: xfail epiphany. * emulparams/elf32epiphany.sh: New file. opcodes: * Makefile.am (HFILES): Add epiphany-desc.h and epiphany-opc.h . (TARGET_LIBOPCODES_CFILES): Add epiphany-asm.c, epiphany-desc.c, epiphany-dis.c, epiphany-ibld.c and epiphany-opc.c . (CLEANFILES): Add stamp-epiphany. (EPIPHANY_DEPS): Set. Make CGEN-generated Epiphany files depend on it. (stamp-epiphany): New rule. * Makefile.in, configure, po/POTFILES.in, po/opcodes.pot: Regenerate. * configure.in: Handle bfd_epiphany_arch. * disassemble.c (ARCH_epiphany): Define. (disassembler): Handle bfd_arch_epiphany. * epiphany-asm.c, epiphany-desc.c, epiphany-desc.h: New files. * epiphany-dis.c, epiphany-ibld.c, epiphany-opc.c: Likewise. * epiphany-opc.h: Likewise.
2011-10-25 PR gprof/13325Nick Clifton2-1/+12
* hist.c (hist_assign_samples_1): Make sure that inner loop iterator remains valid.
2011-10-252011-10-25 Kai Tietz <ktietz@redhat.com>Kai Tietz9-12/+175
* winduni.h (unicode_from_ascii_len): New prototype. * winduni.c (unicode_from_ascii_len): New function. * windres.h (define_stringtable): Add additional length argument. * windres.c (define_stringtable): Add length argument for string. * rcparse.y (res_unicode_sizedstring): New rule. (res_unicode_sizedstring_concat): Likewise. (string_data): Adjust rule. 2011-10-25 Kai Tietz <ktietz@redhat.com> * binutils-all/windres/strtab4.rc: New test. * binutils-all/windres/strtab4.rsd: Likewise.
2011-10-25*** empty log message ***gdbadmin1-1/+1
2011-10-24daily updateAlan Modra1-1/+1
2011-10-24[powerpc] crash trying to allocate memory in inferiorJoel Brobecker2-0/+6
Our testsuite noticed a crash when trying to call a function which requires GDB to allocate memory in the inferior. Typically, this happens when one of the parameters is a string. For instance, our testcase tries: (gdb) call debug.trace (me, "You") [1] 32737 segmentation fault /path/to/gdb What happens is that GDB sees the string, and thus tries to allocate memory for it in the inferior: > /* Allocate NBYTES of space in the inferior using the inferior's > malloc and return a value that is a pointer to the allocated > space. */ > > struct value * > value_allocate_space_in_inferior (int len) > { > struct objfile *objf; > struct value *val = find_function_in_inferior ("malloc", &objf); And find_function_in_inferior first searches the symtab in case we have debug info. But, in our case (bareboard powerpc), we don't, so it gets "malloc"'s address from the minimal symbols, and builds a value whose type is a TYPE_CODE_PTR, not a TYPE_CODE_FUNC. As a result, when we later try to make the call to malloc, we end up inside the powerpc tdep code that has: > do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type, [...] > if (func_type > && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL) The problem is that func_type is not a TYPE_CODE_FUNC, and thus the type-specific kind is not TYPE_SPECIFIC_FUNC, and so we do TYPE_CALLING_CONVENTION is an invalid access. Interestingly, the other call to TYPE_CALLING_CONVENTION is correctly preceded by a check of the type's TYPE_CODE (making sure that it is TYPE_CODE_FUNC). gdb/ChangeLog: * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2011-10-24 opcodes/Julian Brown6-4/+38
* m68k-opc.c (m68k_opcodes): Fix entries for ColdFire moveml. gas/testsuite/ * gas/m68k/all.exp (movem-offset): Add test. * gas/m68k/movem-offset.s: New test. * gas/m68k/movem-offset.d: New.
2011-10-24binutils/Jan Kratochvil2-1/+7
* dwarf.c (read_and_display_attr_value) <DW_AT_import>: Add CU_OFFSET also for DW_FORM_ref_udata.
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+11
gdb/ * linux-nat.c (linux_handle_extended_wait): When handling a clone event, in non-stop, if not stopping, make sure the new lwp has last_resume_kind set to resume_continue. Assert that when we're resuming the new lwp, its last_resume_kind is resume_continue.
2011-10-24 * config/tc-mips.c (move_register): Fix formatting.Maciej W. Rozycki2-1/+5
2011-10-24 * mips.h: Fix a typo in description.Maciej W. Rozycki2-1/+5
2011-10-24 * config/tc-mips.c (can_swap_branch_p): Remove empty line.Maciej W. Rozycki2-2/+5
(start_noreorder): Likewise.
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-1/+7
gdb/ * infrun.c (handle_inferior_event): Don't assume inferior_ptid is already set when marking the event thread as not executing in non-stop mode.
2011-10-24 * config/tc-mips.c (s_option): Fix formatting.Maciej W. Rozycki2-2/+7
(mips_elf_final_processing): Likewise.
2011-10-24 * config/tc-mips.c (validate_micromips_insn): Fix formatting.Maciej W. Rozycki2-1/+5
2011-10-242011-10-24 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-0/+7
gdb/ * infrun.c (handle_inferior_event): Add debug output for TARGET_WAITKIND_NO_HISTORY.
2011-10-24 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): RemoveMaciej W. Rozycki2-2/+5
assertions.
2011-10-24 gdb/testsuite/Yao Qi2-1/+7
* lib/gdb.exp (can_single_step_to_signal_handler): Return 0 when target is tic6x-*-*.
2011-10-24 PR ld/13273Nick Clifton2-1/+7
* elf32-arm.c (elf32_arm_merge_eabi_attributes): Do not warn about identical TAG_PCS_config attributes.
2011-10-24Updated Japanese translationNick Clifton10-4233/+5638
2011-10-242011-10-24 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-4/+15
* NEWS: Move set/show extended-prompt to "New Options". Expand description. Fix typos.
2011-10-242011-10-24 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+9
PR python/13310 * python/py-param.c (call_doc_function): Correctly deference on function exit.
2011-10-24 PR binutils/13292Nick Clifton3-6/+11
* bfd-in.h: Include <sys/stat.h> rather than forward defining struct stat. * bfd-in2.h: Regenerate.
2011-10-24 * config/tc-mn10200.c (md_convert_frag): Add missing break.Alan Modra2-0/+5
2011-10-24*** empty log message ***gdbadmin1-1/+1
2011-10-23daily updateAlan Modra1-1/+1
2011-10-23*** empty log message ***gdbadmin1-1/+1
2011-10-22daily updateAlan Modra1-1/+1
2011-10-22* obstack.h [!GNUC] (obstack_free): Avoid cast to int.DJ Delorie3-5/+15
* ansidecl.h (ENUM_BITFIELD): Always use enum in C++
2011-10-22*** empty log message ***gdbadmin1-1/+1
2011-10-21daily updateAlan Modra1-1/+1
2011-10-21Replace IRELATIVE relocations with RELATIVE in .rel.dyn.H.J. Lu10-16/+64
bfd/ 2011-10-21 H.J. Lu <hongjiu.lu@intel.com> PR ld/13302 * elf32-i386.c (elf_i386_relocate_section): Replace R_386_IRELATIVE with R_386_RELATIVE. * elf64-x86-64.c (elf_x86_64_relocate_section): Replace R_X86_64_IRELATIVE with R_X86_64_RELATIVE. ld/testsuite/ 2011-10-21 H.J. Lu <hongjiu.lu@intel.com> PR ld/13302 * ld-i386/i386.exp: Run pr13302. * ld-i386/pr13302.d: New. * ld-i386/pr13302.s: Likewise. * ld-x86-64/pr13082-5b.d: Updated. * ld-x86-64/pr13082-6a.d: Likewise. * ld-x86-64/pr13082-6b.d: Likewise.
2011-10-21[Ada] Fix number of lines in -ada-task-info outputJoel Brobecker5-2/+165
When using the new -ada-task-info command with an argument, the output would say that there are N entries in the returned table, (where N is the total number of tasks present in the inferior). But, in fact, the table would only contain at most 1 entry. This patch fixes this by properly computing the number of tasks being displayed before giving it to the uiout. gdb/ChangeLog: * ada-tasks.c (print_ada_task_info): Fix computation of number of tasks displayed in command output. gdb/testsuite/ChangeLog: * gdb.ada/mi_task_info/task_switch.adb: New file. * gdb.ada/mi_task_info.exp: New file.
2011-10-21gdb/testsuite/Jan Kratochvil3-0/+63
* gdb.cp/expand-psymtabs-cxx.exp: New file. * gdb.cp/expand-psymtabs-cxx.cc: New file.
2011-10-21Fix a typo in comments.H.J. Lu3-2/+8
2011-10-21 H.J. Lu <hongjiu.lu@intel.com>. * elf32-i386.c (elf_i386_relocate_section): Fix a typo in comments. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
2011-10-21Put IRELATIVE relocations after JUMP_SLOT.H.J. Lu7-38/+146
bfd/ 2011-10-21 H.J. Lu <hongjiu.lu@intel.com> PR ld/13302 * elf32-i386.c (elf_i386_link_hash_table): Add next_jump_slot_index and next_irelative_index. (elf_i386_link_hash_table_create): Initialize next_jump_slot_index and next_irelative_index. (elf_i386_allocate_dynrelocs): Increment reloc_count instead of next_tls_desc_index. (elf_i386_size_dynamic_sections): Set next_tls_desc_index and next_irelative_index from reloc_count. (elf_i386_finish_dynamic_symbol): Put R_386_IRELATIVE after R_386_JUMP_SLOT. * elf64-x86-64.c (elf_x86_64_link_hash_table): Add next_jump_slot_index and next_irelative_index. (elf_x86_64_link_hash_table_create): Initialize next_jump_slot_index and next_irelative_index. (elf_x86_64_size_dynamic_sections): Set next_irelative_index from reloc_count. (elf_x86_64_finish_dynamic_symbol): Put R_X86_64_IRELATIVE after R_X86_64_JUMP_SLOT. ld/testsuite/ 2011-10-21 H.J. Lu <hongjiu.lu@intel.com> PR ld/13302 * ld-ifunc/ifunc-16-i386.d: New. * ld-ifunc/ifunc-16-x86-64.d: Likewise. * ld-ifunc/ifunc-16-x86.s: Likewise.
2011-10-212011-10-21 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+8
* config/tc-alpha.c (load_expression): Use symbol_mark_used accessor. (s_alpha_comm): Use symbol_set_frag accessor.
2011-10-212011-10-21 Jan Glauber <jang@linux.vnet.ibm.com>Andreas Krebbel5-1/+43
* s390-opc.txt: Add CPUMF instructions. 2011-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gas/s390/zarch-z10.d: Add CPUMF instructions. * gas/s390/zarch-z10.s: Likewise.
2011-10-21*** empty log message ***gdbadmin1-1/+1
2011-10-20gdb/Jan Kratochvil2-6/+13
* dwarf2-frame-tailcall.c: Include dwarf2-frame.h. (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa. (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace gdbarch_pc_regnum and frame_unwind_register_unsigned by gdbarch_unwind_pc.
2011-10-20 * dwarf2read.c (dw2_get_file_names): Move adjustment for typeCary Coutant2-9/+21
section to... (partial_read_comp_unit_head): ...here. Add is_debug_type_section flag. Adjust all callers. (process_psymtab_comp_unit): Remove adjustment for type section.
2011-10-20daily updateAlan Modra1-1/+1
2011-10-20 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed functionAleksandar Ristovski5-5/+19
arguments by adding OBJFILE. Instead of getting objfile from symbol's symtab, use new argument OBJFILE. * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function arguments by adding OBJFILE. * gdb/dwarf2read.c (new_symbol_full): Change call to cp_scan_for_anonymous_namespaces to match new signature. * gdb/stabsread.c (define_symbol): Change call to cp_scan_for_anonymous_namespaces to match new signature.
2011-10-20 PR ld/13049Nick Clifton4-9/+42
* elf32-arm.c (STUB_SUFFIX): Avoid collision with user namespace symbol names. * elf64-ppc.c (STUB_SUFFIX): Likewise. * elf32-hppa.c (STUB_SUFFIX): Likewise.
2011-10-202011-10-20 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon3-6/+20
PR python/13308 PR python/13309 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference leak. * python/py-inferior.c (gdbpy_inferiors): Fix List reference leak. Delete unused variables.
2011-10-20 * ld-selective/selective.exp: Use check_gc_sections_available.Alan Modra3-19/+8
Remove redundant xfails. * ld-selective/sel-dump.exp: Likewise.
2011-10-202011-10-20 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon15-24/+186
PR python/12656 * python/py-frame.c (frapy_read_var): Use const struct *block. * python/py-type.c (typy_lookup_typename): Likewise. (typy_lookup_type): Likewise. (typy_legacy_template_argument): Likewise. (typy_template_argument): Likewise. (gdbpy_lookup_type): Likewise. * python/py-symbol.c (gdbpy_lookup_symbol): Likewise. * python/py-block.c (blpy_block_object): Likewise. (blpy_iter): Likewise. (blpy_get_start): Likewise. (blpy_get_end): Likewise. (blpy_get_function): Likewise. (blpy_get_superblock): Likewise. (set_block): Likewise. (block_to_block_object): Likewise. (block_object_to_block): Likewise. (blpy_is_valid): Likewise. (blpy_get_global_block): New function. (blpy_get_static_block): New function. (blpy_is_global): New function. (blpy_is_static): New function. * blockframe.c (block_innermost_frame): Likewise. * valops.c (value_of_variable): Likewise. * frame.h: Update prototypes. * python/python-internal.h: Likewise. * value.h: Likewise. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> PR python/12656 * gdb.texinfo (Blocks In Python): Document is_static, is_global, global_block, static_block function. 2011-10-20 Phil Muldoon <pmuldoon@redhat.com> PR python/12656 * gdb.python/py-block.exp: Add is_global, is_static, static_block, global_block tests.
2011-10-20 PR ld/13287Alan Modra4-1/+23
* plugin.c (plugin_should_reload): New function. * plugin.h (plugin_should_reload): Declare. * ldlang.c (open_input_bfds): Use above function.
2011-10-20 * dwarf2read.c (create_debug_types_hash_table): Fix size ofCary Coutant2-1/+6
type_offset field.
2011-10-20*** empty log message ***gdbadmin1-1/+1