Commit Graph

53163 Commits

Author SHA1 Message Date
Julian Brown c7b8f16e18 * bfd-in2.h: Regenerate.
* bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
	instruction scanning should be done.
	(bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
	(bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
	(bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
	prototype.
	* elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
	argument.
	* elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
	(VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
	(elf32_vfp11_erratum_type): New enum.
	(elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
	veneers.
	(_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
	(elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
	vfp11_fix and num_vfp11_fixes fields.
	(elf32_arm_link_hash_table_create): Initialise vfp11_fix,
	vfp11_erratum_glue_size, num_vfp11_fixes fields.
	(VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
	(bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
	glue section.
	(elf32_arm_section_map_add): Add an code/data mapping symbol entry
	to a section's map.
	(record_vfp11_erratum_veneer): Create a single veneer, and its
	associated symbols.
	(bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
	(bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
	BFDs.
	(bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
	required.
	(bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
	(bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
	(bfd_arm_vfp11_write_mask): Update write mask according to coded
	register number.
	(bfd_arm_vfp11_antidependency): New function.
	(bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
	(elf32_arm_compare_mapping): Declare.
	(bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
	BFD for potential erratum-triggering insns. Record results.
	(bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
	and branches to veneers have been placed in virtual memory after
	layout.
	(bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
	hash table.
	(elf32_arm_output_symbol_hook): Remove.
	(elf32_arm_write_section): Output veneers, and branches to veneers.
	Use maps from input sections, not output sections, for code
	byte-swapping.
	* elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
	* elf32-score.c (_bfd_score_elf_write_section): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
	* elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
2007-01-29 16:29:21 +00:00
Julian Brown c6dd86c695 * NEWS: Mention --vfp11-denorm-fix option.
* ld.texinfo: Document above.
	* emulparams/armelf_linux.sh (OTHER_TEXT_SECTIONS): Add
	.vfp11_veneer section.
	* emulparams/armelf.sh (OTHER_TEXT_SECTIONS): Likewise.
	* emultempl/armelf.em (vfp11_denorm_fix): New static variable.
	(arm_elf_before_allocation): Call bfd_elf32_arm_set_vfp11_fix,
	bfd_elf32_arm_init_maps and bfd_elf32_arm_vfp11_erratum_scan.
	(arm_elf_after_allocation): New function. Call
	bfd_elf32_arm_vfp11_fix_veneer_locations for all input statements.
	(arm_elf_create_output_section_statements): Pass vfp11 fix command
	line option to BFD.
	(OPTION_VFP11_DENORM_FIX): New option.
	(PARSE_AND_LIST_LONGOPTS): Handle new option.
	(PARSE_AND_LIST_OPTIONS): Likewise.
	(PARSE_AND_LIST_ARGS_CASES): Likewise.
	(LDEMUL_AFTER_ALLOCATION): Define.
2007-01-29 16:28:40 +00:00
Julian Brown b785d0e121 * ld-arm/arm-elf.exp: Add VFP11 tests.
* ld-arm/vfp11-fix-none.s: New file.
	* ld-arm/vfp11-fix-none.d: Expected disassembly of above.
	* ld-arm/vfp11-fix-scalar.s: New file.
	* ld-arm/vfp11-fix-scalar.d: Expected disassembly of above.
	* ld-arm/vfp11-fix-vector.s: New file.
	* ld-arm/vfp11-fix-vector.d: Expected disassembly of above.
2007-01-29 16:27:34 +00:00
Daniel Jacobowitz 704a4f78bb * gdb.base/commands.exp: Call if_commands_test.
(gdb_test_no_prompt, if_commands_test): New.
2007-01-29 16:22:36 +00:00
Daniel Jacobowitz 0f48aa010e * remote-utils.c [USE_WIN32API] (read, write): Define.
(putpkt_binary, input_interrupt, readchar, getpkt): Use read and
	write.
2007-01-29 13:22:09 +00:00
gdbadmin 69554603f0 *** empty log message *** 2007-01-29 00:00:32 +00:00
Alan Modra 7cef6a9f3d daily update 2007-01-28 23:00:09 +00:00
Mark Kettenis e741bf94ae * gdb.threads/sigthread.c (NSIGS): Make bigger. 2007-01-28 16:45:35 +00:00
H.J. Lu 4d456e3dc5 2076-01-28 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (swap_imm_operands): Renamed to ...
	(swap_2_operands): This.  Take 2 ints.
	(md_assemble): Updated.
	(swap_operands): Call swap_2_operands to swap 2 operands.
2007-01-28 16:14:33 +00:00
Mark Kettenis 1c3d648d5a * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero. 2007-01-28 14:42:12 +00:00
Mark Kettenis 4590cfcbee Wrap long line. 2007-01-28 14:23:13 +00:00
H.J. Lu b8210914ea Add INCLUDED_TARGET_FILE. 2007-01-28 02:16:07 +00:00
H.J. Lu 83d1651b68 2076-01-27 H.J. Lu <hongjiu.lu@intel.com>
* elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
2007-01-28 02:13:58 +00:00
Daniel Jacobowitz 607269ae71 * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
(struct dwarf2_loclist_baton): Likewise.
2007-01-28 01:38:40 +00:00
gdbadmin aab432b0ca *** empty log message *** 2007-01-28 00:00:03 +00:00
Alan Modra 22f206a48f daily update 2007-01-27 23:00:08 +00:00
Dave Anglin 914dfb0fe5 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
(INCLUDED_TARGET_FILE): Remove.
2007-01-27 22:43:49 +00:00
Eli Zaretskii 40c03ae8b3 * cli/cli-script.c: Include breakpoint.h.
(build_command_line): Require arguments only for if and while commands.
	(get_command_line, execute_user_command, execute_control_command):
	Fix wording of warning messages.
	(print_command_lines): Print breakpoint commands.
	(execute_control_command): Call commands_from_control_command to
	handle the `commands' command inside a body of a flow-control command.
	(read_next_line): Recognize the `commands' command and build a
	command line structure for it.
	(recurse_read_control_structure, read_command_lines): Handle
	`commands' similarly to `if' and `while'.

	* breakpoint.c (get_number_trailer): Document the special meaning
	of NULL as the first argument PP.
	(commands_from_control_command): New function.

	* breakpoint.h (commands_from_control_command): Add prototype.

	* defs.h (commands_control): New enumerated value for enum
	command_control_type.
2007-01-27 12:30:46 +00:00
Andreas Schwab 474d0ad39b * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead of
.short/.int/.quad in the dwarf sections.
	* gdb.dwarf2/dw2-intercu.S: Likewise.
	* gdb.dwarf2/dw2-intermix.S: Likewise.
2007-01-27 11:09:35 +00:00
gdbadmin a0cd56b3ba *** empty log message *** 2007-01-27 00:00:03 +00:00
Alan Modra b500500492 daily update 2007-01-26 23:00:11 +00:00
Joel Brobecker 4b9eee8cc6 * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
(ada_exception_sal): Update accordingly.
2007-01-26 21:31:06 +00:00
Jan Kratochvil e1f48eadc1 * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
* NEWS: Describe CHAR array vs. string identifcation rules.
2007-01-26 20:54:16 +00:00
Jan Kratochvil 3a60f64edd * gdb.texinfo: Describe CHAR array vs. string identifcation rules. 2007-01-26 20:53:52 +00:00
Jan Kratochvil e784b426e6 * gdb.base/charsign.exp, gdb.base/charsign.c: New files.
* gdb.arch/i386-sse.exp: Check $xmm.v16_int8 printing as a number array.
	* gdb.base/printcmds.exp: Sign-provided CHARs now became arrays.
	* gdb.base/setvar.exp: Likewise.
2007-01-26 20:53:15 +00:00
Andreas Schwab 9a01813aed * gdb.base/corefile.exp: Allow non-empty argument list in reinit
test.
2007-01-26 14:55:27 +00:00
Andreas Schwab 37f08e0480 * gdb.base/multi-forks.exp ("restart $i"): Also match
__kernel_syscall_via_break.
2007-01-26 14:53:10 +00:00
Eli Zaretskii c582f8b627 *** empty log message *** 2007-01-26 08:57:09 +00:00
Eli Zaretskii e22ea45271 * gdb.texinfo (Compilation, Files, Bootstrapping, Bug Reporting):
Use @value{NGCC} instead of @value{GCC}.
2007-01-26 08:54:01 +00:00
DJ Delorie 78eba9b618 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
R_M32C_16 or R_M32C_24 relocs.
2007-01-26 00:00:47 +00:00
gdbadmin 7cc7335ab6 *** empty log message *** 2007-01-26 00:00:34 +00:00
Alan Modra df8e76642c daily update 2007-01-25 23:00:08 +00:00
Paul Brook e150acc778 2007-01-25 Paul Brook <paul@codesourcery.com>
gdb/
	* arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
2007-01-25 20:17:26 +00:00
Kazu Hirata 84f1d8266b * ar.c (print_contents, extract_file): Cast the return value
of fwrite to size_t.
2007-01-25 15:40:22 +00:00
Nick Clifton 64ee10b619 PR binutils/3874
* elf32-avr.c (avr_link_hash_table): Check to make sure that the hash table was created by elf32_avr_link_hash_table_create before using it.
  (elf32_avr_link_hash_newfunc): New function.  Just pass the call through to _bfd_elf_link_hash_newfunc.
  (elf32_avr_link_hash_table_create): Use elf32_avr_link_hash_newfunc instead of _bfd_elf_link_hash_newfunc.
  (elf32_avr_relocate_section): Check for the hash table pointer being NULL.
  (elf32_avr_relax_section, avr_build_one_stub, elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs, elf32_avr_build_stubs): Likewise.
2007-01-25 09:32:41 +00:00
H.J. Lu 5f40043739 Add a space between date and name. 2007-01-25 03:41:17 +00:00
gdbadmin c88fa7e550 *** empty log message *** 2007-01-25 00:00:02 +00:00
Alan Modra edb5109b1f daily update 2007-01-24 23:00:07 +00:00
Jim Blandy 10fb19b6ab 2007-01-24 Jim Blandy <jimb@codesourcery.com>
* dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
	expression is empty, bother to return the 'optimized out' value we
	construct.  (Thanks to Carl Burch.)
2007-01-24 22:04:48 +00:00
DJ Delorie 7bc4c13c61 * config/tc-m32c.c (md_pseudo_table): Add .3byte. 2007-01-24 21:53:09 +00:00
Vladimir Prus 85d93f1df0 * varobj.c (c_value_of_root, c_value_of_child)
(cplus_describe_child): Don't call release_value.
2007-01-24 19:54:13 +00:00
H.J. Lu ed9ef26324 2007-01-24 H.J. Lu <hongjiu.lu@intel.com>
* ldgram.y (SIZEOF_HEADERS): Remove duplicated one.
	(DEFSYMEND): Likewise.
	(NAME): Likewise.
	(LNAME): Likewise.
2007-01-24 16:08:53 +00:00
Thiemo Seufer fcbd8a5cb7 * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
initialization.
2007-01-24 13:37:07 +00:00
Vladimir Prus 2024f65ab8 Refactor getting children name, value and type access
for varobjs in C++.
        * varobj.c (get_type_deref): Remove.
        (adjust_value_for_child_access): New.
        (c_number_of_children): Use the above.
        (c_describe_child): Likewise.
        (enum accessibility): New.
        (match_accessibility): New function.
        (cplus_describe_child): New function.
        (cplus_name_of_child, cplus_value_of_child)
        (cplus_type_of_child): Reimplement in terms
        of cplus_describe_child.
        (cplus_number_of_children): Use
        adjust_value_for_child_access.
2007-01-24 11:08:47 +00:00
Vladimir Prus 6e2a9270a0 Fix computation of the 'editable' attribute and
value changeability for for references.
        * varobj.c (get_value_type): New function.
        (c_variable_editable): Use get_value_type.
        (varobj_value_is_changeable): Likewise.
2007-01-24 10:49:31 +00:00
Joel Brobecker 56163ce1d3 * source.c (find_and_open_source): Try rewriting the source
path inside filename if dirname is NULL.
2007-01-24 00:03:15 +00:00
gdbadmin 3ba257ccb2 *** empty log message *** 2007-01-24 00:00:34 +00:00
Joel Brobecker 8c6860bbe0 * dwarf2read.c (add_partial_symbol): Create an extra partial
symbol in the VAR_DOMAIN for Ada structures, unions or enums.
        (new_symbol): Likewise for symbols.
2007-01-23 23:57:47 +00:00
Alan Modra 0de5dc4b38 daily update 2007-01-23 23:00:06 +00:00
Nick Roberts e23110bbe4 (mi_cmd_execute): Call free_all_values. 2007-01-23 20:27:58 +00:00