Commit Graph

56470 Commits

Author SHA1 Message Date
Ian Lance Taylor 9bb53bf8b8 Avoid some warnings which showed up in 64-bit mode. 2007-12-19 01:18:41 +00:00
Ian Lance Taylor c0873094f5 Use string length when available when calling Stringpool. Compare
pointers first when looking up Stringpool entries.
2007-12-19 00:29:28 +00:00
gdbadmin 2353d21439 *** empty log message *** 2007-12-19 00:00:33 +00:00
Alan Modra 868b494e1b daily update 2007-12-18 23:00:05 +00:00
Daniel Jacobowitz b65d95c576 * linux-low.c (linux_wait_for_event): Update messages. Do not
reinsert auto-delete breakpoints.
	* mem-break.c (struct breakpoint): Change return type of handler to
	int.
	(set_breakpoint_at): Update handler type.
	(reinsert_breakpoint_handler): Return 1 instead of calling
	delete_breakpoint.
	(reinsert_breakpoint_by_bp): Check for the original breakpoint before
	setting a new one.
	(check_breakpoints): Delete auto-delete breakpoints and return 2.
	* mem-break.h (set_breakpoint_at): Update handler type.
	* thread-db.c (thread_db_create_event, thread_db_create_event): Update.
	* win32-low.c (auto_delete_breakpoint): New.
	(get_child_debug_event): Use it.
2007-12-18 21:58:01 +00:00
Ian Lance Taylor 0205c1752c Don't write unattached after_input sections twice. 2007-12-18 21:45:28 +00:00
Jim Blandy ab209b3a0d Fix filename in ChangeLog entry. 2007-12-18 21:32:50 +00:00
Ian Lance Taylor 38c5e8b493 Print statistics about merge sections with --stats. 2007-12-18 21:24:10 +00:00
Daniel Jacobowitz cb2dde36a0 * section.c (BFD_FAKE_SECTION): Update.
* bfd-in2.h: Regenerate.
2007-12-18 19:48:07 +00:00
Daniel Jacobowitz f1a35370eb * bfd-in2.h: Regenerate. 2007-12-18 19:38:26 +00:00
Jim Blandy d8b2a6932a * doc/gdb.texinfo (Set Watchpoints): Integrate per-thread
watchpoint explanation into the main description of the watchpoint
command; update synopses of 'watch', 'rwatch', and 'awatch'
commands.
2007-12-18 18:11:09 +00:00
Daniel Jacobowitz 56e3f43cb6 * minsyms.c (lookup_minimal_symbol): Also check the separate
debug objfile.
	(lookup_minimal_symbol_text): Likewise.
	(lookup_minimal_symbol_solib_trampoline): Likewise.
	* symtab.c (lookup_global_symbol_from_objfile): Likewise.
2007-12-18 16:02:54 +00:00
Vladimir Prus 8b4ed4273f * mi/mi-main.c (mi_cmd_list_features): Announce
the 'pending-breakpoints' feature.
2007-12-18 11:06:12 +00:00
Richard Sandiford 57c53b2bff /tmp/foo.diff 2007-12-18 07:37:34 +00:00
Richard Sandiford fee14b6075 /tmp/foo.diff 2007-12-18 07:34:56 +00:00
Ian Lance Taylor 8383303e0a Add section_size_type and section_offset_type, use them to replace a
lot of instances of off_t.
2007-12-18 00:48:04 +00:00
gdbadmin 3d372cd7a1 *** empty log message *** 2007-12-18 00:00:03 +00:00
Alan Modra eda094f09b daily update 2007-12-17 23:00:05 +00:00
H.J. Lu 4746505869 2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (output_insn): Use ARRAY_SIZE.
	(lex_got): Likewise.
2007-12-17 19:41:57 +00:00
H.J. Lu 4a3523fa63 2007-12-17 H.J. Lu <hongjiu.lu@intel.com>
* 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 18:53:06 +00:00
Jim Blandy c6a0999f0f * dwarf2read.c (dwarf2_add_field): Correctly scale all byte
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 18:38:30 +00:00
Maciej W. Rozycki 9544c605b6 * utils.c (string_to_core_addr): If the executable format
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 17:49:29 +00:00
Maciej W. Rozycki aa707ed0e5 * symfile.c (init_filename_language_table): Recognise .sx as
an assembler file.
2007-12-17 17:20:15 +00:00
Carlos Eduardo Seo 5158f3e312 * gdb.base/expand-psymtabs.c: New testcase
source file.
	* gdb.base/expand-psymtabs.exp: New testcase
	expect file.
