deliverable/binutils-gdb.git
12 years agodaily update
Alan Modra [Wed, 10 Aug 2011 00:00:04 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 10 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 9 Aug 2011 17:45:19 +0000 (17:45 +0000)] 
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/testsuite/
* lib/mi-support.exp (detect_async): Rename to...
(mi_detect_async): ... this.
* gdb.mi/mi-nonstop-exit.exp: Adjust.
* gdb.mi/mi-nonstop.exp: Adjust.
* gdb.mi/mi-ns-stale-regcache.exp: Adjust.
* gdb.mi/mi-nsintrall.exp: Adjust.
* gdb.mi/mi-nsmoribund.exp: Adjust.
* gdb.mi/mi-nsthrexec.exp: Adjust.

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 9 Aug 2011 16:21:18 +0000 (16:21 +0000)] 
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/
* printcmd.c (current_display_number): Update comment.
(disable_current_display_cleanup): Delete.
(do_one_display): Use make_cleanup_restore_integer.  Gracefully
catch errors thrown while evaluating and printing the display.

gdb/testsuite/
* gdb.base/display.c (do_loops): New `p_i' local.
* gdb.base/display.exp: Test displaying a variable that is
temporarily at a bad address.

12 years ago * config/tc-mips.c (mips_cpu_info_table): Add "m14k" and
Maciej W. Rozycki [Tue, 9 Aug 2011 15:25:32 +0000 (15:25 +0000)] 
* config/tc-mips.c (mips_cpu_info_table): Add "m14k" and
"m14kc".
* doc/c-mips.texi (MIPS architecture options): Add "m14k" and
"m14kc" to the list of -march options.

12 years ago gas/
Maciej W. Rozycki [Tue, 9 Aug 2011 15:20:03 +0000 (15:20 +0000)] 
gas/
* config/tc-mips.c (mips_set_options): Add ase_mcu.
(mips_opts): Initialise ase_mcu to -1.
(ISA_SUPPORTS_MCU_ASE): New macro.
(MIPS_CPU_ASE_MCU): Likewise.
(is_opcode_valid): Handle MCU.
(macro_build, macro): Likewise.
(validate_mips_insn, validate_micromips_insn): Likewise.
(mips_ip): Likewise.
(options): Add OPTION_MCU and OPTION_NO_MCU.
(md_longopts): Add mmcu and mno-mcu.
(md_parse_option): Handle OPTION_MCU and OPTION_NO_MCU.
(mips_after_parse_args): Handle MCU.
(s_mipsset): Likewise.
(md_show_usage): Handle MCU options.

* doc/as.texinfo: Document -mmcu and -mno-mcu options.
* doc/c-mips.texi: Likewise, and document ".set mcu" and
".set nomcu" directives.

gas/testsuite/
* gas/mips/micromips@mcu.d: New test.
* gas/mips/mcu.d: Likewise.
* gas/mips/mcu.s: New test source.
* gas/mips/mips.exp: Run the new tests.

include/opcode/
* mips.h (OP_MASK_3BITPOS, OP_SH_3BITPOS): New macros.
(OP_MASK_OFFSET12, OP_SH_OFFSET12): Redefine.
(INSN_ASE_MASK): Add the MCU bit.
(INSN_MCU): New macro.
(M_ACLR_AB, M_ACLR_OB, M_ASET_AB, M_ASET_OB): New enum values.
(MICROMIPSOP_MASK_3BITPOS, MICROMIPSOP_SH_3BITPOS): New macros.

opcodes/
* mips-dis.c (mips_arch_choices): Enable MCU for "mips32r2"
and "mips64r2".
(print_insn_args, print_insn_micromips): Handle MCU.
* micromips-opc.c (MC): New macro.
(micromips_opcodes): Add "aclr", "aset" and "iret".
* mips-opc.c (MC): New macro.
(mips_builtin_opcodes): Add "aclr", "aset" and "iret".

12 years ago include/opcode/
Maciej W. Rozycki [Tue, 9 Aug 2011 14:25:29 +0000 (14:25 +0000)] 
include/opcode/
* mips.h (INSN_WRITE_GPR_S, INSN2_WRITE_GPR_MB): New macros.
(INSN2_READ_GPR_MC, INSN2_READ_GPR_ME): Likewise.
(INSN2_WRITE_GPR_MF, INSN2_READ_GPR_MG): Likewise.
(INSN2_READ_GPR_MJ, INSN2_WRITE_GPR_MJ): Likewise.
(INSN2_READ_GPR_MP, INSN2_WRITE_GPR_MP): Likewise.
(INSN2_READ_GPR_MQ, INSN2_WRITE_GPR_MHI): Likewise.
(INSN2_READ_GPR_MMN): Likewise.
(INSN2_READ_FPR_D): Change the bit used.
(INSN2_MOD_GPR_MD, INSN2_MOD_GPR_MF): Likewise.
(INSN2_MOD_SP, INSN2_READ_GPR_31, INSN2_READ_GP): Likewise.
(INSN2_READ_PC, INSN2_UNCOND_BRANCH): Likewise.
(INSN2_COND_BRANCH): Likewise.
(INSN2_WRITE_GPR_S, INSN2_MOD_GPR_MB): Remove macros.
(INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG): Likewise.
(INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MP, INSN2_MOD_GPR_MQ): Likewise.
(INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MM): Likewise.
(INSN2_MOD_GPR_MN): Likewise.

gas/
* config/tc-mips.c (gpr_mod_mask): Remove INSN2_MOD_GPR_MB,
INSN2_MOD_GPR_MC, INSN2_MOD_GPR_ME, INSN2_MOD_GPR_MG,
INSN2_MOD_GPR_MHI, INSN2_MOD_GPR_MJ, INSN2_MOD_GPR_MM,
INSN2_MOD_GPR_MN, INSN2_MOD_GPR_MP and INSN2_MOD_GPR_MQ opcode
register use checks.
(gpr_read_mask): Add INSN2_READ_GPR_MC, INSN2_READ_GPR_ME
INSN2_READ_GPR_MG, INSN2_READ_GPR_MJ, INSN2_READ_GPR_MMN,
INSN2_READ_GPR_MP and INSN2_READ_GPR_MQ opcode register use
checks.
(gpr_write_mask): Replace INSN2_WRITE_GPR_S opcode register
use flag with INSN_WRITE_GPR_S.  Add INSN2_WRITE_GPR_MB,
INSN2_WRITE_GPR_MHI, INSN2_WRITE_GPR_MJ and INSN2_WRITE_GPR_MP
opcode register use checks.
(can_swap_branch_p): Enable microMIPS branch swapping.
(append_insn): Likewise.

gas/testsuite/
* gas/mips/micromips.d: Update according to changes to enable
microMIPS branch swapping.
* gas/mips/micromips-trap.d: Likewise.
* gas/mips/micromips@jal-svr4pic.d: Likewise.
* gas/mips/micromips@loc-swap.d: Likewise.
* gas/mips/micromips@loc-swap-dis.d: Likewise.

opcodes/
* micromips-opc.c (MOD_mb, MOD_mc, MOD_md): Remove macros.
(MOD_me, MOD_mf, MOD_mg, MOD_mhi, MOD_mj, MOD_ml): Likewise.
(MOD_mm, MOD_mn, MOD_mp, MOD_mq, MOD_sp): Likewise.
(WR_mb, RD_mc, RD_md, WR_md, RD_me, RD_mf, WR_mf): New macros.
(RD_mg, WR_mhi, RD_mj, WR_mj, RD_ml, RD_mmn): Likewise.
(RD_mp, WR_mp, RD_mq, RD_sp, WR_sp): Likewise.
(WR_s): Update macro.
(micromips_opcodes): Update register use flags of: "addiu",
"addiupc", "addiur1sp", "addiur2", "addius5", "addiusp", "addu",
"and", "andi", "beq", "beqz", "bne", "bnez", "di", "ei", "j",
"jalr", "jalrs", "jr", "jraddiusp", "jrc", "lbu", "lhu", "li",
"lui", "lw", "lwm", "mfhi", "mflo", "move", "movep", "not",
"nor", "or", "ori", "sb", "sh", "sll", "srl", "subu", "sw",
"swm" and "xor" instructions.

12 years ago * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
Tom Tromey [Tue, 9 Aug 2011 14:09:09 +0000 (14:09 +0000)] 
* mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.

12 years ago * config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Remove forced 16-bit
Maciej W. Rozycki [Tue, 9 Aug 2011 13:39:39 +0000 (13:39 +0000)] 
* config/tc-mips.c (RELAX_MICROMIPS_ENCODE): Remove forced 16-bit
branch size information.
(RELAX_MICROMIPS_U16BIT): Remove macro.
(RELAX_MICROMIPS_UNCOND): Adjust accordingly.
(RELAX_MICROMIPS_COMPACT, RELAX_MICROMIPS_LINK): Likewise.
(RELAX_MICROMIPS_RELAX32): Likewise.
(RELAX_MICROMIPS_TOOFAR16): Likewise.
(RELAX_MICROMIPS_MARK_TOOFAR16): Likewise.
(RELAX_MICROMIPS_CLEAR_TOOFAR16): Likewise.
(RELAX_MICROMIPS_TOOFAR32): Likewise.
(RELAX_MICROMIPS_MARK_TOOFAR32): Likewise.
(RELAX_MICROMIPS_CLEAR_TOOFAR32): Likewise.
(append_insn): Always check forced_insn_length for microMIPS
relaxation.  Adjust code for the removal of
RELAX_MICROMIPS_U16BIT.
(mips_ip) <'D', 'E'>: If forced_insn_length, then emit the
relocation straight away.
(relaxed_micromips_16bit_branch_length): Adjust code for the
removal of RELAX_MICROMIPS_U16BIT.

12 years ago * bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
Matthew Gretton-Dann [Tue, 9 Aug 2011 13:10:44 +0000 (13:10 +0000)] 
* bfd/bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
* bfd/bfd-in2.h (bfd_elf32_arm_set_target_relocs): Likewise.
* bfd/elf32-arm.c (elf32_arm_link_hash_table): New field.
(elf232_arm_link_hash_table_create): Initialise new field.
(check_use_blx): Change test depending on fix_arm1176.
(bfd_elf32_arm_set_target_relocs): Set fix_arm1176 from
command line options.
* ld/emultempl/armelf.em (fix_arm1176): New variable.
(arm_elf_create_output_section_statements): Pass
fix_arm1176 option to bfd backend.
(OPTION_FIX_ARM1176): New define.
(OPTION_NO_FIX_ARM1176): Likewise.
(PARSE_AND_LIST_LONGOPTS): Add new command line options.
(PARSE_AND_LIST_OPTIONS): Likewise.
(PARSE_AND_LIST_ARGS_CASES): Likewise.
* ld/ld.texinfo: Document new command line options.
* ld/testsuite/ld-arm/arm-elf.exp (armelftests): Update for new command-line
options.
(armeabitests): Update for new command-line options, and add
new test cases.
* ld/testsuite/ld-arm/fix-arm1176.s: Add test case.
* ld/testsuite/ld-arm/fix-arm1176-off.d: Likewise.
* ld/testsuite/ld-arm/fix-arm1176-on.d: Likewise.

12 years agoFix "ditto" dependency order.
Pedro Alves [Tue, 9 Aug 2011 12:55:29 +0000 (12:55 +0000)] 
Fix "ditto" dependency order.

12 years ago2011-08-09 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Tue, 9 Aug 2011 12:51:47 +0000 (12:51 +0000)] 
2011-08-09  Pedro Alves  <pedro@codesourcery.com>

gdb/
* elfread.c (elf_symtab_read): Ditto.
* maint.c (maintenance_command): Ditto.
* somread.c (som_symtab_read): Ditto.
* solib.c (solib_find, solib_map_sections, update_solib_list)
(solib_add, info_sharedlibrary_command, solib_name_from_address)
(solib_create_inferior_hook, in_solib_dynsym_resolve_code)
(sharedlibrary_command, no_shared_libraries): Rework comments.
* solib-irix.c (locate_base, disable_break, enable_break)
(irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
(irix_current_sos, irix_open_symbol_file_object)
(irix_special_symbol_handling): Ditto.
* solib-sunos.c (locate_base, first_link_map_member)
(sunos_current_sos, disable_break, enable_break)
(sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
Ditto.
* solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
(open_symbol_file_object, svr4_current_sos, enable_break)
(svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
Ditto.
* solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
(frv_current_sos, enable_break, frv_special_symbol_handling)
(frv_solib_create_inferior_hook): Ditto.
* solist.h (struct target_so_ops): Extend the comments of the
special_symbol_handling, current_sos and open_symbol_file_object
methods.

12 years ago2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Tue, 9 Aug 2011 12:45:40 +0000 (12:45 +0000)] 
2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>

* python/lib/gdb/__init__.py: Auto-load files in command and
function directories.
* python/python.c (finish_python_initialization): Use
os.path.join.
* python/lib/gdb/command/pretty_printers.py: Self register
command.
* NEWS: Document auto-loading.

2011-08-09  Phil Muldoon  <pmuldoon@redhat.com>

* gdb.texinfo (Python): Document command and function
auto-loading.

12 years ago PR ld/13066
Alan Modra [Tue, 9 Aug 2011 09:27:34 +0000 (09:27 +0000)] 
PR ld/13066
PR ld/12762
* plugin.c (add_symbols): Revert 2011-08-05.

12 years ago*** empty log message ***
gdbadmin [Tue, 9 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agogdb/
Jan Kratochvil [Mon, 8 Aug 2011 21:41:14 +0000 (21:41 +0000)] 
gdb/
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
(dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
objfile_gdbarch.  Fix BFD_ENDIAN_BIG case.

gdb/testsuite/
* gdb.dwarf2/dw2-op-stack-value.S: New file.
* gdb.dwarf2/dw2-op-stack-value.exp: New file.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 8 Aug 2011 19:50:53 +0000 (19:50 +0000)] 
gdb/testsuite/
* gdb.dwarf2/dw2-case-insensitive.exp (regexp case-sensitive off)
(p fuNC_symtab): Permit also ppc64 leading dot.

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 8 Aug 2011 19:16:39 +0000 (19:16 +0000)] 
gdb/testsuite/
* gdb.dwarf2/dw2-simple-locdesc.S: Replace .value by .2byte.

12 years ago * breakpoint.c (clean_up_filters): Remove.
Tom Tromey [Mon, 8 Aug 2011 15:51:45 +0000 (15:51 +0000)] 
* breakpoint.c (clean_up_filters): Remove.
(catch_syscall_split_args): Use VEC_cleanup.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Aug 2011 14:53:30 +0000 (14:53 +0000)] 
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (struct mach_o_segment_name_xlat): Add comments.
(segsec_names_xlat): Reorder elements.
(bfd_mach_o_read_section_32): Fix typo.
(bfd_mach_o_read_section_64): Fix typo.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Aug 2011 12:20:01 +0000 (12:20 +0000)] 
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* config/obj-macho.c (obj_mach_o_section): New function.
(struct known_section): New type.
(known_sections): Declare.
(obj_mach_o_known_section): New function.
(obj_mach_o_common_parse): Ditto.
(obj_mach_o_comm): Ditto.
(obj_mach_o_subsections_via_symbols): Ditto.
(mach_o_pseudo_table): Add new pseudos.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Aug 2011 10:56:31 +0000 (10:56 +0000)] 
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (BFD_MACH_O_SEGNAME_SIZE): New macro.
(BFD_MACH_O_SECTNAME_SIZE): Ditto.
(bfd_mach_o_section): Use them.  Add next field.
(bfd_mach_o_segment_command): Replace sections array by
sect_head and sect_tail.
(bfd_mach_o_get_mach_o_section): New macro.
(bfd_mach_o_lookup_section): Remove.
(bfd_mach_o_new_section_hook): New function.
* mach-o.c (bfd_mach_o_normalize_section_name): Use strncmp
instead of strcmp.
(bfd_mach_o_convert_section_name_to_bfd): Replaces section
parameter with segname and sectname parameters.  Adjust.
(bfd_mach_o_append_section_to_segment): New function.  Use a
linked list for Mach-O sections.
(bfd_mach_o_write_segment_32): Adjust.
(bfd_mach_o_write_segment_64): Ditto.
(bfd_mach_o_build_commands): Fix comment.  Adjust.
(bfd_mach_o_flatten_sections): Adjust.
(bfd_mach_o_print_section_map): Adjust.
(bfd_mach_o_set_section_flags_from_bfd): Ditto.
(bfd_mach_o_new_section_hook): New function.
(bfd_mach_o_init_section_from_mach_o): Ditto.
(bfd_mach_o_read_section_32): Remove section parameter.
Return a section instead.
(bfd_mach_o_read_section_64): Ditto.
(bfd_mach_o_read_section): Ditto.
(bfd_mach_o_make_bfd_section): Adjust.
(bfd_mach_o_read_segment): Adjust for new profile of
bfd_mach_o_read_section.
(bfd_mach_o_lookup_section): Remove.
* mach-o-target.c (bfd_mach_o_new_section_hook): Remove.

12 years agobfd/
Tristan Gingold [Mon, 8 Aug 2011 10:21:02 +0000 (10:21 +0000)] 
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h (bfd_mach_o_version_min_command): New structure.
(bfd_mach_o_load_command): Add version_min.
(mach_o_data_struct): Fix comment.
* mach-o.c (bfd_mach_o_read_version_min): New function.
(bfd_mach_o_read_command): Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.
(bfd_mach_o_get_name_or_null): New function.
(bfd_mach_o_get_name): Use the above new one.
(bfd_mach_o_load_command_name): Add the above new commands.
(bfd_mach_o_bfd_print_private_bfd_data): Display numerically
unknown commands.  Handle BFD_MACH_O_LC_FUNCTION_STARTS,
BFD_MACH_O_LC_VERSION_MIN_MACOSX and
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS.

include/mach-o/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* loader.h (bfd_mach_o_load_command_type): Add
BFD_MACH_O_LC_LOAD_UPWARD_DYLIB, BFD_MACH_O_LC_VERSION_MIN_MACOSX,
BFD_MACH_O_LC_VERSION_MIN_IPHONEOS, BFD_MACH_O_LC_FUNCTION_STARTS,
and BFD_MACH_O_LC_DYLD_ENVIRONMENT.
* external.h (mach_o_version_min_command_external): New structure.

12 years agobfd/
Tristan Gingold [Mon, 8 Aug 2011 08:59:33 +0000 (08:59 +0000)] 
bfd/
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.h: Move size macros to external.h
Move reloc macros to reloc.h and x86-64.h.
* mach-o-i386.c: Includes mach-o/reloc.h
* mach-o-x86-64.c: Ditto and includes mach-o/x86-64.h
* mach-o.c: Add includes.
(bfd_mach_o_write_header): Use structure from external.h to convert.
(bfd_mach_o_write_thread): Ditto.
(bfd_mach_o_write_relocs): Ditto.
(bfd_mach_o_write_section_32): Ditto.
(bfd_mach_o_write_section_64): Ditto.
(bfd_mach_o_write_segment_32): Ditto.
(bfd_mach_o_write_segment_64): Ditto.
(bfd_mach_o_write_symtab): Ditto.
(bfd_mach_o_write_contents): Ditto.
(bfd_mach_o_read_header): Ditto.
(bfd_mach_o_read_section_32): Ditto.
(bfd_mach_o_read_section_64): Ditto.
(bfd_mach_o_read_symtab_symbol): Ditto.
(bfd_mach_o_read_dylinker): Ditto.
(bfd_mach_o_read_dylib): Ditto.
(bfd_mach_o_read_dysymtab): Ditto.
(bfd_mach_o_read_symtab): Ditto.
(bfd_mach_o_read_linkedit): Ditto.
(bfd_mach_o_read_str): Ditto.
(bfd_mach_o_read_dyld_info): Ditto.
(bfd_mach_o_read_segment): Ditto.
(bfd_mach_o_read_command): Ditto.
(bfd_mach_o_archive_p): Ditto.
(bfd_mach_o_canonicalize_one_reloc): Ditto. Change the BUF parameter.
(bfd_mach_o_canonicalize_relocs): Adjust to call the above function.
(bfd_mach_o_read_dysymtab_symbol): Rename BUF variable.
(bfd_mach_o_read_uuid): Remove useless cast.  Use a macro instead
of an hard-coded value.

include/mach-o
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* loader.h: Reorder declarations.
* x86-64.h: New file.
* external.h: New file.
* reloc.h: New file.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Aug 2011 07:47:41 +0000 (07:47 +0000)] 
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o-x86-64.c (bfd_mach_o_x86_64_mkobject): Fix cut-and-past typos.
(bfd_mach_o_x86_64_swap_reloc_out): Handle BFD_RELOC_32_PCREL,
BFD_RELOC_MACH_O_X86_64_SUBTRACTOR64 and
BFD_RELOC_MACH_O_X86_64_GOT_LOAD.  Share common code.

12 years ago2011-08-08 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 8 Aug 2011 07:39:44 +0000 (07:39 +0000)] 
2011-08-08  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_normalize_section_name): New function.
(bfd_mach_o_convert_section_name_to_bfd): Use it.
(bfd_mach_o_get_section_type_from_name): New function.
(bfd_mach_o_get_section_attribute_from_name): Ditto.
* mach-o.h (bfd_mach_o_section): Move bfdsection field at the end.
Add comments.  Add prototypes for the above new functions.

12 years ago PR binutils/12964
Alan Modra [Mon, 8 Aug 2011 00:27:15 +0000 (00:27 +0000)] 
PR binutils/12964
* Makefile.am (embedspu): Use awk rather than sed.
* Makefile.in: Regenerate.

12 years agodaily update
Alan Modra [Mon, 8 Aug 2011 00:00:05 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 8 Aug 2011 00:00:04 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago * dw2gencfi.c (all_fde_data): Export.
Richard Henderson [Sun, 7 Aug 2011 16:32:20 +0000 (16:32 +0000)] 
    * dw2gencfi.c (all_fde_data): Export.
        * dw2gencfi.h (all_fde_data): Declare.
        * config/tc-alpha.c (alpha_elf_md_end): Don't convert legacy unwind
        info to cfi unwind info if the user already has supplied some.

12 years ago*** empty log message ***
gdbadmin [Sun, 7 Aug 2011 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 7 Aug 2011 00:00:05 +0000 (00:00 +0000)] 
daily update

12 years agomerge from gcc
DJ Delorie [Sat, 6 Aug 2011 18:40:27 +0000 (18:40 +0000)] 
merge from gcc

12 years agogdb/
Jan Kratochvil [Sat, 6 Aug 2011 14:13:49 +0000 (14:13 +0000)] 
gdb/
* cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
(main): Uncomment "Demangling error\n".

12 years ago2011-08-06 Kai Tietz <ktietz@redhat.com>
Kai Tietz [Sat, 6 Aug 2011 11:21:44 +0000 (11:21 +0000)] 
2011-08-06  Kai Tietz  <ktietz@redhat.com>

        * scripttempl/pep.sc: Add .debug_macro section.
        * scripttempl/pe.sc: Likewise.

12 years agogas/
Richard Sandiford [Sat, 6 Aug 2011 10:25:01 +0000 (10:25 +0000)] 
gas/
* config/tc-mips.c (emit_nop): Delete.
(get_delay_slot_nop): New function.
(nops_for_insn_or_target): Use it.
(append_insn): Likewise.  When avoiding hazards, call add_fixed_insn
and insert_into_history directly.

12 years agogas/
Richard Sandiford [Sat, 6 Aug 2011 10:02:03 +0000 (10:02 +0000)] 
gas/
* config/tc-mips.c (delayed_branch_p, compact_branch_p)
(uncond_branch_p, branch_likely_p): New functions.
(insns_between, nops_for_insn_or_target, append_insn)
(macro_start): Use them.
(get_append_method): Likewise.  Remove redundant test.

12 years agodaily update
Alan Modra [Sat, 6 Aug 2011 00:00:06 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 6 Aug 2011 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoinclude/opcode/
David S. Miller [Fri, 5 Aug 2011 16:52:50 +0000 (16:52 +0000)] 
include/opcode/
* sparc.h: Document new format codes '4', '5', and '('.
(OPF_LOW4, RS3): New macros.
opcodes/
* sparc-dis.c (v9a_ast_reg_names): Add "cps".
(X_RS3): New macro.
(print_insn_sparc): Handle '4', '5', and '(' format codes.
Accept %asr numbers below 28.
* sparc-opc.c (sparc_opcodes): Add entries for HPC and VIS3
instructions.
gas/
* config/tc-sparc.c (v9a_asr_table): Add "cps".
(sparc_ip): Handle '4', '5' and '(' format codes.
gas/testsuite
* gas/sparc/hpcvis3.d: New test.
* gas/sparc/hpcvis3.s: New test source.
* gas/sparc/sparc.exp: Run new test.

12 years ago2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Fri, 5 Aug 2011 16:38:40 +0000 (16:38 +0000)] 
2011-08-05  Paul Pluzhnikov  <ppluzhnikov@google.com>

* solib-target.c (segment_attributes): Make them static.
(section_attributes, library_children, library_attributes): Likewise.
(library_list_children, library_list_attributes): Likesise.
(library_list_elements): Likewise.

12 years ago gdb/
Pedro Alves [Fri, 5 Aug 2011 15:17:59 +0000 (15:17 +0000)] 
gdb/
* exceptions.c (throw_exception): Don't disable the current
display.
* printcmd.c (disable_current_display_cleanup): New function.
(do_one_display): Install a cleanup to disable the current display
if doing the display throws.

gdb/testsuite/
* gdb.trace/unavailable.exp (test_maybe_regvar_display): New
procedure.
(gdb_collect_args_test, gdb_collect_locals_test): Use it.

12 years agoClean up trailing white space
Paul Pluzhnikov [Fri, 5 Aug 2011 15:17:23 +0000 (15:17 +0000)] 
Clean up trailing white space

12 years ago * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
Eli Zaretskii [Fri, 5 Aug 2011 14:24:10 +0000 (14:24 +0000)] 
 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
 initialization of the tp_new member to the corresponding
 gdbpy_initialize_* function.
 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
 * python/py-function.c (gdbpy_initialize_functions): Likewise.
 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
 * python/py-param.c (gdbpy_initialize_parameters): Likewise.

12 years ago win32-low.c: Include <stdint.h>.
Eli Zaretskii [Fri, 5 Aug 2011 14:21:07 +0000 (14:21 +0000)] 
 win32-low.c: Include <stdint.h>.

12 years agoUpdate gas/i386/x86-64-branch.d to support win64.
H.J. Lu [Fri, 5 Aug 2011 14:11:43 +0000 (14:11 +0000)] 
Update gas/i386/x86-64-branch.d to support win64.

2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/x86-64-branch.d: Pass -dw to objdump and support
win64.

12 years ago* netbsd-core.c (netbsd_core_vec): Init match_priority field.
Mark Kettenis [Fri, 5 Aug 2011 12:37:26 +0000 (12:37 +0000)] 
* netbsd-core.c (netbsd_core_vec): Init match_priority field.

12 years agogdb/testsuite/
Yao Qi [Fri, 5 Aug 2011 09:41:27 +0000 (09:41 +0000)] 
gdb/testsuite/
        * gdb.base/callfuncs.exp: Set language after main.
        * gdb.cp/cplusfuncs.exp: Likewise.
        * gdb.cp/inherit.exp: Likewise.

12 years agobfd/
Alan Modra [Fri, 5 Aug 2011 06:22:22 +0000 (06:22 +0000)] 
bfd/
* elf64-ppc.c (maybe_strip_output): New function.
(ppc64_elf_size_stubs): Use it to strip .branch_lt and .eh_frame.
ld/testsuite/
* ld-powerpc/tlsexe.r: Update for stripped .branch_lt.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.

12 years ago PR ld/12762
Alan Modra [Fri, 5 Aug 2011 03:17:12 +0000 (03:17 +0000)] 
PR ld/12762
bfd/
* elflink.c (_bfd_elf_section_already_linked): Return matched
status.  Remove COFF comdat section handling.
* linker.c (_bfd_generic_section_already_linked): Return matched
status.  Don't set SEC_GROUP in l_flags for plugin entries.
(bfd_section_already_linked): Update prototype.
* targets.c (_section_already_linked): Likewise.
* elf-bfd.h (_bfd_elf_section_already_linked): Likewise.
* libbfd-in.h (_bfd_generic_section_already_linked): Likewise.
(_bfd_nolink_section_already_linked): Update.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.
ld/
* plugin.c (add_symbols): Exclude comdat_key symbols from symbol
table if already seen.

12 years ago * elf32-ppc.c: Include dwarf2.h.
Alan Modra [Fri, 5 Aug 2011 02:24:08 +0000 (02:24 +0000)] 
* elf32-ppc.c: Include dwarf2.h.
(struct ppc_elf_link_hash_table): Add glink_eh_frame.
(ppc_elf_create_glink): Create .eh_frame section.
(glink_eh_frame_cie): New array.
(ppc_elf_size_dynamic_sections): Size glink_eh_frame.
(ppc_elf_finish_dynamic_sections): Write glink_eh_frame.

12 years agogdb/
Jan Kratochvil [Fri, 5 Aug 2011 01:46:13 +0000 (01:46 +0000)] 
gdb/
* spu-tdep.c (info_spu_event_command, info_spu_signal_command)
(info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
(info_spu_dma_command, info_spu_proxydma_command): Rename uiout
references to current_uiout.

12 years ago*** empty log message ***
gdbadmin [Fri, 5 Aug 2011 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 5 Aug 2011 00:00:05 +0000 (00:00 +0000)] 
daily update

12 years agoCall bfd_cache_close_all on error
H.J. Lu [Thu, 4 Aug 2011 20:53:58 +0000 (20:53 +0000)] 
Call bfd_cache_close_all on error

2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/13056
* output-file.c (output_file_close): Call bfd_cache_close_all
on error.

* write.c (write_object_file): Revert the last change.

12 years agoReplace remove_output with ld_cleanup in comments.
H.J. Lu [Thu, 4 Aug 2011 20:47:46 +0000 (20:47 +0000)] 
Replace remove_output with ld_cleanup in comments.

2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>

* ldmain.c (main): Replace remove_output with ld_cleanup in
comments.

12 years agoAdd a testcase for group error.
H.J. Lu [Thu, 4 Aug 2011 20:20:11 +0000 (20:20 +0000)] 
Add a testcase for group error.

2011-08-04  H.J. Lu  <hongjiu.lu@intel.com>

* gas/elf/bad-group.d: New.
* gas/elf/bad-group.err: Likewise.
* gas/elf/bad-group.s: Likewise.

* gas/elf/elf.exp: Run bad-group.

12 years ago2011-08-04 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 4 Aug 2011 20:09:46 +0000 (20:09 +0000)] 
2011-08-04  Pedro Alves  <pedro@codesourcery.com>

* event-loop.c (gdb_do_one_event): Remove `data' parameter.
(start_event_loop): Use TRY_CATCH instead of catch_errors.
* event-loop.h (gdb_do_one_event): Remove `data' parameter.
* top.c (gdb_readline_wrapper): Adjust.
* tui/tui-interp.c (tui_command_loop):
(_initialize_tui_interp): Don't install it.

12 years ago2011-08-04 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 4 Aug 2011 19:10:14 +0000 (19:10 +0000)] 
2011-08-04  Pedro Alves  <pedro@codesourcery.com>

* ui-out.h (uiout): Rename to ...
(current_uiout): ... this.
* ui-out.c (uiout): Rename to ...
(current_uiout): ... this.
* ada-lang.c (print_it_exception, print_one_exception)
(print_mention_exception): Adjust.
* breakpoint.c (watchpoint_check): Adjust.
(print_breakpoint_location, print_one_breakpoint, breakpoint_1)
(default_collect_info, watchpoints_info, print_one_catch_fork)
(print_one_catch_vfork, print_one_catch_syscall)
(print_one_catch_exec, mention, print_it_ranged_breakpoint)
(print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
(print_it_watchpoint, print_mention_watchpoint)
(print_it_masked_watchpoint, print_mention_masked_watchpoint)
(print_it_exception_catchpoint, print_one_exception_catchpoint)
(print_mention_exception_catchpoint, say_where, bkpt_print_it)
(bkpt_print_mention, momentary_bkpt_print_it)
(tracepoint_print_mention, update_static_tracepoint)
(tracepoints_info, save_breakpoints): Adjust.
* cli-out.c (field_separator): Adjust.
* cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
* exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
* frame.c (get_current_frame): Adjust.
* infcmd.c (run_command_1, print_return_value): Adjust.
* inferior.c (inferior_command, info_inferiors_command): Adjust.
* infrun.c (print_end_stepping_range_reason): Adjust.
(print_signal_exited_reason, print_exited_reason): Adjust.
(print_signal_received_reason, print_no_history_reason): Adjust.
* interps.c (interp_set): Adjust.
* osdata.c (info_osdata_command): Adjust.
* progspace.c (maintenance_info_program_spaces_command): Adjust.
* remote-fileio.c (remote_fileio_request): Adjust.
* remote.c (show_remote_cmd): Adjust.
* solib.c (info_sharedlibrary_command): Adjust.
* source.c (print_source_lines_base): Adjust.
* stack.c (print_stack_frame): Adjust.
(do_gdb_disassembly, print_frame_info, print_frame): Adjust.
* symfile-mem.c (add_vsyscall_page): Adjust.
* symfile.c (load_progress, generic_load)
(print_transfer_performance): Adjust.
* thread.c (info_threads_command, restore_selected_frame)
(thread_command): Adjust.
* top.c (make_cleanup_restore_ui_file): Adjust.
* tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
(print_one_static_tracepoint_marker): Adjust.
* cli/cli-cmds.c (print_disassembly): Adjust.
* cli/cli-decode.c (print_doc_line): Adjust.
* cli/cli-interp.c (safe_execute_command): Adjust.
* cli/cli-logging.c (set_logging_redirect, pop_output_files)
(handle_redirections): Adjust.
* cli/cli-script.c (show_user_1): Adjust.
* cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
* mi/mi-cmd-break.c (breakpoint_notify): Adjust.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
* mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
(mi_cmd_env_dir): Adjust.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
(print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
(mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
(list_args_or_locals): Adjust.
* mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
(mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
(mi_cmd_var_show_format, mi_cmd_var_info_num_children)
(mi_cmd_var_list_children, mi_cmd_var_info_type)
(mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
(mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
(mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
* mi/mi-interp.c (mi_on_normal_stop): Adjust.
* mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
(mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
(list_available_thread_groups, mi_cmd_list_thread_groups)
(mi_cmd_data_list_register_names)
(mi_cmd_data_list_changed_registers)
(mi_cmd_data_list_register_values, get_register)
(mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
(mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
(mi_cmd_list_target_features, mi_cmd_add_inferior)
(mi_execute_command, mi_load_progress): Adjust.
* mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
* python/py-auto-load.c (print_script, info_auto_load_scripts):
Adjust.
* python/py-breakpoint.c (bppy_get_commands): Adjust.
* tui/tui-interp.c (tui_command_loop): Adjust.
* tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.

12 years ago2011-08-04 Pedro Alves <pedro@codesourcery.com>
Pedro Alves [Thu, 4 Aug 2011 18:19:27 +0000 (18:19 +0000)] 
2011-08-04  Pedro Alves  <pedro@codesourcery.com>

* exceptions.c (struct catcher): Remove saved_uiout field.
(exceptions_state_mc_init): Remove the `func_uiout' parameter, and
no longer save/resvore the global ui_out builder.
(catch_exceptions_with_msg): Save/override/restore the global
ui_out builder manually instead of relying on TRY_CATCH to do it.
(catch_errors): Save/restore the global ui_out builder manually
instead of relying on TRY_CATCH to do it.
* exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
parameter.
(TRY_CATCH): Adjust.
* cli/cli-interp.c (safe_execute_command): Save/override/restore
the global ui_out builder manually instead of relying on TRY_CATCH
to do it.

