aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-12-072007-12-07 Bob Wilson <bob.wilson@acm.org>Bob Wilson12-77/+161
include/elf/ * xtensa.h (R_XTENSA_32_PCREL): New. bfd/ * elf32-xtensa.c (elf_howto_table): Add R_XTENSA_32_PCREL. (elf_xtensa_reloc_type_lookup): Handle BFD_RELOC_32_PCREL. (elf_xtensa_check_relocs): Use default case for all relocations that need nothing done here. (elf_xtensa_do_reloc): Compute self_address for all relocation types. Handle R_XTENSA_32_PCREL. (elf_xtensa_relocate_section): Check for R_XTENSA_32_PCREL for dynamic symbols. (check_section_ebb_pcrels_fit): Ignore R_XTENSA_32_PCREL relocations. gas/ * config/tc-xtensa.c (O_pcrel): Define. (suffix_relocs): Add pcrel suffix. (md_pseudo_table): Add 4byte and 2byte directives. (xtensa_elf_cons): Pass correct pcrel argument to fix_new_exp. (xg_assemble_literal): Likewise. Check for O_pcrel. (expression_maybe_register): Reorganize. Handle BFD_RELOC_32_PCREL. (xg_valid_literal_expression): Allow O_pcrel. (md_pcrel_from, md_apply_fix): Handle BFD_RELOC_32_PCREL. (tc_gen_reloc): Fix punctuation in error message. gas/testsuite/ * gas/xtensa/all.exp: Run new pcrel test. * gas/xtensa/err-pcrel.s: New. * gas/xtensa/pcrel.d: New. * gas/xtensa/pcrel.s: New. * gas/xtensa/xtensa-err.exp: New.
2007-12-07From Cary Coutant: Fix handling of RELATIVE RELA relocs.Ian Lance Taylor6-111/+200
2007-12-07* mips-tdep.c (extended_offset): Fix a comment.Maciej W. Rozycki2-1/+5
2007-12-07* target.c (update_current_target): Inherit to_log_command.Maciej W. Rozycki8-1/+27
* target.h (struct target_ops). Add to_log_command. (target_log_command): New macro. * top.c (execute_command): Call target_log_command() rather than serial_log_command(). * monitor.c (init_base_monitor_ops): Initialize to_log_command. * remote-m32r-sdi.c (init_m32r_ops): Likewise. * remote-mips.c (_initialize_remote_mips): Likewise. * remote.c (init_remote_ops): Likewise.
2007-12-07 * server.c (myresume): Add own_buf argument.Daniel Jacobowitz2-5/+10
(main): Update calls.
2007-12-07Fix ehframe header handling for shared libraries.Ian Lance Taylor3-5/+30
2007-12-07 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.Daniel Jacobowitz6-48/+48
* remote-utils.c (remote_open): Do not call disable_async_io. (block_async_io): Delete. (unblock_async_io): Make static. (initialize_async_io): New. * server.c (handle_v_cont): Handle async I/O here. (myresume): Likewise. Move other common resume tasks here... (main): ... from here. Call initialize_async_io. Disable async I/O before the main loop. * server.h (initialize_async_io): Declare. (block_async_io, unblock_async_io): Delete prototypes. * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
2007-12-07 * config/tc-xtensa.c (xg_force_frag_space): Delete.Bob Wilson2-178/+70
(xg_finish_frag, xg_assemble_literal_space): Replace calls to it. (xtensa_create_property_segments, xtensa_create_xproperty_segments): Set output_section for new property sections. Use subseg_set and seg_info instead of retrieve_segment_info. Adjust arguments to add_xt_block_frags and add_xt_prop_frags. Use standard functions to create frags and fix records. (retrieve_segment_info): Delete. (add_xt_block_frags, add_xt_prop_frags): Replace calls to retrieve_segment_info. Remove unused xt_block_sec arguments.
2007-12-07From Cary Coutant: Some x86_64 shared library fixes.Ian Lance Taylor1-19/+12
2007-12-07From Cary Coutant: Remove commented out assert. Also add comment forIan Lance Taylor1-4/+3
bitfield check.
2007-12-07 * infrun.c (init_wait_for_inferior): Reset target_last_wait_ptid.Daniel Jacobowitz2-1/+10
(handle_inferior_event): Clear stop_stack_dummy earlier.
2007-12-07*** empty log message ***gdbadmin1-1/+1
2007-12-06 * addrmap.c (addrmap_splay_tree_remove): New function.Jim Blandy2-1/+11
(addrmap_mutable_set_empty): Use it.
2007-12-06daily updateAlan Modra1-1/+1
2007-12-06config/Richard Sandiford3-4/+9
* mt-sde (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Use +=, not =. * mt-mips-elfoabi: Likewise.
2007-12-06* addrmap.c, addrmap.h: Update to GPLv3.Jim Blandy3-23/+35
* addrmap.c (struct addrmap): Make the referenced function table const. (addrmap_fixed_funcs, addrmap_mutable_funcs): Declare const. Don't use designated initializers. * addrmap.c (addrmap_fixed_create_fixed, addrmap_mutable_find) (addrmap_mutable_relocate): Use internal_error, not abort.
2007-12-06From Craig Silverstein: Reorganize testsuite Makefile.am.Ian Lance Taylor2-443/+517
2007-12-06* NEWS: Mention support for non-contiguous lexical blocks andJim Blandy2-0/+9
function bodies.
2007-12-06 * gdbarch.sh (stab_reg_to_regnum, dwarf_reg_to_regnum)Markus Deuling20-67/+90
( dwarf2_reg_to_regnum, sdb_reg_to_regnum, ecoff_reg_to_regnum): Add gdbarch as parameter. * gdbarch.{c,h}: Regenerate. * xtensa-tdep.c (xtensa_reg_to_regnum): Add gdbarch as parameter. Replace current_gdbarch by gdbarch. * s390-tdep.c (s390_dwarf_reg_to_regnum): Likewise. * rs6000-tdep.c (rs6000_stab_reg_to_regnum) (rs6000_dwarf2_reg_to_regnum): Likewise. * mips-tdep.c (mips_stab_reg_to_regnum) (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise. * mep-tdep.c (mep_debug_reg_to_regnum): Likewise. * m32c-tdep.c (m32c_debug_info_reg_to_regnum): Likewise. * i386-tdep.c (i386_dbx_reg_to_regnum) (i386_svr4_reg_to_regnum): Likewise * h8300-tdep.c (h8300s_dbg_reg_to_regnum) (h8300_dbg_reg_to_regnum): Likewise. * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Likewise. * arch-utils.c (no_op_reg_to_regnum): Likewise. * arch-utils.h (no_op_reg_to_regnum): Likewise. * arm-tdep.c (arm_dwarf_reg_to_regnum): Likewise. * cris-tdep.c (cris_dwarf2_reg_to_regnum): Likewise. * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Likewise. * ia64-tdep.c (ia64_dwarf_reg_to_regnum): Likewise. * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
2007-12-062007-12-06 Mick Davis <mickd@goanna.iinet.net.au>Daniel Jacobowitz2-1/+5
* remote-utils.c (readchar): Allow binary data in received messages.
2007-12-06 Localize infrun use of remove_breakpoints.Vladimir Prus2-5/+14
* infrun.c (handle_inferior_event): Remove calls to remove_breakpoints, except where needed to communicate change of breakpoint locations to inferior. (keep_going): If steppping over breakpoint, remove breakpoints.
2007-12-06 Clarify infrun variable naming.Vladimir Prus4-50/+99
* infrun.c (trap_expected): Rename to stepping_over_breakpoint. Document. (stepping_past_breakpoint): Remove. (stepping_past_breakpoint_ptdi): Renamed to deferred_step_ptid. (struct execution_control_state): Rename the another_trap field to stepping_over_breakpoint. (struct inferior_status): Rename the trap_expected field to stepping_over_breakpoint. (clear_proceed_status, proceed) (init_execution_control_state, context_switch) (handle_inferior_event, currently_stepping) (keep_going, save_inferior_status) (restore_inferior_status, prepare_to_proceed): Adjust. * gdbthread.h (struct thread_info): Rename the trap_expected field to stepping_over_breakpoint. * thread.c (load_infrun_state, save_infrun_state): Adjust.
2007-12-062007-12-06 Pierre Muller <muller@ics.u-strasbg.fr>Pierre Muller4-15/+36
* win32-nat.c: Allow compilation if CORE_ADDR is 8 byte long. Add "gdb_stdint.h" dependency required for uintptr_t type use. (handle_output_debug_string): Use uintptr_t typecast. (handle_exception): Ditto. (win32_xfer_memory): Ditto. * Makefile.in (win32-nat.o): Add dependency to gdb_stdint header.
2007-12-06Initialize variable to avoid warning.Ian Lance Taylor1-1/+1
2007-12-06From Cary Coutant: More support for generating shared libraries.Ian Lance Taylor12-360/+1285
2007-12-06Fix comment.Ian Lance Taylor1-2/+3
2007-12-06Don't write out the symbol table when stripping.Ian Lance Taylor1-7/+10
2007-12-06*** empty log message ***gdbadmin1-1/+1
2007-12-05daily updateAlan Modra1-1/+1
2007-12-05Rework Stringpool to not compute the hash code twice when adding a newIan Lance Taylor2-120/+184
string.
2007-12-05 * elf32-spu.c (spu_elf_size_stubs): Do consider branches toAlan Modra2-1/+7
non-function symbols for overlay stubs.
2007-12-05 * config.sub, config.guess: Update from upstream sources.Ben Elliston3-6/+45
2007-12-05From Craig Silverstein: Support -o -.Ian Lance Taylor1-12/+21
2007-12-05From Craig Silverstein: Test some flags.Ian Lance Taylor2-13/+132
2007-12-05Stringpool stats. Also make Symbol_table support functions inline.Ian Lance Taylor6-7/+43
2007-12-05*** empty log message ***gdbadmin1-1/+1
2007-12-04Support lexical blocks and function bodies that occupyJim Blandy13-32/+947
non-contiguous address ranges. * addrmap.c, addrmap.h: New files. * block.h (struct addrmap): New forward declaration. (struct blockvector): New member, 'map'. (BLOCKVECTOR_MAP): New accessor macro. * block.c: #include "addrmap.h" (blockvector_for_pc_sect): If the blockvector we've found has an address map, use it instead of searching the blocks. * buildsym.c: #include "addrmap.h" (pending_addrmap_obstack, pending_addrmap_interesting): New static variables. (really_free_pendings): If we have a pending addrmap, free it too. (record_block_range): New function. (make_blockvector): If we have an interesting pending addrmap, record it in the new blockvector. (start_symtab, buildsym_init): Assert that there is no pending addrmap now; we should have cleaned up any addrmaps we'd built previously. (end_symtab): If there is a pending addrmap left over that didn't get included in the blockvector, free it. * buildsym.h (struct addrmap): New forward declaration. (record_block_range): New prototype. * objfiles.c: #include "addrmap.h". (objfile_relocate): Relocate the blockvector's address map, if present. * dwarf2read.c (dwarf2_record_block_ranges): New function. (read_func_scope, read_lexical_block_scope): Call it. * Makefile.in (SFILES): Add addrmap.c. (addrmap_h): New header dependency variable. (COMMON_OBS): Add addrmap.o. (addrmap.o): New rule.l (block.o, objfiles.o, buildsym.o): Depend on $(addrmap_h). * block.c (blockvector_for_pc, blockvector_for_pc_sect): Return a pointer to the block, not its index in the blockvector. (block_for_pc_sect): Use the returned block, instead of looking it up ourselves. * block.h (blockvector_for_pc, blockvector_for_pc_sect): Update declarations. * breakpoint.c (resolve_sal_pc): Use returned block, instead of looking it up ourselves. * stack.c (print_frame_label_vars): Disable function, which depends on the block's index. * buildsym.c (finish_block): Return the block we've built. * buildsym.h (finish_block): Update prototype. * defs.h (CORE_ADDR_MAX): New constant.
2007-12-04From Craig Silverstein: Support irregular output files.Ian Lance Taylor2-20/+87
2007-12-04 * coffread.c (decode_type): Use builtin_type_int32 insteadUlrich Weigand20-1401/+146
of FT_INTEGER fundamental type for array range index type. (decode_base_type): Use builtin types of current_gdbarch instead of fundamental types. * dwarf2read.c (struct dwarf2_cu): Remove ftypes member. (read_file_scope): Do not initialize ftypes member. (dwarf_base_type, dwarf2_fundamental_types): Remove functions. (read_array_type): Use builtin_type_int32 instead of FT_INTEGER fundamental type for array range index type. (read_tag_string_type): Likewise for string range index type. Also, do not overwrite FT_CHAR type with new string type. (read_base_type): If DW_AT_name is missing, create unnamed type with given properties instead of looking for a fundamental type. Create new types as TYPE_TARGET_TYPE for DW_ATE_address and DW_ATE_complex_float types. (read_subrange_type): Create new type to represent missing DW_AT_type instead of looking for a fundamental type. (die_type): Use builtin type to represent "void" instead of looking for a fundamental type. * stabsread.c (define_symbol): Use builtin types to represent 'r' and 'i' floating-point and integer constants. * gdbtypes.c (lookup_fundamental_type): Remove. * gdbtypes.h (lookup_fundamental_type): Remove prototype. (FT_VOID, FT_BOOLEAN, FT_CHAR, FT_SIGNED_CHAR, FT_UNSIGNED_CHAR, FT_SHORT, FT_SIGNED_SHORT, FT_UNSIGNED_SHORT, FT_INTEGER, FT_SIGNED_INTEGER, FT_UNSIGNED_INTEGER, FT_LONG, FT_SIGNED_LONG, FT_UNSIGNED_LONG, FT_LONG_LONG, FT_SIGNED_LONG_LONG, FT_UNSIGNED_LONG_LONG, FT_FLOAT, FT_DBL_PREC_FLOAT, FT_EXT_PREC_FLOAT, FT_COMPLEX, FT_DBL_PREC_COMPLEX, FT_EXT_PREC_COMPLEX, FT_STRING, FT_FIXED_DECIMAL, FT_FLOAT_DECIMAL, FT_BYTE, FT_UNSIGNED_BYTE, FT_TEMPLATE_ARG, FT_DECFLOAT, FT_DBL_PREC_DECFLOAT, FT_EXT_PREC_DECFLOAT, FT_NUM_MEMBERS): Remove macros. * objfiles.c (struct objfile): Remove fundamental_types member. * symfile.c (reread_symbols): Do not clear fundamental_types. * language.h (struct language_defn): Remove la_fund_type member. (create_fundamental_type): Remove. * language.c (unk_lang_create_fundamental_type): Remove. (unknown_language_defn, auto_language_defn, local_language_defn): Adapt initializer. * ada-lang.c (ada_create_fundamental_type): Remove. (ada_language_defn): Adapt initializer. * c-lang.h (c_create_fundamental_type): Remove prototype. * c-lang.c (c_create_fundamental_type): Remove. (c_language_defn, cplus_language_defn, asm_language_defn, minimal_language_defn): Adapt initializer. * f-lang.c (f_create_fundamental_type): Remove. (f_language_defn): Adapt initializer. * jv-lang.c (java_create_fundamental_type): Remove. (java_language_defn): Adapt initializer. * m2-lang.c (m2_create_fundamental_type): Remove. (m2_language_defn): Adapt initializer. * objc-lang.c (objc_create_fundamental_type): Remove. (objc_language_defn): Adapt initializer. * p-lang.h (pascal_create_fundamental_type): Remove prototype. * p-lang.c (pascal_create_fundamental_type): Remove. (pascal_language_defn): Adapt initializer. * scm-lang.c (scm_language_defn): Adapt initializer.
2007-12-04Print symbol table statistics with --stats.Ian Lance Taylor3-0/+19
2007-12-04daily updateAlan Modra1-1/+1
2007-12-042007-11-26 Thiago Jung Bauermann <bauerman@br.ibm.com>Ben Elliston2-21/+32
* Makefile.in (decimal32.o): Prepend $(srcdir) to dependencies and substitute $< for the source file in compilation command. (decimal64.o): Likewise. (decimal128.o): Likewise. (bid2dpd_dpd2bid.o): Likewise. (host-ieee32.o): Likewise. (host-ieee64.o): Likewise. (host-ieee128.o): Likewise.
2007-12-04 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Create DT_PLTGOTBob Wilson2-3/+8
entry for all dynamic objects.
2007-12-04* features/mips-cpu.xml: Specify "regnum" for "r0" explicitly.Maciej W. Rozycki7-74/+83
* features/mips64-cpu.xml: Likewise. * features/mips-fpu.xml: Specify "regnum" for "f0" explicitly. * features/mips64-fpu.xml: Likewise. * features/mips-linux.c: Regenerate. * features/mips64-linux.c: Regenerate.
2007-12-04* target.h (target_find_new_threads): Fix definition.Maciej W. Rozycki2-1/+5
2007-12-04 * elf32-spu.c (spu_elf_size_stubs): Correct section alignment.Alan Modra2-2/+6
2007-12-04From Craig Silverstein: Use gold_fatal in options.h, beef up value checks.Ian Lance Taylor1-14/+16
2007-12-04*** empty log message ***gdbadmin1-1/+1
2007-12-03 * readelf.c (is_32bit_abs_reloc, is_32bit_pcrel_reloc): Add SPU.Alan Modra2-0/+8
2007-12-03 * config/tc-ppc.c (ppc_tc): Allow a space between toc symbolAlan Modra2-0/+6
name and bracket.