aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2007-12-18/tmp/foo.diffRichard Sandiford5-20/+30
2007-12-18/tmp/foo.diffRichard Sandiford1-0/+6
2007-12-18Add section_size_type and section_offset_type, use them to replace aIan Lance Taylor22-224/+287
lot of instances of off_t.
2007-12-18*** empty log message ***gdbadmin1-1/+1
2007-12-17daily updateAlan Modra1-1/+1
2007-12-172007-12-17 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-8/+10
* config/tc-i386.c (output_insn): Use ARRAY_SIZE. (lex_got): Likewise.
2007-12-172007-12-17 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-53/+16
* config/tc-i386.c (output_insn): Use FRAG_APPEND_1_CHAR instead of frag_more/md_number_to_chars. (md_short_jump_size): Removed. (md_long_jump_size): Likewise. (md_create_short_jump): Likewise. (md_create_long_jump): Likewise.
2007-12-17* dwarf2read.c (dwarf2_add_field): Correctly scale all byteJim Blandy2-7/+23
offsets obtained from DW_AT_data_member_location before recording them in FIELD_BITPOS (*fp). * dwarf2read.c (attr_form_is_section_offset): Doc fixes.
2007-12-17* utils.c (string_to_core_addr): If the executable formatMaciej W. Rozycki3-1/+24
indicates that addresses should be sign-extended and there are only 8 hex digits in the address, then do so. * Makefile.in (utils.o): Depend on $(gdbcore_h).
2007-12-17* symfile.c (init_filename_language_table): Recognise .sx asMaciej W. Rozycki2-0/+6
an assembler file.
2007-12-17 * gdb.base/expand-psymtabs.c: New testcaseCarlos Eduardo Seo3-0/+102
source file. * gdb.base/expand-psymtabs.exp: New testcase expect file.
2007-12-17 * language.h (enum exp_opcode): Comment out this declaration,Joel Brobecker2-1/+7
undoing the previous change.
2007-12-17 * breakpoint.c: (watch_command_1): Parse additional optionalLuis Machado7-3/+215
"thread" parameter to the watchpoint command and set the "thread" member of the breakpoint struct. * doc/gdb.texinfo: Add new parameter's description. * testsuite/gdb.base/watch_thread_num.c: New testcase source file. * testsuite/gdb.base/watch_thread_num.exp: New testcase expect file.
2007-12-17 * breakpoint.c (bpstat_stop_status): Check an additionalLuis Machado2-1/+6
condition before evaluating an expression value.
2007-12-17 * gdb.ada/frame_args/foo.adb: New file.Joel Brobecker5-0/+160
* gdb.ada/frame_args/pck.ads: New file. * gdb.ada/frame_args/pck.adb: New file. * gdb.ada/frame_args.exp: New testcase.
2007-12-17 * gdb.base/frame-args.c: New file.Joel Brobecker3-0/+126
* gdb.base/frame-args.exp: New testcase.
2007-12-17 * language.h (enum exp_opcode): Add forward declaration.Joel Brobecker2-9/+15
(language_string_char_type, language_lookup_primitive_type_by_name): Move declaration past declaration of language_defn.
2007-12-17 * config.bfd: Add arm-*-mingw32ce* target.Pedro Alves2-1/+5
2007-12-17*** empty log message ***gdbadmin1-1/+1
2007-12-16daily updateAlan Modra1-1/+1
2007-12-16 * gdb.texinfo (Overview): Clarify run-length encodingDaniel Jacobowitz2-14/+23
example. Remove the restriction on "+" and "-" characters.
2007-12-162007-12-16 Daniel Jacobowitz <dan@codesourcery.com>Joseph Myers7-6/+184
Joseph Myers <joseph@codesourcery.com> * configure.ac: Check for *-*-solaris2.1[[0-9]]* instead of *-*-solaris2.1[[0-9]]. * configure: Regenerate. * procfs.c (proc_set_current_signal): If redelivering a signal, reuse the current siginfo if possible. testsuite: * gdb.base/siginfo-addr.exp, gdb.base/siginfo-addr.c: New.
2007-12-16 * configure.ac: Check for pread and pwrite.Daniel Jacobowitz5-2/+29
* hostio.c (handle_pread): Fall back to lseek and read. (handle_pwrite): Fall back to lseek and write. * config.in, configure: Regenerated.
2007-12-16 * f-typeprint.c (print_equivalent_f77_float_type): Remove function.Daniel Jacobowitz2-26/+7
(f_type_print_base): Output the type names directly for real and complex types.
2007-12-16 * breakpoint.c (bpstat_have_active_hw_watchpoints):Vladimir Prus3-19/+9
Remove (bpstat_stop_status): Remove unused variable real_breakpoint. * breakpoint.h (bpstat_have_active_hw_watchpoints): Remove prototype.
2007-12-16 * target.h (target_pid_or_tid_to_str): Remove.Vladimir Prus3-7/+10
* infrun.c (handle_inferior_event): Use target_pid_to_str instead of target_pid_or_tid_to_str. (normal_stop): Likewise.
2007-12-16 * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to itsJan Kratochvil2-4/+10
DWARF3 equivalent `DW_AT_bit_stride'. Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
2007-12-16 * mi/mi-main.c: Remove code that was commented out in 1999.Joel Brobecker2-30/+4
2007-12-16 * expression.h (parse_expression_in_context): Delete prototype.Joel Brobecker3-16/+5
* parse.c (parse_expression_in_context): Delete.
2007-12-16*** empty log message ***gdbadmin1-1/+1
2007-12-15daily updateAlan Modra1-1/+1
2007-12-15 * gdb.texinfo (Host I/O Packets): Fix xref syntax.Eli Zaretskii2-2/+6
2007-12-15ld/Richard Sandiford5-8/+8
* scripttempl/armbpabi.sc (.text): Don't KEEP (*(.text.*personality*)). (.data): Don't KEEP (*(.gnu.linkonce.d.*personality*)). * scripttempl/elf.sc: As for armbpabi.sc. * scripttempl/elfxtensa.sc: Likewise. * scripttempl/mep.sc: Likewise.
2007-12-15bfd/Richard Sandiford3-61/+55
* elf-bfd.h (eh_cie_fde): Replace u.cie.merged with a union of a merged field and a sec field. (eh_frame_hdr_info): Remove offsets_adjusted. * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update accesses to the CIE merged field. (_bfd_elf_gc_mark_fdes): Likewise. (_bfd_elf_discard_section_eh_frame): Likewise. Set u.cie.u.sec when clearing the removed flag. (_bfd_elf_eh_frame_section_offset): Remove offsets_adjusted handling. (_bfd_elf_write_section_eh_frame): Likewise. Apply output_offsets where appropriate.
2007-12-15bfd/Richard Sandiford3-34/+66
* elf-bfd.h (eh_cie_fde): Move add_fde_encoding and per_encoding_relative to u.cie. Add commentary. * elf-eh-frame.c (cie): Remove make_relative. (extra_augmentation_string_bytes): Update use of add_fde_encoding. (extra_augmentation_data_bytes): Likewise. Use an FDE's own add_augmentation_size field, rather than referring to the CIE. (_bfd_elf_parse_eh_frame): Don't set the struct cie make_relative field; set the eh_cie_fde field directly. Update setting of add_fde_encoding and per_encoding_relative. Copy make_relative and add_augmentation_size from the CIE to the FDE. (_bfd_elf_discard_section_eh_frame): Use the FDE's own make_relative field. (_bfd_elf_eh_frame_section_offset): Likewise. (_bfd_elf_write_section_eh_frame): Update accesses to add_fde_encoding and per_encoding_relative. Use the FDE's own make_relative and add_augmentation_size fields.
2007-12-15bfd/Richard Sandiford3-18/+36
* elf-bfd.h (eh_cie_fde): Remove need_lsda_relative. Move make_lsda_relative to u.cie. * elf-eh-frame.c (cie): Rename make_lsda_relative to can_make_lsda_relative. (_bfd_elf_parse_eh_frame): Don't set the old eh_cie_fde make_lsda_relative field. Update after cie renaming. Set u.cie.make_lsda_relative if can_make_lsda_relative and if we find a relocation against the LSDA. (_bfd_elf_discard_section_eh_frame): Copy make_lsda_relative when changing a CIE's group representative. (_bfd_elf_eh_frame_section_offset): Don't set need_ldsa_relative here. (_bfd_elf_write_section_eh_frame): Check u.cie.make_lsda_relative rather than need_lsda_relative.
2007-12-15bfd/Richard Sandiford6-79/+145
* elf-bfd.h (eh_cie_fde): Add u.fde.next_for_section and u.cie.gc_mark. (bfd_elf_section_data): Add fde_list. (elf_fde_list): New macro. (elf_obj_tdata): Add eh_frame_section. (elf_eh_frame_section): New macro. (_bfd_elf_gc_mark_reloc): Remove last parameter. (_bfd_elf_gc_mark_fdes): Declare. * elf-eh-frame.c (_bfd_elf_get_eh_frame_sec_info): Chain the FDEs for each input section. (mark_entry, _bfd_elf_gc_mark_fdes): New functions. * elflink.c (_bfd_elf_gc_mark_reloc): Remove is_eh parameter. (_bfd_elf_gc_mark): Update call accordingly. Mark the relocations againts the section's FDEs. Don't mark the bfd's elf_eh_frame_section. (bfd_elf_gc_sections): Parse each input bfd's .eh_frame before marking any input sections. Remove the current EH handling. * section.c (bfd_section): Remove gc_mark_from_eh. * ecoff.c (bfd_debug_section): Update initializer accordingly.
2007-12-15bfd/Richard Sandiford4-157/+274
* elf-bfd.h (eh_cie_fde): Add u.cie. Document how u.fde.cie_inf changes when removed == 0. (eh_frame_hdr_info): Add parsed_eh_frames. (_bfd_elf_begin_eh_frame_parsing): Declare. (_bfd_elf_parse_eh_frame): Declare. (_bfd_elf_end_eh_frame_parsing): Declare. * elf-eh-frame.c (_bfd_elf_begin_eh_frame_parsing): New function. (_bfd_elf_parse_eh_frame): New function, split out from _bfd_elf_discard_section_eh_frame. Make a first pass through the buffer to calculate the number of entries and CIEs. Allocate memory for them before the main loop. Replace current extended cie representation with a pair of pointers, one to the local eh_cie_fde and one to the full struct cie. Allocate a separate array of struct cies if not merging. Merge CIEs during the main loop and set up each u.cie.merged field. Point an FDE's cie_inf field directly at the local CIE. Initially assume that all entries should be removed. (_bfd_elf_end_eh_frame_parsing): New function. (_bfd_elf_discard_section_eh_frame): Assume that the section has already been parsed. Use a separate pass to mark entries that need to be kept. Use the u.cie.merged field to track a CIE's group representative. * elflink.c (bfd_elf_discard_info): Call _bfd_elf_parse_eh_frame before _bfd_elf_discard_section_eh_frame. Wrap loop with calls to _bfd_elf_begin_eh_frame_parsing and _bfd_elf_end_eh_frame_parsing.
2007-12-15bfd/Richard Sandiford3-20/+38
* elf-bfd.h (eh_cie_fde): Put cie_inf in a union. Add a reloc_index field. Use bitfields for fde_encoding, lsda_encoding and lsda_offset. * elf-eh-frame.c (extra_augmentation_data_bytes): Adjust cie_inf accesses after the above change. (_bfd_elf_eh_frame_section_offset): Likewise. (_bfd_elf_write_section_eh_frame): Likewise. (_bfd_elf_discard_section_eh_frame): Likewise. Set up reloc_index.
2007-12-15bfd/Richard Sandiford3-171/+240
* elf-bfd.h (_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): Declare. (_bfd_elf_gc_mark): Use elf_gc_mark_hook_fn. * elflink.c (init_reloc_cookie, fini_reloc_cookie) (init_reloc_cookie_rels, fini_reloc_cookie_rels): New functions, split out from... (bfd_elf_discard_info): ...here. (init_reloc_cookie_for_section): New function. (fini_reloc_cookie_for_section): Likewise. (_bfd_elf_gc_mark_rsec, _bfd_elf_gc_mark_reloc): New functions, split out from... (_bfd_elf_gc_mark): ...here. Use init_reloc_cookie_for_section and fini_reloc_cookie_for_section.
2007-12-15Minor speedup to Output_merge_string::do_add_input_section.Ian Lance Taylor1-8/+7
2007-12-15*** empty log message ***gdbadmin1-1/+1
2007-12-14daily updateAlan Modra1-1/+1
2007-12-14 * ld-scripts/rgn-over.exp: Add --no-overlays for spu.Alan Modra2-0/+10
2007-12-14Rewrite workqueue. This version eliminates the master thread, andIan Lance Taylor33-1400/+1458
reduces the amount of locking required to find a new thread to run.
2007-12-14Add const to Object::read and Object::sized_target.Ian Lance Taylor3-15/+21
2007-12-14Make some File_read methods const.Ian Lance Taylor2-9/+7
2007-12-14 Add support for pending breakpoints in MI.Vladimir Prus10-17/+185
* gdb.h (gdb_breakpoint): Add parameter pending. * breakpoint.c (gdb_breakpoint): Add parameter pending. * mi/mi-cmd-break.c (mi_break_insert): Change comment to refer to manual. Add support for the -f flag, for pending breakpoint.
2007-12-14 * breakpoint.c (break_command_really): New, copiedVladimir Prus2-121/+71
from break_command_1. New parameters COND_STRING, THREAD PARSE_CONDITITION_AND_THREAD and PENDING_BREAK_SUPPORT. The previous FLAG parameter split into TEMPFLAG and HARDWAREFLAG. When PARSE_CONDITION_AND_THREAD is not set, duplicate the passed condition string. (struct captured_breakpoint_args): Remove (do_captured_breakpoint): Remove. (break_command_1): Relay to break_command_really. (gdb_breakpoint): Relay to break_command_really.
2007-12-14Add some missing dependencies for the new linker.Ian Lance Taylor2-9/+17