12 years ago * gdb.base/nostdlib.exp: Skip on gdb_stub targets.
Ulrich Weigand [Thu, 4 Aug 2011 15:00:50 +0000 (15:00 +0000)] 
* gdb.base/nostdlib.exp: Skip on gdb_stub targets.
* gdb.base/watch-vfork.exp: Skip on remote targets.

12 years ago * gdb.threads/thread-find.exp: Support remote targets.
Ulrich Weigand [Thu, 4 Aug 2011 12:49:33 +0000 (12:49 +0000)] 
* gdb.threads/thread-find.exp: Support remote targets.

12 years ago * gdb.base/jit.exp: Download solib_binfile to target.
Ulrich Weigand [Thu, 4 Aug 2011 11:56:29 +0000 (11:56 +0000)] 
* gdb.base/jit.exp: Download solib_binfile to target.
* gdb.base/jit-so.exp:  Likewise.  Also, use gdb_load_shlibs
and call dlopen without full path name.
* gdb.cp/infcall-dlopen.exp: Use gdb_load_shlibs and call
dlopen without full path name.

12 years ago * write.c (write_object_file): Call set_symtab even if we had
Alan Modra [Thu, 4 Aug 2011 10:24:00 +0000 (10:24 +0000)] 
* write.c (write_object_file): Call set_symtab even if we had
errors.

