aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2004-10-152004-10-15 Andrew Cagney <cagney@gnu.org>Andrew Cagney5-16/+25
* ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out. * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>. * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc. Update dependencies.
2004-10-15* ada-lang.c (ada_lookup_symbol): Correct comment.Paul N. Hilfinger2-17/+110
(ada_evaluate_subexp): Change error message for OP_FUNCALL case so as not to indicate an internal error. From Joel Brobecker; committed by Paul Hilfinger. * ada-lang.c (ada_template_to_fixed_record_type_1): Detect bogus type sizes in XVE/XVU types, and emit a warning when that happens, instead of rounding up the size of the resulting type. Some minor reformatting. (ada_is_aligner_type): Do not consider a type as an aligner type if there is a corresponding XVS type as well. (ada_evaluate_subexp): For TERNOP_SLICE, handle cases where we have several levels of pointer indirection to the array. From Jerome Guitton; committed by Paul Hilfinger. * ada-lang.c (check_size): New function. (coerce_unspec_val_to_type): call check_size to make sure that the object size is reasonable. (ada_evaluate_subexp): in UNOP_IND: Ditto. In TERNOP_SLICE: Implements the case when we get a reference when we evaluate the expression of one of the bounds of the slice. (ada_value_struct_elt): when a packed array field is a reference, use ada_coerce_ref to dereference it; use ada_value_ind only if it is a pointer.
2004-10-15 * mips-tdep.c (mips32_scan_prologue): Move the implementation upJoel Brobecker2-484/+484
a bit to avoid the necessity of an advance declaration. Remove declaration. (set_reg_offset): Move implemenation up. (mips16_get_imm): Likewise. (mips16_scan_prologue): Likewise. (reset_saved_regs): Likewise. (mips32_scan_prologue): Likewise.
2004-10-15 * mips-tdep.c (mips32_scan_prologue): Add advance declaration.Joel Brobecker2-19/+58
Remove sp as a parameter, compute it internally instead. Move prologue scanning limit from heuristic_proc_desc to here. (mips16_scan_prologue): Likewise. (mips_insn16_frame_cache): Replace call to heuristic_proc_desc by call to mips16_scan_prologue. (mips_insn32_frame_cache): Replace call to heuristic_proc_desc by call to mips32_scan_prologue. (heuristic_proc_desc): Remove code that's no longer necessary. Update calls to mips16_scan_prologue and mips32_scan_prologue. (mips_skip_prologue): Update calls to mips16_scan_prologue and mips32_scan_prologue.
2004-10-15 * ldexp.c (exp_fold_tree): Don't immediately exit ld on aAlan Modra2-3/+6
failing link script assert.
2004-10-15 * ldctor.c (ldctor_add_set_entry): Fix comment typo.Alan Modra2-2/+6
2004-10-15 * Makefile.am: Run "make dep-am"Alan Modra6-12/+28
* Makefile.in: Regenerate.
2004-10-15 * config.bfd: Whitespace cleanup.Alan Modra4-38/+46
* Makefile.am: Run "make dep-am" * Makefile.in: Regenerate.
2004-10-15 * elflink.c (struct already_linked_section): Removed.Jakub Jelinek2-83/+46
(try_match_symbols_in_sections, already_linked): Removed. (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\. prefix of section names when finding already_linked_table chain. Compare section names. Instead of calling already_linked, do it inline and only for sections in the same already_linked_list.
2004-10-15 * mips-tdep.c (mips16_scan_prologue): Merge code fromJoel Brobecker2-96/+53
mips16_skip_prologue. Now return the address of the first instruction past the function prologue. (mips16_skip_prologue): Remove, no longer necessary. (mips_skip_prologue): Replace call to mips16_skip_prologue by call to mips16_scan_prologue.
2004-10-15 * ld-crx/reloc-num8.d: Adjust for changed orphan placement.Alan Modra6-9/+17
* ld-crx/reloc-num16.d: Likewise. * ld-crx/reloc-num32.d: Likewise. * ld-scripts/provide-2.t: Start .data at 0x2000. * ld-scripts/provide-2.d: Adjust.
2004-10-15daily updateAlan Modra1-1/+1
2004-10-15*** empty log message ***gdbadmin1-1/+1
2004-10-14 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"Alan Modra4-5/+28
parameter. If called after _bfd_elf_write_section_eh_frame, don't allow a -2 return unless need_* bit is already set, and handle offsets adjusted for output_offset. * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype. * elf.c (_bfd_elf_section_offset): Update call.
2004-10-14 * doc/c-xtensa.texi (Xtensa Options, Absolute Literals Directive):Bob Wilson2-28/+47
Remove comments about placement of literal pools. (Literal Directive): Update description of literal placement. (Literal Prefix Directive): Remove statement that this does not apply to absolute-mode literals. Describe new section naming scheme.
2004-10-14 * mips-tdep.c (mips32_scan_prologue): Merge code fromJoel Brobecker2-107/+89
mips32_skip_prologue. Now return the address of the first instruction past the function prologue. (mips32_skip_prologue): Remove. No longer necessary. (mips16_skip_prologue): Add parameter end_pc instead of computing it. (mips_skip_prologue): Compute the upper limit for the prologue scanning. Update call to mips16_skip_prologue. Replace call to mips32_skip_prologue by call to mips32_scan_prologue.
2004-10-14* hppa-tdep.c (hppa_frame_cache): Add support for OpenBSD andMark Kettenis2-0/+9
NetBSD system call stubs that store %rp in the ERP slot of the stack frame.
2004-10-14Fix changelog (but not mine :-)Andrew Cagney1-1/+1
2004-10-142004-10-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney2-1/+5
* gdb.mi/gdb701.c (main): Return 0.
2004-10-142004-10-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu4-2/+23
PR 445 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set. (SMALL_DATA_DTOR): Set. * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset. (SMALL_DATA_DTOR): Unset. * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors after .data. If SMALL_DATA_DTOR is set, move .dtors after .data.
2004-10-142004-10-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+9
* ld-scripts/sort.exp: Run for ELF targets only.
2004-10-14 * gas/arm/mapping.d: Pass --special-syms to objdump.Paul Brook2-1/+5
2004-10-14* source.c: Always define O_BINARY to 0 if not defined already.Mark Kettenis2-6/+7
(openp): Unconditionally use O_BINARY.
2004-10-14ld/Alan Modra9-775/+779
PR 63 * ldlang.h (lang_output_section_statement_type): Make "next" a struct lang_output_section_statement_struct *. (struct orphan_save): Move from elf32.em. Add "name" and "flags". (lang_output_section_find_by_flags, lang_insert_orphan): Declare. * ldlang.c (lang_output_section_find_1): Adjust for changed output_section_statement "next". (strip_excluded_output_sections): Likewise. (lang_record_phdrs): Likewise. (lang_output_section_find_by_flags): New function. (output_prev_sec_find): Move from pe.em. Adjust iterator. (lang_insert_orphan): New function. Tail end of elf32.em's place_orphan merged with that from pe.em. Allow bfd_section to be placed first. New heuristic for placing new output section statement in existing script, and accompanying split of __start symbol alignment into a separate assignment to dot. (lang_add_section): Consistently use output->bfd_section rather than an alias, section->output_section. (map_input_to_output_sections): Rename overly long arg. Move initialization of data_statement output section to here.. (lang_check_section_addresses): ..from here. (print_assignment): Correct printing of etree_assert. (print_all_symbols): Don't bomb if userdata is NULL. (IGNORE_SECTION): Rearrange. * emultempl/elf32.em (output_rel_find): Adjust interator. (output_prev_sec_find): Delete. (struct orphan_save): Delete. (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section flags without creating a duplicate output section statement. Revise code holding history of various orphan section placements. Allow orphan sections to place before script specified output sections. Call lang_output_section_find_by_flags when placement by name fails. Use lang_insert_orphan. * emultempl/mmo.em (output_prev_sec_find): Delete. (struct orphan_save): Delete. (mmo_place_orphan): Revise code holding history of orphan placement. Allow orphans to place before existing output sections. Use lang_insert_orphan. * emultempl/pe.em (output_prev_sec_find): Delete. (struct orphan_save): Delete. (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of lang_insert_orphan. ld/testsuite/ * ld-scripts/overlay-size.d: Update for changed orphan section placement. * ld-mmix/bpo-18.d: Likewise.
2004-10-14* top.c (gdb_readline): Always accept "rn" as a line-ending.Mark Kettenis3-9/+5
* event-top.c (gdb_readline2): Likewise.
2004-10-142004-10-14 Orjan Friberg <orjanf@axis.com>Orjan Friberg2-0/+6
* cris-tdep.c (_initialize_cris_tdep): Re-add call to deprecated_add_core_fns which was removed by mistake.
2004-10-14(usage): Fix description of --special-syms switch.Nick Clifton2-1/+5
2004-10-14daily updateAlan Modra1-1/+1
2004-10-14*** empty log message ***gdbadmin1-1/+1
2004-10-13 * ia64-linux-nat.c (fill_gregset, fill_fpregset): ReplaceKevin Buettner2-9/+8
references to deprecated_registers[] with equivalent code.
2004-10-13 * dw2-intercu.S, dw2-intercu.exp: New files.Daniel Jacobowitz3-0/+293
2004-10-132004-10-13 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-1/+7
PR 440 * coffcode.h (coff_compute_section_file_positions): Cast to bfd_vma when computing page alignment.
2004-10-13 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use fileMark Mitchell4-4/+23
offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED. * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a loadable segment.
2004-10-13 * rs6000-tdep.c (rs6000_push_dummy_call): Replace references toKevin Buettner2-22/+26
``deprecated_registers'' with equivalent code. Use gdb_assert() instead of explicit test and print statement.
2004-10-13 * strings.c (statbuf): New typedef.Jakub Jelinek5-9/+109
(file_stat): Define. (strings_object_file): Avoid using get_file_size, instead do the checks here, using file_stat. * configure.in (HAVE_STAT64): New test. * configure: Rebuilt. * config.in: Rebuilt.
2004-10-13 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.pltMark Mitchell2-1/+7
relocations use a virtual address, not a section offset.
2004-10-13 PR 44Alan Modra2-13/+46
* ldcref.c (check_section_sym_xref): Delete. (check_local_sym_xref): New function. (check_nocrossrefs): Adjust call.
2004-10-13daily updateAlan Modra1-1/+1
2004-10-13*** empty log message ***gdbadmin1-1/+1
2004-10-12 PR 44Alan Modra2-97/+139
* emultempl/pe.em (struct orphan_save): Add os_tail. (place_orphan): Backport assorted fixes from elf32.em.
2004-10-12merge from gccDJ Delorie3-88/+80
2004-10-12 Kelley Cook <kcook@gcc.gnu.org> * configure.in (*-*-cygwin*): Supress warning if newlib not present. * configure: Regenerate.
2004-10-12bfd ChangeLogBob Wilson5-278/+196
* elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete. (narrow_instruction, widen_instruction): Remove unnecessary calls to xtensa_format_encode. (ebb_propose_action): Inline call to ebb_add_proposed_action. (ebb_add_proposed_action): Delete. gas ChangeLog * config/tc-xtensa.c (xtensa_frequency_pseudo): Use set_subseg_freq. (is_entry_opcode, is_movi_opcode, is_the_loop_opcode, is_jx_opcode, is_windowed_return_opcode): Delete. (xtensa_frob_label): Use get_subseg_target_freq. (md_assemble): Inline call to is_entry_opcode. (xtensa_handle_align): Inline call to get_frag_is_literal. (relaxation_requirements): Inline call to is_jx_opcode. (emit_single_op): Inline call to is_movi_opcode. (xg_assemble_vliw_tokens): Inline calls to get_frag_is_insn, get_frag_is_no_transform, is_entry_opcode, and set_frag_is_specific_opcode. Use get_subseg_total_freq. (xtensa_fix_a0_b_retw_frags, xtensa_fix_b_j_loop_end_frags, xtensa_fix_close_loop_end_frags, relax_frag_immed, convert_frag_immed): Inline calls to get_frag_is_no_transform. (next_instrs_are_b_retw): Inline call to is_windowed_return_opcode. (xtensa_fix_short_loop_frags): Inline calls to is_the_loop_opcode and get_frag_is_no_transform. (convert_frag_immed_finish_loop): Inline calls to get_expression_value and set_frag_is_no_transform. (get_expression_value): Delete. (subseg_map struct): Rename cur_total_freq to total_freq. Rename cur_target_freq to target_freq. (get_subseg_info): Split out code to create a new map entry into ... (add_subseg_info): ... this new function. (get_last_insn_flags): Check if get_subseg_info succeeded. (set_last_insn_flags): Call add_subseg_info if needed. (get_subseg_total_freq, get_subseg_target_freq, set_subseg_freq): New. (xtensa_reorder_segments): Compute last_sec while counting sections. Remove call to get_last_sec. (get_last_sec): Delete. (cache_literal_section): Inline call to retrieve_literal_seg and its callees, seg_present and add_seg_list. (retrieve_literal_seg, seg_present, add_seg_list): Delete. (get_frag_is_insn, get_frag_is_no_transform, set_frag_is_specific_opcode, set_frag_is_no_transform): Delete. * config/tc-xtensa.h (MAX_SLOTS): Reduce from 31 to 15.
2004-10-122004-10-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-5/+83
* gdb.threads/schedlock.c: Add comment markers to use to find line numbers. * gdb.threads/schedlock.exp: Adjust regex to handle the new comments. * gdb.threads/watchthreads.exp: Use gdb_get_line_number to find breakpoint lines.
2004-10-12* sparc-nat.c: Include "inf-ptrace.h".Mark Kettenis12-15/+67
(sparc_target): New function. * sparc-nat.h: Update copyright year. (sparc_target): New prototype. * sparcnbsd-nat.c: Don't include "gdbcore.h", include "target.h". (_initialize_sparcnbsd_nat): Construct and add target vector. * sparc64nbsd-nat.c: Include "target.h". (_initialize_sparc64nbsd_nat): Construct and add target vector. * Makefile.in (sparc-nat.o, sparcnbsd-nat.o, sparc64nbsd-nat.o): Update dependencies. * config/sparc/nbsd64.mh (NATDEPFILES): Remove infptrace.o and inftarg.o, add inf-ptrace.o. * config/sparc/nbsdaout.mh (NATDEPFILES): Remove infptrace.o and inftarg.o, add inf-ptrace.o and bsd-kvm.o. (NAT_FILE): Set to nm-bsd.h. (LOADLIBES): New variable. * config/sparc/nbsdelf.mh (NATDEPFILES): Remove infptrace.o and infarg.o, add inf-ptrace.o. * config/sparc/nm-nbsdaout.h: Remove file. * config/sparc/fbsd.mh (NATDEPFILES): Add inf-ptrace.o. * config/sparc/linux.mh (NATDEPFILES): Add inf-ptrace.o. * config/sparc/linux64.mh (NATDEPFILES): Add inf-ptrace.o.
2004-10-122004-10-12 Andrew Cagney <cagney@gnu.org>Andrew Cagney2-76/+172
* gdbint.texinfo (Versions and Branches): New chapter. (Releasing GDB): Delete "Versions and Branches" section. (Top): Add "Versions and Branches".
2004-10-12bfd ChangeLogBob Wilson12-3803/+2335
* elf32-xtensa.c: Use ISO C90 formatting. gas ChangeLog * config/tc-xtensa.c: Use ISO C90 formatting. * config/tc-xtensa.h: Likewise. * config/xtensa-istack.h: Likewise. * config/xtensa-relax.c: Likewise. * config/xtensa-relax.h: Likewise. ld ChangeLog * emultempl/xtensaelf.em: Use ISO C90 formatting. opcodes ChangeLog * xtensa-dis.c: Use ISO C90 formatting.
2004-10-12 * gdb.dwarf2/dw2-basic.exp: Run on Hurd also.Daniel Jacobowitz2-0/+5
2004-10-12 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase errorPaul Brook2-1/+6
message.
2004-10-12 * configure.in: Add gdb.dwarf2.Daniel Jacobowitz9-6/+341
* configure: Regenerated. * Makefile.in: Add gdb.dwarf2. * gdb.dwarf2/Makefile.in, gdb.dwarf2/dw2-basic.S, gdb.dwarf2/dw2-basic.exp, gdb.dwarf2/main.c, gdb.dwarf2/file1.txt: New files.
2004-10-122004-10-12 Paul Brook <paul@codesourcery.com>Paul Brook9-6/+35
bfd/ * elf32-arm.h: Support EABI version 4 objects. binutils/ * readelf.c (decode_ARM_machine_flags): Support EABI version 4. gas/ * config/tc-arm.c (md_begin): Change EF_ARM_EABI_VER3 to EF_ARM_EABI_VER4. (arm_eabis): Ditto. * doc/c-arm.texi: Document that we actually support -meabi=4, not -meabi=3. include/ * elf/arm.h (EF_ARM_EABI_VER4): Define.