aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-08-24daily updateAlan Modra1-1/+1
2008-08-24*** empty log message ***gdbadmin1-1/+1
2008-08-232008-08-23 Jim Blandy <jimb@redhat.com>Tom Tromey2-0/+7
PR macros/607: * symmisc.c (print_symbol_bcache_statistics): Include statistics for the macro bcache.
2008-08-23 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.Tom Tromey2-2/+7
(argc): Now 31 bits.
2008-08-23(find_separate_debug_file): Use the canonicalAndreas Schwab2-8/+28
absolute name of the bfd object for finding the debug file in the global debugfile directory.
2008-08-23*** empty log message ***gdbadmin1-1/+1
2008-08-23daily updateAlan Modra1-1/+1
2008-08-22 * NEWS: Move macro entries back under "New commands".Tom Tromey2-4/+8
2008-08-22 * config/tc-mcore.c (md_assemble): Increase length of name arrayNick Clifton2-1/+6
to include terminating NUL.
2008-08-22 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...Ulrich Weigand2-2/+17
(create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter. (create_overlay_event_breakpoint): Loop over all objfiles to install multiple instances of the overlay event breakpoint if present.
2008-08-22 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.Ulrich Weigand2-0/+28
(info_spu_event_command): Command only supported on SPU architecture. (info_spu_signal_command): Likewise. (info_spu_mailbox_command): Likewise. (info_spu_dma_command): Likewise. (info_spu_proxydma_command): Likewise.
2008-08-22 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcacheUlrich Weigand2-7/+14
if the thread has already exited.
2008-08-22 * infrun.c (proceed): Move back setting previous_inferior_ptidPedro Alves2-3/+17
from here ... (wait_for_inferior): ... to here. (fetch_inferior_event): ... and here.
2008-08-22 * gdbarch.sh: Include "regcache.h" into gdbarch.c.Ulrich Weigand3-2/+11
(deprecated_current_gdbarch_select_hack): Call registers_changed instead of reinit_frame_cache. * gdbarch.c: Regenerate.
2008-08-22bfd/Jan Kratochvil7-1/+310
Fix PR ld/3290 regression for cross-files DW_FORM_ref_addr relocations. * elflink.c (elf_link_add_object_symbols): Make debug symbols local now only for non-RELOCATABLE targets. ld/testsuite/ * ld-x86-64/dwarfreloc.exp, ld-x86-64/dwarfreloc.rd, ld-x86-64/dwarfreloc1.s, ld-x86-64/dwarfreloc2.s: New test.
2008-08-22 * config/bfin-lex.l (NUMBER): Protect special `.'.Jie Zhang6-1/+27
testsuite/ * gas/bfin/misc.s: New test. * gas/bfin/misc.d: New test. * gas/bfin/bfin.exp: Add misc test.
2008-08-22 * symbols.c (symbol_clone): Ensure clones are not external.Alan Modra2-1/+12
2008-08-22 * config/tc-hppa.c (md_begin): Set BSF_KEEP for "dummy_symbol".Alan Modra2-76/+80
2008-08-22daily updateAlan Modra1-1/+1
2008-08-22*** empty log message ***gdbadmin1-1/+1
2008-08-21 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.Ulrich Weigand2-2/+8
2008-08-21 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.Daniel Jacobowitz2-1/+5
2008-08-21 * findvar.c (locate_var_value): Do not call get_frame_archUlrich Weigand2-1/+8
with a NULL frame argument.
2008-08-21 * frame.h (frame_map_regnum_to_name): Remove prototype.Ulrich Weigand9-40/+45
(frame_map_name_to_regnum): Remove prototype. * frame.c (frame_map_regnum_to_name): Remove. (frame_map_name_to_regnum): Remove. (frame_unwind_register_value): Use user_reg_map_regnum_to_name instead of frame_map_regnum_to_name. * ax-gdb.c: Include "user-regs.h". (gen_expr): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * eval.c: Include "user-regs.h". (evaluate_subexp_standard): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * infcmd.c (registers_info): Likewise. * parse.c: Include "user-regs.h". (write_dollar_variable): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * tracepoint.c: Include "user-regs.h". (encode_actions): Use user_reg_map_name_to_regnum instead of frame_map_name_to_regnum. * valops.c: Include "user-regs.h". (value_fetch_lazy): Use user_reg_map_regnum_to_name instead of frame_map_regnum_to_name.
2008-08-21 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): ReadUlrich Weigand2-1/+36
and manually relocate .opd contents from BFD instead of reading them from target memory.
2008-08-21 * dw2gencfi.c (DWARF2_FDE_RELOC_SIZE): New.Richard Henderson4-12/+67
(output_cie, output_fde): Use it. (DWARF2_EH_FRAME_READ_ONLY): New. (cfi_finish): Use it. * config/tc-hppa.h (DWARF2_FDE_RELOC_SIZE): Set to 8 for 64-bit. (DWARF2_CIE_DATA_ALIGNMENT): Change sign. (DWARF2_EH_FRAME_READ_ONLY): New. * config/tc-hppa.c (tc_gen_reloc): Generate pc-relative relocations from the results of DIFF_EXPR_OK manipulation.
2008-08-21 * gas/cfi/cfi-common-1.d: Allow for differing offsets, andRichard Henderson4-16/+29
for DW_CFA_offset_extended_sf results. Allow for differing nops. * gas/cfi/cfi-hppa-1.d: Invert data alignment sign. Change offsets to match 64-bit offsets. * gas/cfi/cfi.exp: Don't run common tests on hppa64.
2008-08-21 * readelf.c (is_32bit_pcrel_reloc): Fix hppa entry.Richard Henderson2-5/+48
(is_64bit_pcrel_reloc): New. (debug_apply_relocations): Use it. Handle hppa pcrel bias.
2008-08-21 * dwarf2read.c (processing_current_prefix): Delete staticDaniel Jacobowitz3-252/+225
variable. (process_full_comp_unit): Do not set processing_current_prefix. (dwarf2_full_name): New function. (read_func_scope): Do not set processing_current_prefix. Use determine_prefix. (read_structure_type): Do not set processing_current_prefix. Remove unused inner cleanup. (process_structure_scope): Do not set processing_current_prefix. (read_enumeration_type): Use dwarf2_full_name. (determine_class_name): Return a const char *. Put the result on the objfile obstack. Use dwarf2_full_name. (read_namespace_type): New function. (read_namespace): Do not create the type here. Use determine_prefix. (read_typedef): Use dwarf2_full_name. Do not pass the name to init_type. (read_base_type): Do not pass the name to init_type. Handle TYPE_FLAG_NOSIGN. (read_unspecified_type): Do not pass the name to init_type. (new_symbol): Use dwarf2_full_name instead of processing_current_prefix. (read_type_die): Do not set processing_current_prefix. Handle DW_TAG_namespace. (determine_prefix): Handle specifications. Return the result on the objfile obstack. Handle unions correctly.
2008-08-21 * buildsym.c (add_symbol_to_list): Do not callDaniel Jacobowitz9-81/+115
cp_scan_for_anonymous_namespaces here. (finish_block): Do not call cp_set_block_scope here. * cp-namespace.c (processing_has_namespace_info) (processing_current_prefix): Delete. (cp_initialize_namespace): Do not initialize processing_has_namespace_info. (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do not check processing_has_namespace_info. (cp_set_block_scope): Take prefix and namespace info flag as arguments. Honor namespaces regardless of a demangled name. * cp-support.h (processing_has_namespace_info) (processing_current_prefix): Delete declarations. (cp_set_block_scope): Update prototype. * dwarf2read.c (processing_has_namespace_info) (processing_current_prefix): New static variables. (read_file_scope): Initialize processing_has_namespace_info. (read_func_scope): Call cp_set_block_scope for C++. (new_symbol): Call cp_scan_for_anonymous_namespaces for C++. * symtab.c (symbol_demangled_name): Accept a const argument. * symtab.h (symbol_demangled_name): Update prototype.
2008-08-21 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.Daniel Jacobowitz28-195/+248
* blockframe.c (find_pc_partial_function): Likewise. * buildsym.c (find_symbol_in_list): Likewise. * c-valprint.c (c_val_print): Likewise. * coffread.c (patch_opaque_types, process_coff_symbol): Likewise. (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME. * cp-support.c (cp_remove_params): Renamed from remove_params and made global. (overload_list_add_symbol): Update call to remove_params. * cp-support.h (cp_remove_params): Declare. * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME. (dwarf2_const_value): Use SYMBOL_PRINT_NAME. * expprint.c (dump_subexp_body_standard): Likewise. * f-valprint.c (info_common_command, there_is_a_visible_common_named): Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME for messages. * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME. * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise. * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline) (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME for messages. * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME. * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME. * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and SYMBOL_SET_LINKAGE_NAME. (mylookup_symbol): Use SYMBOL_LINKAGE_NAME. * minsyms.c (add_minsym_to_demangled_hash_table): Use SYMBOL_SEARCH_NAME. (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or SYMBOL_MATCHES_SEARCH_NAME, depending on the pass. * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME. * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME. (address_info): Use SYMBOL_PRINT_NAME for messages and SYMBOL_LINKAGE_NAME for lookups. * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages. * stabsread.c (patch_block_stabs, define_symbol) (read_type, read_enum_type, common_block_end) (cleanup_undefined_types_1, scan_file_globals): Use SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS, and SYMBOL_PRINT_NAME. * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME. (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use cp_remove_params instead of cplus_demangle. (print_block_frame_labels, print_frame_arg_vars): Use SYMBOL_LINKAGE_NAME. * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and SYMBOL_LINKAGE_NAME. (dump_symtab_1, print_symbol, print_partial_symbols) (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME. * symtab.h (DEPRECATED_SYMBOL_NAME): Delete. (SYMBOL_SET_LINKAGE_NAME): New. (SYMBOL_SET_NAMES): Add a comment. * tracepoint.c (set_traceframe_context, validate_actionline) (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for lookups and SYMBOL_PRINT_NAME for output. * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME. * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2008-08-212008-08-21 Sterling Augustine <sterling@tensilica.com>Bob Wilson2-1/+5
* config/xtensa-istack.h (MAX_INSN_ARGS): Increase to 64.
2008-08-21 * gdb.mi/mi-nonstop.exp: Fix the check for non-stopVladimir Prus3-13/+35
support. Adjust the order of "*running" notifications. * gdb.mi/non-stop.c: Don't cast from int to void* and back.
2008-08-21 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.Pedro Alves9-22/+50
* hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use obj_section_addr and obj_section_endaddr. * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise. * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise. * ia64-tdep.c (ia64_find_global_pointer): Likewise. (find_extant_func_descr): Likewise. * solib-frv.c (frv_relocate_main_executable): Use obj_section_addr. * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use obj_section_addr and obj_section_endaddr.
2008-08-21 PR ld/6833Jan Kratochvil3-7/+23
* ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align EXPLD.DATASEG.MIN_BASE. * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'. Use OLD_BASE now for the minimal base check after the base decrease by the maximum alignment found.
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