12 years ago2011-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 4 Aug 2011 08:13:53 +0000 (08:13 +0000)] 
2011-08-04  Tristan Gingold  <gingold@adacore.com>

* vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index.
(_bfd_vms_write_etir): Initialize vms_linkage_index to 0.

12 years ago2011-08-04 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 4 Aug 2011 07:44:44 +0000 (07:44 +0000)] 
2011-08-04  Tristan Gingold  <gingold@adacore.com>

* config/obj-elf.c (obj_elf_section): Do not free name.

12 years agodaily update
Alan Modra [Thu, 4 Aug 2011 00:00:05 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Thu, 4 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
Philippe Waroquiers [Wed, 3 Aug 2011 21:17:09 +0000 (21:17 +0000)] 
2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* breakpoint.c (update_global_location_list): Ensure
invariant 'first loc marked not duplicated and inserted,
following locs marked duplicated/not inserted' is respected
for multiple locations at the same address.
(unduplicated_should_be_inserted) New function.
(swap_insertion) New function.

2011-08-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* gdb.base/break-always.exp: Complete the test
with duplicated breakpoints and enabling/disabling them.

12 years ago * mips.h: Document the use of FP_D in MIPS16 mode. Adjust the
Maciej W. Rozycki [Wed, 3 Aug 2011 21:09:46 +0000 (21:09 +0000)] 
* mips.h: Document the use of FP_D in MIPS16 mode.  Adjust the
order of flags documented.

12 years agogdb/
Jan Kratochvil [Wed, 3 Aug 2011 15:17:10 +0000 (15:17 +0000)] 
gdb/
* stack.c (print_frame_arguments_choices): Comment typo fix.

12 years ago * config/tc-arm.c (do_t_strexbh): New.
Nick Clifton [Wed, 3 Aug 2011 11:35:56 +0000 (11:35 +0000)] 
* config/tc-arm.c (do_t_strexbh): New.
(insns): Update accordingly.

* gas/arm/strex-bad-t.d: New testcase.
* gas/arm/strex-bad-t.s: Likewise.
* gas/arm/strex-bad-t.l: Likewise.
* gas/arm/strex-t.s: Likewise.
* gas/arm/strex-t.d: Likewise.

12 years ago2011-08-03 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 3 Aug 2011 08:12:07 +0000 (08:12 +0000)] 
2011-08-03  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case.
(bfd_mach_o_read_symtab_symbols): Return if no symbols.