2007-12-17 14:56:33 +00:00
Joel Brobecker 62dfaa9c0d * language.h (enum exp_opcode): Comment out this declaration,
undoing the previous change.
2007-12-17 14:06:34 +00:00
Luis Machado 37e4754d76 * breakpoint.c: (watch_command_1): Parse additional optional
"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 12:32:23 +00:00
Luis Machado 28e78778f5 * breakpoint.c (bpstat_stop_status): Check an additional
condition before evaluating an expression value.
2007-12-17 11:34:45 +00:00
Joel Brobecker 551e5d04d1 * gdb.ada/frame_args/foo.adb: New file.
* 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 07:26:08 +00:00
Joel Brobecker a05ee09706 * gdb.base/frame-args.c: New file.
* gdb.base/frame-args.exp: New testcase.
2007-12-17 07:18:03 +00:00
Joel Brobecker b62f344344 * language.h (enum exp_opcode): Add forward declaration.
(language_string_char_type, language_lookup_primitive_type_by_name):
        Move declaration past declaration of language_defn.
2007-12-17 07:00:49 +00:00
Pedro Alves f164edfa5d * config.bfd: Add arm-*-mingw32ce* target. 2007-12-17 01:50:44 +00:00
gdbadmin 4c3bffcb0d *** empty log message *** 2007-12-17 00:00:03 +00:00
Alan Modra 86904c2b3a daily update 2007-12-16 23:00:06 +00:00
Daniel Jacobowitz 1d3811f649 * gdb.texinfo (Overview): Clarify run-length encoding
example.  Remove the restriction on "+" and "-" characters.
2007-12-16 22:57:06 +00:00
Joseph Myers c162e8c9a4 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
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 22:19:21 +00:00
Daniel Jacobowitz 4e79934594 * configure.ac: Check for pread and pwrite.
* 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 21:50:05 +00:00
Daniel Jacobowitz c244f7a6ff * f-typeprint.c (print_equivalent_f77_float_type): Remove function.
(f_type_print_base): Output the type names directly for real and
	complex types.
2007-12-16 21:27:26 +00:00
Vladimir Prus b5447a83ac * breakpoint.c (bpstat_have_active_hw_watchpoints):
Remove
	(bpstat_stop_status): Remove unused variable
	real_breakpoint.
	* breakpoint.h (bpstat_have_active_hw_watchpoints):
	Remove prototype.
2007-12-16 19:15:48 +00:00
Vladimir Prus c95310c6b8 * target.h (target_pid_or_tid_to_str): Remove.
* infrun.c (handle_inferior_event):
        Use target_pid_to_str instead of
	target_pid_or_tid_to_str.
	(normal_stop): Likewise.
2007-12-16 19:14:23 +00:00
Jan Kratochvil 09fa0d7cfd * dwarf2read.c (dwarf_attr_name): Rename `DW_AT_stride_size' to its
DWARF3 equivalent `DW_AT_bit_stride'.
	Rename `DW_AT_stride' to its DWARF3 equivalent `DW_AT_byte_stride'.
2007-12-16 16:06:29 +00:00
Joel Brobecker 41bbea1ac5 * mi/mi-main.c: Remove code that was commented out in 1999. 2007-12-16 13:37:26 +00:00
Joel Brobecker 7f7f83e8b1 * expression.h (parse_expression_in_context): Delete prototype.
* parse.c (parse_expression_in_context): Delete.
2007-12-16 13:31:46 +00:00
gdbadmin 606bc03a5d *** empty log message *** 2007-12-16 00:00:04 +00:00
Alan Modra 5972d0b676 daily update 2007-12-15 23:00:05 +00:00
Eli Zaretskii c1c25a1a66 * gdb.texinfo (Host I/O Packets): Fix xref syntax. 2007-12-15 13:13:12 +00:00
Richard Sandiford 53ccb77250 ld/
* 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-15 09:43:40 +00:00
Richard Sandiford fc802241f3 bfd/
* 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-15 09:42:02 +00:00
Richard Sandiford 6b2cc1401c bfd/
* 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-15 09:41:15 +00:00
Richard Sandiford 9f4b847e23 bfd/
* 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-15 09:35:58 +00:00
Richard Sandiford 9d0a14d3f3 bfd/
* 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-15 09:34:48 +00:00