aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-08-21* gdb.arch/powerpc-prologue.exp: Code doesn't save %r31 so don'tMark Kettenis2-1/+6
expect to find it in the "info frame" output.
2008-08-21Amplify last NEWS entry about boolean types in Ada, and addPaul N. Hilfinger4-0/+19
corresponding description of treatment of True and false to gdb.texinfo.
2008-08-212008-08-20 Craig Silverstein <csilvers@google.com>Craig Silverstein2-2/+7
* fileread.cc (File_read::open): Do not lock the file unless it was successfully opened.
2008-08-21daily updateAlan Modra1-1/+1
2008-08-21*** empty log message ***gdbadmin1-1/+1
2008-08-20Commit file that I accidentally omitted from my change to support TLS on Xtensa.Bob Wilson1-0/+8
2008-08-202008-08-20 Bob Wilson <bob.wilson@acm.org>Bob Wilson2-1/+5
* gas/all/gas.exp: Expect the redef test to fail on Xtensa.
2008-08-202008-08-20 Bob Wilson <bob.wilson@acm.org>Bob Wilson26-137/+1917
bfd/ * elf-bfd.h (elf_object_id): Add XTENSA_ELF_TDATA. * elf32-xtensa.c (elf_howto_table): Add TLS relocations. (elf_xtensa_reloc_type_lookup): Likewise. (TCB_SIZE): Define. (elf_xtensa_link_hash_entry): New. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_TLS_ANY): Define. (elf_xtensa_hash_entry): Define. (elf_xtensa_obj_tdata): New. (elf_xtensa_tdata): Define. (elf_xtensa_local_got_tls_type): Define. (elf_xtensa_local_tlsfunc_refcounts): Define. (is_xtensa_elf): Define. (elf_xtensa_mkobject): New. (elf_xtensa_link_hash_table): Add tlsbase field. (elf_xtensa_link_hash_newfunc): New. (elf_xtensa_link_hash_table_create): Use elf_xtensa_link_hash_newfunc. Create an entry for "_TLS_MODULE_BASE_" and save it in tlsbase field. (elf_xtensa_copy_indirect_symbol): New. (elf_xtensa_check_relocs): Rewrite to handle TLS relocations. (elf_xtensa_gc_sweep_hook): Likewise. (elf_xtensa_allocate_dynrelocs): Optimize away GOT entries for TLSDESC_FN relocations when an IE reference is seen. (elf_xtensa_allocate_local_got_size): Likewise. (elf_xtensa_always_size_sections): New. (dtpoff_base, tpoff): New. (elf_xtensa_do_reloc): Handle TLS relocations. (replace_tls_insn): New. (IS_XTENSA_TLS_RELOC): Define. (elf_xtensa_relocate_section): Handle TLS relocations. (get_indirect_call_dest_reg): New. (bfd_elf32_mkobject): Define. (elf_backend_always_size_sections): New. (elf_backend_copy_indirect_symbol): New. * reloc.c (BFD_RELOC_XTENSA_TLSDESC_FN, BFD_RELOC_XTENSA_TLSDESC_ARG) (BFD_RELOC_XTENSA_TLS_DTPOFF, BFD_RELOC_XTENSA_TLS_TPOFF) (BFD_RELOC_XTENSA_TLS_FUNC, BFD_RELOC_XTENSA_TLS_ARG) (BFD_RELOC_XTENSA_TLS_CALL): New. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * config/tc-xtensa.c (O_tlsfunc, O_tlsarg, O_tlscall): Define. (O_tpoff, O_dtpoff): Define. (suffix_relocs): Add entries for TLS suffixes. (xtensa_elf_cons): Check for invalid use of TLS relocations. (map_operator_to_reloc): Add is_literal parameter and use it to control translating TLS instruction relocations to the corresponding literal relocations. (xg_valid_literal_expression): Allow TLS operators. (xg_build_to_insn): Copy TLS operators from pseudo-instruction operands to generated literals. (xg_assemble_literal): Handle TLS operators. Update call to map_operator_to_reloc. (md_assemble): Handle CALLXn.TLS pseudo-instruction. (md_apply_fix): Handle TLS relocations. (emit_single_op): Handle TLS operators. (convert_frag_immed): Update call to map_operator_to_reloc. (vinsn_to_insnbuf): Emit relocations for TLS-related instructions. * config/xtensa-istack.h (tinsn_struct): Add tls_reloc field. * config/xtensa-relax.c (append_literal_op): Add src_op parameter to initialize the op_data field of the BuildOp. (build_transition): Use it here to record the source operand corresponding to a generated literal. * config/xtensa-relax.h (build_op): Comment op_data use for literals. include/elf/ * xtensa.h (R_XTENSA_TLSDESC_FN, R_XTENSA_TLSDESC_ARG) (R_XTENSA_TLS_DTPOFF, R_XTENSA_TLS_TPOFF, R_XTENSA_TLS_FUNC) (R_XTENSA_TLS_ARG, R_XTENSA_TLS_CALL): New. ld/testsuite/ * ld-xtensa/tlsbin.dd, ld-xtensa/tlsbin.rd, ld-xtensa/tlsbin.s, ld-xtensa/tlsbin.sd, ld-xtensa/tlsbin.td, ld-xtensa/tlslib.s, ld-xtensa/tlspic.dd, ld-xtensa/tlspic.rd, ld-xtensa/tlspic.sd, ld-xtensa/tlspic.td, ld-xtensa/tlspic1.s, ld-xtensa/tlspic2.s: New. * ld-xtensa/xtensa.exp: Run them.
2008-08-20 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):Daniel Jacobowitz2-22/+41
Make the dwarf2_cu * parameter output as well as input. Update it if we follow a reference to another CU. (read_func_scope, determine_class_name, namespace_name, dwarf2_attr) (die_type, die_containing_type): Update calls to changed functions. Use the returned CU along with the returned DIE. (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2008-08-20 * dwarf2read.c (queue_comp_unit): Take an objfile argument. ReadDaniel Jacobowitz2-54/+53
in the DIEs here. (process_queue): Do not read in the DIEs here. (psymtab_to_symtab_1): Update call to queue_comp_unit. (read_full_die): Do not call queue_comp_unit from here. (maybe_queue_comp_unit): New function. (follow_die_ref): Use it.
2008-08-20 * dwarf2read.c (struct attribute): Move earlier.Daniel Jacobowitz2-24/+37
(struct die_info): Change attrs to a trailing array. (dwarf_alloc_die): Take the number of attributes. Allocate space for them. (read_full_die): Update call to dwarf_alloc_die. Do not manually allocate attributes.
2008-08-20 * dwarf2read.c (REF_HASH_SIZE): Delete.Daniel Jacobowitz2-28/+54
(struct dwarf2_cu): Replace die_ref_table with die_hash. (struct die_info): Remove next_ref. (store_in_ref_table): Remove offset argument. Rewrite to use htab_find_slot_with_hash. (die_hash, die_eq): New. (read_comp_unit): Allocate the die_hash. (read_die_and_children): Update call to store_die_ref. (follow_die_ref): Rewrite to use htab_find_with_hash.
2008-08-20 * dwarf2read.c (free_die_list, copy_die): Delete.Daniel Jacobowitz2-62/+16
(dwarf_alloc_die): Take a CU argument. Allocate the new DIE on the obstack. (read_full_die): Update call to dwarf_alloc_die. Allocate attributes on the CU obstack. (free_one_comp_unit): Do not call free_die_list.
2008-08-20 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.Daniel Jacobowitz2-18/+22
(read_die_and_siblings): Likewise. Do not add padding DIEs to the sibling list. (read_full_die): Do not allocate DIEs for abbrev 0. (follow_die_ref): Correct error message.
2008-08-20 * gdb.base/interp.exp: Always consume both prompts.Daniel Jacobowitz2-1/+14
2008-08-20Add the missing ChangeLog entry for the AES + AVX checkin.H.J. Lu1-0/+8
2008-08-20gas/H.J. Lu31-167/+1001
2008-08-20 H.J. Lu <hongjiu.lu@intel.com> AVX Programming Reference (August, 2008) * config/tc-i386.c (CPU_FLAGS_AES_MATCH): New. (CPU_FLAGS_AVX_MATCH): Likewise. (CPU_FLAGS_32BIT_MATCH): Updated. (cpu_flags_match): Likewise. gas/testsuite/ 2008-08-20 H.J. Lu <hongjiu.lu@intel.com> AVX Programming Reference (August, 2008) * gas/i386/avx.s: Add AES + AVX tests. * gas/i386/arch-10.s: Likewise. * gas/i386/sse2avx.s: Likewise. * gas/i386/x86-64-arch-2.s: Likewise. * gas/i386/x86-64-avx.s: Likewise. * gas/i386/x86-64-sse2avx.s: Likewise. * gas/i386/arch-10.d: Updated. * gas/i386/arch-10-1.l: Likewise. * gas/i386/arch-10-2.l: Likewise. * gas/i386/arch-10-3.l: Likewise. * gas/i386/arch-10-4.l: Likewise. * gas/i386/avx.d: Likewise. * gas/i386/avx-intel.d: Likewise. * gas/i386/sse2avx.d: Likewise. * gas/i386/x86-64-arch-2.d: Likewise. * gas/i386/x86-64-avx.d: Likewise. * gas/i386/x86-64-avx-intel.d: Likewise. * gas/i386/x86-64-sse2avx.d: Likewise. * gas/i386/i386.exp: Run arch-avx-1, arch-avx-1-1 and arch-avx-1-2. * gas/i386/arch-avx-1.d: New. * gas/i386/arch-avx-1.s: Likewise. * gas/i386/arch-avx-1-1.l: Likewise. * gas/i386/arch-avx-1-1.s: Likewise. * gas/i386/arch-avx-1-2.l: Likewise. * gas/i386/arch-avx-1-2.s: Likewise. opcodes/ 2008-08-20 H.J. Lu <hongjiu.lu@intel.com> AVX Programming Reference (August, 2008) * i386-dis.c (PREFIX_VEX_38DB): New. (PREFIX_VEX_38DC): Likewise. (PREFIX_VEX_38DD): Likewise. (PREFIX_VEX_38DE): Likewise. (PREFIX_VEX_38DF): Likewise. (PREFIX_VEX_3ADF): Likewise. (VEX_LEN_38DB_P_2): Likewise. (VEX_LEN_38DC_P_2): Likewise. (VEX_LEN_38DD_P_2): Likewise. (VEX_LEN_38DE_P_2): Likewise. (VEX_LEN_38DF_P_2): Likewise. (VEX_LEN_3ADF_P_2): Likewise. (PREFIX_VEX_3A04): Updated. (VEX_LEN_3A06_P_2): Likewise. (prefix_table): Add PREFIX_VEX_38DB, PREFIX_VEX_38DC, PREFIX_VEX_38DD, PREFIX_VEX_38DE and PREFIX_VEX_3ADF. (x86_64_table): Likewise. (vex_len_table): Add VEX_LEN_38DB_P_2, VEX_LEN_38DC_P_2, VEX_LEN_38DD_P_2, VEX_LEN_38DE_P_2, VEX_LEN_38DF_P_2 and VEX_LEN_3ADF_P_2. * i386-opc.tbl: Add AES + AVX instructions. * i386-init.h: Regenerated. * i386-tbl.h: Likewise.
2008-08-20 PR 6848Alan Modra2-0/+20
* write.c (install_reloc): Check that reloc symbols have been written. (set_symtab): Mark symbols with BSF_KEEP.
2008-08-20 gdb/Pedro Alves4-6/+46
* linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if there are no symbols loaded, instead of throwing a generic error. (decode_variable): Likewise. gdb/testsuite/ * gdb.base/pending.exp: Test pending breakpoints without symbols loaded.
2008-08-20 * objfiles.h (struct obj_section): Remove addr and endaddr fields.Pedro Alves9-111/+63
(obj_section_offset, obj_section_addr, obj_section_endaddr): New macros. * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr and offset. Use size_t instead of unsigned long. (build_objfile_section_table): Use size_t instead of unsigned long. (objfile_relocate): Don't relocate s->addr and s->endaddr, they're gone. (find_pc_sect_section): Use obj_section_addr and obj_section_endaddr. * symfile.c (symfile.c): Remove code that maps sections offsets in "addr" to the object's sections. * blockframe.c (find_pc_partial_function): Use obj_section_endaddr. * gcore.c (gcore_create_callback): Use obj_section_addr and obj_section_endaddr. * maint.c (print_objfile_section_info): Likewise. * printcmd.c (sym_info): Use obj_section_addr and obj_section_endaddr. * symtab.c (fixup_section): Likewise.
2008-08-20* Makefile.in: Remove page break; OpenBSD make chokes on them.Mark Kettenis1-2/+0
2008-08-20* sparc-tdep.c: Make some comments catch up with reality.Mark Kettenis2-4/+8
2008-08-20 * NEWS: Mention 'set target-async'Vladimir Prus2-0/+10
2008-08-20 * gdb.textinfo (GDB/MI Miscellaneous Commands): Use @tableVladimir Prus2-11/+15
for possible features of -list-features.
2008-08-20*** empty log message ***gdbadmin1-1/+1
2008-08-20daily updateAlan Modra1-1/+1
2008-08-19 * lib/mi-support.exp (mi_expect_stop): ProduceVladimir Prus4-1/+296
more details on failures. * gdb.mi/mi-nonstop.exp: New. * gdb.mi/non-stop.c: New.
2008-08-19 * infrun.c (resume): If the thread is placed to the deferred stepVladimir Prus2-1/+10
queue, mark it as running.
2008-08-19 Make sure target supports non-stop.Vladimir Prus5-0/+53
* infcmd.c (run_command_1, attach_command): If non-stop mode is requested, verify the target supports it. * linux-nat.c (linux_nat_supports_non_stop): New. (linux_nat_add_target): Register the above. * target.c (find_default_supports_non_stop) (target_supports_non_stop): New. (init_dummy_target): Register find_default_supports_non_stop. * target.h (struct target_ops): New field to_supports_non_stop. (target_supports_non_stop): New.
2008-08-19 * target.c (target_async_permitted, target_async_permitted_1)Vladimir Prus13-136/+163
(set_maintenance_target_async_permitted) (show_maintenance_target_async_permitted): New. (initialize_targets): Register 'set target-async'. * target.h (target_async_permitted): Declare. * linux-nat.c (linux_nat_async_enabled) (linux_nat_async_permitted, set_maintenance_linux_async_permitted) (show_maintenance_linux_async_permitted): Remove. (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p) (get_pending_events, linux_nat_async): Use target_async_permitted. (linux_nat_set_async_mode): Remove, moving the only used bits into... (linux_nat_setup_async): This. (_initialize_linux_nat): Do not register 'maint set linux-async'. Use linux_nat_setup_async. * remote.c (remote_async_permitted, remote_async_permitted_set) (set_maintenance_remote_async_permitted) (show_maintenance_remote_async_permitted): Remove. (remote_open_1, remote_terminal_inferior, remote_can_async_p) (remote_is_async_p): Use target_async_permitted. (_initialize_remote): Don't register 'main set remote-async'. * mi/mi-cmds.c (mi_cmds): Register -list-target-features. * mi/mi-cmds.h (mi_cmd_list_target_features): New. * mi/mi-main.c (mi_cmd_list_target_features): New.
2008-08-19 * target.c (maybe_kill_then_attach)Vladimir Prus2-27/+7
(maybe_kill_then_create_inferior): Remove. (update_current_target): Do not default to_attach, to_create_inferiour, to_is_async_p.
2008-08-19 * doc/gdb.texinfo (PowerPC): Fix typo.Vladimir Prus2-2/+7
(PowerPC features): Fix typo.
2008-08-19Add NEWS entry for last Ada changes, and adjust typos in last ChangeLogPaul N. Hilfinger2-3/+7
entry.
2008-08-19* ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): ChangePaul N. Hilfinger6-24/+93
API to return LONGEST values rather than struct values. (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound and discrete_type_high_bound. (to_fixed_range_type): Create a range type in cases where argument is base type and its limits are representable as ints. (ada_is_modular_type): Correct so that base type must be integral. * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' keywords when they appear alone, since we are phasing out direct representation of these identifiers in ebugging data. * ada-exp.y: Define 'true' and 'false' as primaries. (type_boolean): New function. (type_int,type_long,type_long_long,type_floattype_double) (type_long_double): Remove uses of current_gdbarch for consistency with type_boolean. (write_int): Change comment to indicate that it might write boolean constant as well. * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean type, since will no longer be represented as enumerated type in debugging data. * ada-valprint.c (print_optional_low_bound): Handle boolean case as well.
2008-08-19daily updateAlan Modra1-1/+1
2008-08-19*** empty log message ***gdbadmin1-1/+1
2008-08-18 * bsd-uthread.c (bsd_uthread_close): New.Pedro Alves2-9/+24
(bsd_uthread_deactivate): Don't cleanup here, just unpush the target. (bsd_uthread_solib_loaded): Fix typo. (bsd_uthread_target): Register bsd_uthread_close.
2008-08-18 * corelow.c (core_open): Assume there was no upper layer leftPedro Alves4-21/+32
behind from a previous inferior. * target.c (pop_all_targets): Rename to ... (pop_all_targets_above): ... this. Add a target stratum parameter. Use it instead of hardcoding the dummy_stratum. (pop_all_targets): New, defer to pop_all_targets_above. (target_preopen): Use pop_all_targets_above. * target.h (pop_all_targets_above): Declare.
2008-08-182008-08-18 Pedro Alves <pedro@codesourcery.com>Pedro Alves7-0/+68
gdb/doc/ * observer.texi (thread_ptid_changed): New. gdb/ * gdbthread.h (thread_change_ptid): Declare. * infrun.c (infrun_thread_ptid_changed): New. (_initialize_infrun): Attach infrun_thread_ptid_changed to the thread_ptid_changed observer. * regcache.c (regcache_thread_ptid_changed): New. (_initialize_regcache): Attach regcache_thread_ptid_changed to the thread_ptid_changed observer. * thread.c (thread_change_ptid): New.
2008-08-18 * symfile.c (reread_symbols): Update.Tom Tromey5-25/+10
* solib-sunos.c (allocate_rt_common_objfile): Update. * objfiles.c (allocate_objfile): Update. * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>: Remove.
2008-08-18 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile'sTom Tromey2-1/+6
obstack.
2008-08-182008-08-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+5
* config/tc-i386.c (i386_align_code): Fix a comment typo.
2008-08-18bfd/Richard Sandiford12-1/+221
* elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Copy MIPS16 stub information. ld/testsuite/ * ld-mips-elf/mips16-pic-4a.s, ld-mips-elf/mips16-pic-4b.s, ld-mips-elf/mips16-pic-4.ver, ld-mips-elf/mips16-pic-4a.dd, ld-mips-elf/mips16-pic-4a.nd, ld-mips-elf/mips16-pic-4a.gd, ld-mips-elf/mips16-pic-4c.s, ld-mips-elf/mips16-pic-4b.dd: New tests. * ld-mips-elf/mips-elf.exp: Run them.
2008-08-18 * doc/gdb.texinfo (PowerPC): Mention Extended FPR's for POWER7.Luis Machado6-5/+92
(PowerPC features): Mention feature set for VSX registers. * gdbserver/Makefile.in: Add required vsx dependencies. * gdbserver/linux-ppc-low: Define PPC_FEATURE_HAS_VSX. Declare init_registers_powerpc_vsx32l. Declare init_registers_powerpc_vsx64l. Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS. (ppc_arch_setup): Check for VSX in hwcap. (ppc_fill_vsxregset): New function. (ppc_store_vsxregset): New function. Add new VSX entry in regset_info target_regsets. * gdbserver/configure.srv: Add new VSX dependencies.
2008-08-18 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,Daniel Jacobowitz4-8/+59
lr_register. (rs6000_in_function_epilogue_p): Check for bctr. (skip_prologue): Initialize lr_register. Set lr_reg to a register number. Set gpr_mask and used_bl. Continue scanning while some expected registers are not saved. Set lr_register if LR is not stored. (rs6000_frame_cache): Handle gpr_mask and lr_register. * gdb.arch/powerpc-prologue.exp: Correct saved registers.
2008-08-18*** empty log message ***gdbadmin1-1/+1
2008-08-18daily updateAlan Modra1-1/+1
2008-08-17* elf32-arm.c: Tidy up the code.Nick Clifton2-216/+156
(bfd_elf32_arm_allocate_interworking_sections): Move common code into... (arm_allocate_glue_section_space): ... New function. (bfd_elf32_arm_add_glue_sections_to_bfd): Move common code into... (arm_make_glue_section): ... New function.
2008-08-17 * ld-elf/sec-to-seg1.s: Shorten test data to align the section toNick Clifton2-2/+7
a 4-byte boundary.
2008-08-17* elfxx-mips.c (_bfd_mips_elf_check_relocs): Handle the situationNick Clifton2-2/+8
where the sym_hashes are not available.