12 years agodaily update
Alan Modra [Wed, 3 Aug 2011 00:00:05 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 3 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago PR gdb/11289:
Tom Tromey [Tue, 2 Aug 2011 20:59:44 +0000 (20:59 +0000)] 
PR gdb/11289:
* gdb.cp/overload.exp: Fix regexps.  Remove kfails.

12 years agoopcodes/
Quentin Neill [Tue, 2 Aug 2011 19:58:06 +0000 (19:58 +0000)] 
opcodes/

2011-08-02  Quentin Neill  <quentin.neill@amd.com>

       * i386-dis.c (xop_table): Remove spurious bextr insn.

12 years ago Fix timestamps in three ChangeLog entries with wrong year.
Cary Coutant [Tue, 2 Aug 2011 18:47:07 +0000 (18:47 +0000)] 
Fix timestamps in three ChangeLog entries with wrong year.

12 years ago * elfxx-mips.c (check_4byte_branch): Remove function.
Maciej W. Rozycki [Tue, 2 Aug 2011 14:28:26 +0000 (14:28 +0000)] 
* elfxx-mips.c (check_4byte_branch): Remove function.
(check_relocated_bzc): New function.
(_bfd_mips_elf_relax_section): Permit the relaxation of LUI
instructions that immediately follow a compact branch
instruction.

12 years ago * elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
Alan Modra [Tue, 2 Aug 2011 04:44:45 +0000 (04:44 +0000)] 
* elf64-ppc.c (build_plt_stub): Correct emitted relocs when no
plt_static_chain.
(ppc_build_one_stub): Adjust get_relocs call to suit..
(ppc_size_one_stub): ..and reloc sizing.  Correct plt size corner case.

12 years agoAdd missing files.
H.J. Lu [Tue, 2 Aug 2011 00:37:41 +0000 (00:37 +0000)] 
Add missing files.

12 years agodaily update
Alan Modra [Tue, 2 Aug 2011 00:00:07 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Tue, 2 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoCheck R_X86_64_32 overflow and allow R_X86_64_64 for x32.
H.J. Lu [Mon, 1 Aug 2011 23:04:23 +0000 (23:04 +0000)] 
Check R_X86_64_32 overflow and allow R_X86_64_64 for x32.

bfd/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13048
* archures.c (bfd_mach_i386_intel_syntax): New.
(bfd_mach_i386_i8086): Updated.
(bfd_mach_i386_i386): Likewise.
(bfd_mach_x86_64): Likewise.
(bfd_mach_x64_32): Likewise.
(bfd_mach_i386_i386_intel_syntax): Likewise.
(bfd_mach_x86_64_intel_syntax): Likewise.
(bfd_mach_x64_32_intel_syntax): Likewise.
(bfd_mach_l1om): Likewise.
(bfd_mach_l1om_intel_syntax): Likewise.
(bfd_mach_k1om): Likewise.
(bfd_mach_k1om_intel_syntax): Likewise.

* bfd-in2.h: Regenerated.

* cpu-i386.c (bfd_i386_compatible): Check mach instead of
bits_per_address.
(bfd_x64_32_arch_intel_syntax): Set bits_per_address to 64.
(bfd_x64_32_arch): Likewise.

* elf64-x86-64.c: Include "libiberty.h".
(x86_64_elf_howto_table): Append x32 R_X86_64_32.
(elf_x86_64_rtype_to_howto): Support x32 R_X86_64_32.
(elf_x86_64_reloc_type_lookup): Likewise.
(elf_x86_64_reloc_name_lookup): Likewise.
(elf_x86_64_relocate_section): Likewise.
(elf_x86_64_check_relocs): Allow R_X86_64_64 relocations for x32.

gas/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13048
* config/tc-i386.c (handle_quad): Removed.
(md_pseudo_table): Remove "quad".
(tc_gen_reloc): Don't check BFD_RELOC_64 for disallow_64bit_reloc.
(x86_dwarf2_addr_size): New.

* config/tc-i386.h (x86_dwarf2_addr_size): New.
(DWARF2_ADDR_SIZE): Likewise.

gas/testsuite/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13048
* gas/i386/ilp32/ilp32.exp: Don't run inval.

* gas/i386/ilp32/inval.l: Removed.
* gas/i386/ilp32/inval.s: Likewise.

* gas/i386/ilp32/quad.d: Expect R_X86_64_64 instead of
R_X86_64_32.

* gas/i386/ilp32/x86-64-pcrel.s: Add tests for movabs.
* gas/i386/ilp32/x86-64-pcrel.d: Updated.

ld/testsuite/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13048
* ld-x86-64/ilp32-6.d: New.
* ld-x86-64/ilp32-6.s: Likewise.
* ld-x86-64/ilp32-7.d: Likewise.
* ld-x86-64/ilp32-7.s: Likewise.
* ld-x86-64/ilp32-8.d: Likewise.
* ld-x86-64/ilp32-8.s: Likewise.
* ld-x86-64/ilp32-9.d: Likewise.
* ld-x86-64/ilp32-9.s: Likewise.

* ld-x86-64/x86-64.exp: Run ilp32-6, ilp32-7, ilp32-8 and ilp32-9.

opcodes/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13048
* i386-dis.c (print_insn): Optimize info->mach check.

12 years ago * gold/testsuite/Makefile.am (justsyms_exec): New testcase.
Cary Coutant [Mon, 1 Aug 2011 20:09:25 +0000 (20:09 +0000)] 
* gold/testsuite/Makefile.am (justsyms_exec): New testcase.
* gold/testsuite/Makefile.in: Regenerate.
* gold/testsuite/justsyms_exec.c: New source file.
* gold/testsuite/justsyms_lib.c: New source file.

12 years agoAdd Disp32S to 64bit call.
H.J. Lu [Mon, 1 Aug 2011 19:25:48 +0000 (19:25 +0000)] 
Add Disp32S to 64bit call.

gas/testsuite/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/13046
* gas/i386/x86-64-branch.s: Add tests for direct branch.
* gas/i386/x86-64-branch.d: Updated.
* gas/i386/ilp32/x86-64-branch.d: Likewise.

opcodes/

2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/13046
* i386-opc.tbl: Add Disp32S to 64bit call.
* i386-tbl.h: Regenerated.

12 years ago Revert:
Thiago Jung Bauermann [Mon, 1 Aug 2011 18:45:49 +0000 (18:45 +0000)] 
Revert:
2011-07-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
* breakpoint.c (insert_bp_location): Remove disabled_breaks
argument.  Update callers.

12 years ago * layout.cc (Layout::set_segment_offsets): Don't realign text
Cary Coutant [Mon, 1 Aug 2011 18:25:22 +0000 (18:25 +0000)] 
* layout.cc (Layout::set_segment_offsets): Don't realign text
segment if -Ttext was specified.
* object.cc (Sized_relobj_file::Sized_relobj_file): Store the ELF
file type.
* object.h (Sized_relobj_file::e_type): New function.
(Sized_relobj_file::e_type_): New data member.
* symtab.cc (Symbol_table::add_from_relobj): Don't add section
base address for ET_EXEC files.
* target.cc (Target::do_make_elf_object_implementation): Allow
ET_EXEC files with --just-symbols option.

12 years agofix date of last checkin
Paul Pluzhnikov [Mon, 1 Aug 2011 16:03:06 +0000 (16:03 +0000)] 
fix date of last checkin

12 years ago2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Mon, 1 Aug 2011 16:02:03 +0000 (16:02 +0000)] 
2011-08-01  Paul Pluzhnikov  <ppluzhnikov@google.com>

PR gdb/13045
* doublest.c (convert_doublest_to_floatformat): Pass correct
mantissa length to put_field.

testsuite/ChangeLog:

2011-07-30  Paul Pluzhnikov  <ppluzhnikov@google.com>

PR gdb/13045
* gdb.base/float.exp: Add new test case for PR gdb/13045
* gdb.base/float.c: New file.

12 years agogdb/
Jan Kratochvil [Mon, 1 Aug 2011 14:57:48 +0000 (14:57 +0000)] 
gdb/
* stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
exception_print code path.
(backtrace_command): Remove variable e.  Protect arg by make_cleanup in
advance.  Simplify memset.  Remove TRY_CATCH.  Remove explicit xfree.
(backtrace_full_command):  Remove variable e.  Remove TRY_CATCH.

12 years agogdb/
Jan Kratochvil [Mon, 1 Aug 2011 14:56:57 +0000 (14:56 +0000)] 
gdb/
Code cleanup.
* stack.c (struct print_stack_frame_args, print_stack_frame_stub):
Remove, merge them into ...
(print_stack_frame): ... here with a TRY_CATCH.  New variable e, remove
variable args and its initialization.
(struct print_args_args, print_args_stub): Remove, merge them into
print_frame.
(struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
them into ...
(do_gdb_disassembly): ... here.  Remove variable args and its
initialization.
(print_frame): Remove variable args and its initialization, new
variable gdbarch and numargs (from print_args_stub), inline here
print_args_stub with a TRY_CATCH.
(struct backtrace_command_args, backtrace_command_stub): Remove, merge
them into ...
(backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
New variable e, remove variable btargs and its initialization.

12 years ago2011-08-01 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 1 Aug 2011 14:07:09 +0000 (14:07 +0000)] 
2011-08-01  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.c (darwin_decode_exception_message): Adjust assertion.

12 years ago PR ld/12974
Nick Clifton [Mon, 1 Aug 2011 11:27:14 +0000 (11:27 +0000)] 
PR ld/12974
* config/tc-arm.c (literal_pool): Add locs field.
(add_to_lit_pool): Initialise the locs entry for the new literal.
(s_ltorg): Generate a DWARF2 line number entry for each emitted
literal pool entry.

12 years ago2011-08-01 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 1 Aug 2011 09:05:40 +0000 (09:05 +0000)] 
2011-08-01  Tristan Gingold  <gingold@adacore.com>

* write.c (write_relocs): Fix -Wshadow in DEBUG3 and DEBUG4.

12 years ago2011-08-01 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 1 Aug 2011 08:05:49 +0000 (08:05 +0000)] 
2011-08-01  Tristan Gingold  <gingold@adacore.com>

* frags.c (frag_grow): Simplify the code.

12 years agodaily update
Alan Modra [Mon, 1 Aug 2011 00:00:06 +0000 (00:00 +0000)] 
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 1 Aug 2011 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago * breakpoint.c (insert_bp_location): Document return value.
Thiago Jung Bauermann [Sun, 31 Jul 2011 20:31:16 +0000 (20:31 +0000)] 
* breakpoint.c (insert_bp_location): Document return value.
(insert_breakpoint_locations): Fix documentation.
(remove_breakpoints): Add documentation.

12 years ago * breakpoint.c (insert_bp_location): Remove disabled_breaks
Thiago Jung Bauermann [Sun, 31 Jul 2011 20:29:33 +0000 (20:29 +0000)] 
* breakpoint.c (insert_bp_location): Remove disabled_breaks
argument.  Update callers.

This page took 0.050527 seconds and 4 git commands to generate.