binutils-gdb.git
12 years agogdb/
Jan Kratochvil [Tue, 28 Feb 2012 08:14:11 +0000 (08:14 +0000)]
gdb/
Fix static analysis issue found by cppcheck.
* microblaze-tdep.c (microblaze_extract_return_value): Fix
uninitialized BUF for size 2.

12 years ago*** empty log message ***
gdbadmin [Tue, 28 Feb 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
Maciej W. Rozycki [Mon, 27 Feb 2012 23:05:40 +0000 (23:05 +0000)]
* mips-tdep.c (mips32_instruction_has_delay_slot): New function.
(mips16_instruction_has_delay_slot): Likewise.
(mips_segment_boundary): Likewise.
(mips_adjust_breakpoint_address): Likewise.
(mips_gdbarch_init): Use mips_adjust_breakpoint_address.

12 years agodaily update
Alan Modra [Mon, 27 Feb 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago * infrun.c (handle_inferior_event): Don't proceed through
Maciej W. Rozycki [Mon, 27 Feb 2012 21:36:47 +0000 (21:36 +0000)]
* infrun.c (handle_inferior_event): Don't proceed through
shared library trampolines if stepping at the machine
instruction level.

12 years ago * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
Maciej W. Rozycki [Mon, 27 Feb 2012 21:27:46 +0000 (21:27 +0000)]
* mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
too.

12 years ago * gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main
Maciej W. Rozycki [Mon, 27 Feb 2012 20:48:25 +0000 (20:48 +0000)]
* gdb.cp/breakpoint.exp (test_breakpoint): Fix the runto_main
failure return path.

12 years ago * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
Thomas Schwinge [Mon, 27 Feb 2012 16:40:48 +0000 (16:40 +0000)]
* sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
(sh_stub_unwind_sniffer): New functions.
(sh_stub_unwind): New variable.
(sh_gdbarch_init): Wire everything.

12 years ago2012-02-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 27 Feb 2012 16:22:16 +0000 (16:22 +0000)]
2012-02-27  Pedro Alves  <palves@redhat.com>

gdb/gdbserver/
* linux-low.c (pid_is_stopped): Delete, moved to common/.
(linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.

gdb/
* linux-nat.c (pid_is_stopped): Delete, moved to common/.
(linux_nat_post_attach_wait): Adjust to use
linux_proc_pid_is_stopped.

* common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
* common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
based on pid_is_stopped from both linux-nat.c and
gdbserver/linux-low.c, and renamed.

12 years ago2012-02-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 27 Feb 2012 16:19:19 +0000 (16:19 +0000)]
2012-02-27  Pedro Alves  <palves@redhat.com>

PR server/9684
* linux-low.c (pid_is_stopped): New.
(linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.

12 years ago2012-02-27 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Mon, 27 Feb 2012 13:22:59 +0000 (13:22 +0000)]
2012-02-27  Luis Machado  <lgustavo@codesourcery.com>

* gdb.base/save-bp.exp: Account for new condition evaluator output.

12 years ago * config/tc-crx.c (check_range): Correct uint32_t misconceptions.
Alan Modra [Mon, 27 Feb 2012 12:36:21 +0000 (12:36 +0000)]
* config/tc-crx.c (check_range): Correct uint32_t misconceptions.

12 years ago * chew.c (print_stack_level, main): Use %ld to print stack delta.
Alan Modra [Mon, 27 Feb 2012 07:03:00 +0000 (07:03 +0000)]
* chew.c (print_stack_level, main): Use %ld to print stack delta.

12 years agocpu/
Alan Modra [Mon, 27 Feb 2012 06:57:57 +0000 (06:57 +0000)]
cpu/
* mt.opc (print_dollarhex): Trim values to 32 bits.
opcodes/
* mt-dis.c: Regenerate.

12 years ago * v850-opc.c (extract_v8): Rearrange to make it obvious this
Alan Modra [Mon, 27 Feb 2012 06:55:39 +0000 (06:55 +0000)]
* v850-opc.c (extract_v8): Rearrange to make it obvious this
is the inverse of corresponding insert function.
(extract_d22, extract_u9, extract_r4): Likewise.
(extract_d9): Correct sign extension.
(extract_d16_15): Don't assume "long" is 32 bits, and don't
rely on implementation defined behaviour for shift right of
signed types.
(extract_d16_16, extract_d17_16, extract_i9): Likewise.
(extract_d23): Likewise, and correct mask.

12 years ago * config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
Alan Modra [Mon, 27 Feb 2012 06:52:20 +0000 (06:52 +0000)]
* config/tc-tic4x.c (tic4x_do_align): Remove ATTRIBUTE_UNUSED on
params.  Properly generate NOP pattern.  Comment reason for
subseg_text_p failure.

12 years ago * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
Alan Modra [Mon, 27 Feb 2012 06:48:10 +0000 (06:48 +0000)]
* elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
before calling elf specific function.
(sh_elf_osec_readonly_p): Test for error return from above.

12 years ago * config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
Alan Modra [Mon, 27 Feb 2012 06:40:42 +0000 (06:40 +0000)]
* config/tc-h8300.c (constant_fits_width_p): Trim constant to 32 bits
and sign extend before range tests.
(constant_fits_size_p): Similarly.
(get_specific): Trim X_add_number to 32 bits.
(fix_operand_size): Likewise, and use unsigned test for signed
ranges.

12 years agogas/
Alan Modra [Mon, 27 Feb 2012 06:37:40 +0000 (06:37 +0000)]
gas/
* config/tc-crx.c: Include bfd_stdint.h.
(getconstant): Remove irrelevant comment.  Don't fail due to
sign-extension of int mask.
(check_range): Rewrite using unsigned arithmetic throughout.
opcodes/
* crx-dis.c (print_arg): Mask constant to 32 bits.
* crx-opc.c (cst4_map): Use int array.
include/opcode/
* crx.h (cst4_map): Update declaration.

12 years ago * arc-dis.c (BITS): Don't use shifts to mask off bits.
Alan Modra [Mon, 27 Feb 2012 06:31:57 +0000 (06:31 +0000)]
* arc-dis.c (BITS): Don't use shifts to mask off bits.
(FIELDD): Sign extend with xor,sub.

12 years ago*** empty log message ***
gdbadmin [Mon, 27 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * elf32-spu.c (build_stub): Fix malloc under-allocation.
Alan Modra [Sun, 26 Feb 2012 23:12:16 +0000 (23:12 +0000)]
* elf32-spu.c (build_stub): Fix malloc under-allocation.

12 years agodaily update
Alan Modra [Sun, 26 Feb 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 26 Feb 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoFix regression from change
Walter Lee [Sat, 25 Feb 2012 22:40:48 +0000 (22:40 +0000)]
Fix regression from change
http://sourceware.org/ml/binutils-cvs/2012-01/msg00049.html .  The
code needs to check that the symbol is not a local symbol before
accessing a non-local-symbol field.

* tc-tilepro.c (emit_tilepro_instruction): Check if symbol is
non-local before checking sy_value.
* tc-tilegx.c (emit_tilegx_instruction): Ditto.

12 years agoImprove TLS support on TILE-Gx/TILEPro:
Walter Lee [Sat, 25 Feb 2012 22:24:21 +0000 (22:24 +0000)]
Improve TLS support on TILE-Gx/TILEPro:
- Add support for TLS LE references.
- Support linker optimization of TLS references.
- Delete relocations of GOT/tp relative offsets beyond 32-bits.

This brings binutils in line with the support expected in gcc 4.7, for
TILE-Gx/TILEPro.

bfd/
* reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
* elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
relocations.
(tilepro_reloc_map): Ditto.
(tilepro_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilepro_tls_translate_to_le): New.
(tilepro_tls_translate_to_ie): New.
(tilepro_elf_tls_transition): New.
(tilepro_elf_check_relocs): Handle new tls relocations.
(tilepro_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilepro_elf_relocate_section): Ditto.
(tilepro_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New
(insn_mask_X1_no_dest_no_srca): New
(insn_mask_Y0_no_dest_no_srca): New
(insn_mask_Y1_no_dest_no_srca): New
(srca_mask_X0): New
(srca_mask_X1): New
(insn_tls_le_move_X1): New
(insn_tls_le_move_zero_X0X1): New
(insn_tls_ie_lw_X1): New
(insn_tls_ie_add_X0X1): New
(insn_tls_ie_add_Y0Y1): New
(insn_tls_gd_add_X0X1): New
(insn_tls_gd_add_Y0Y1): New
* elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
relocations.
(tilegx_reloc_map): Ditto.
(tilegx_info_to_howto_rela): Ditto.
(reloc_to_create_func): Ditto.
(tilegx_elf_link_hash_table): New field disable_le_transition.
(tilegx_tls_translate_to_le): New.
(tilegx_tls_translate_to_ie): New.
(tilegx_elf_tls_transition): New.
(tilegx_elf_check_relocs): Handle new tls relocations.
(tilegx_elf_gc_sweep_hook): Ditto.
(allocate_dynrelocs): Ditto.
(tilegx_elf_relocate_section): Ditto.
(tilegx_copy_bits): New.
(tilegx_replace_insn): New.
(insn_mask_X1): New.
(insn_mask_X0_no_dest_no_srca): New.
(insn_mask_X1_no_dest_no_srca): New.
(insn_mask_Y0_no_dest_no_srca): New.
(insn_mask_Y1_no_dest_no_srca): New.
(insn_mask_X0_no_operand): New.
(insn_mask_X1_no_operand): New.
(insn_mask_Y0_no_operand): New.
(insn_mask_Y1_no_operand): New.
(insn_tls_ie_ld_X1): New.
(insn_tls_ie_ld4s_X1): New.
(insn_tls_ie_add_X0X1): New.
(insn_tls_ie_add_Y0Y1): New.
(insn_tls_ie_addx_X0X1): New.
(insn_tls_ie_addx_Y0Y1): New.
(insn_tls_gd_add_X0X1): New.
(insn_tls_gd_add_Y0Y1): New.
(insn_move_X0X1): New.
(insn_move_Y0Y1): New.
(insn_add_X0X1): New.
(insn_add_Y0Y1): New.
(insn_addx_X0X1): New.
(insn_addx_Y0Y1): New.
* libbfd.h: Regenerate.
* bfd-in2.h: Regenerate.

gas/
* tc-tilepro.c (O_tls_le): Define operator.
(O_tls_le_lo16): Ditto.
(O_tls_le_hi16): Ditto.
(O_tls_le_ha16): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilepro_instruction): Ditto.
(md_apply_fix): Ditto.
* tc-tilegx.c (O_hw1_got): Delete operator.
(O_hw2_got): Ditto.
(O_hw3_got): Ditto.
(O_hw2_last_got): Ditto.
(O_hw1_tls_gd): Ditto.
(O_hw2_tls_gd): Ditto.
(O_hw3_tls_gd): Ditto.
(O_hw2_last_tls_gd): Ditto.
(O_hw1_tls_ie): Ditto.
(O_hw2_tls_ie): Ditto.
(O_hw3_tls_ie): Ditto.
(O_hw2_last_tls_ie): Ditto.
(O_hw0_tls_le): Define operator.
(O_hw0_last_tls_le): Ditto.
(O_hw1_last_tls_le): Ditto.
(O_tls_gd_call): Ditto.
(O_tls_gd_add): Ditto.
(O_tls_ie_load): Ditto.
(O_tls_add): Ditto.
(md_begin): Delete old operators; handle new operators.
(emit_tilegx_instruction): Ditto.
(md_apply_fix): Ditto.
* doc/c-tilegx.texi: Delete old operators; document new operators.
* doc/c-tilepro.texi: Ditto.

include/elf/
* tilegx.h (R_TILEGX_IMM16_X0_HW1_GOT): Delete.
(R_TILEGX_IMM16_X1_HW1_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW3_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_GOT): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_GD): Ditto.
(R_TILEGX_IMM16_X0_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW1_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW3_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X1_HW2_LAST_TLS_IE): Ditto.
(R_TILEGX_IMM16_X0_HW0_TLS_LE): New relocation.
(R_TILEGX_IMM16_X1_HW0_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE): Ditto.
(R_TILEGX_TLS_GD_CALL): Ditto.
(R_TILEGX_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEGX_TLS_IE_LOAD): Ditto.
(R_TILEGX_IMM8_X0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_X1_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y0_TLS_ADD): Ditto.
(R_TILEGX_IMM8_Y1_TLS_ADD): Ditto.
* tilepro.h (R_TILEPRO_TLS_GD_CALL): New relocation.
(R_TILEPRO_IMM8_X0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_X1_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y0_TLS_GD_ADD): Ditto.
(R_TILEPRO_IMM8_Y1_TLS_GD_ADD): Ditto.
(R_TILEPRO_TLS_IE_LOAD): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_LO): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HI): Ditto.
(R_TILEPRO_IMM16_X0_TLS_LE_HA): Ditto.
(R_TILEPRO_IMM16_X1_TLS_LE_HA): Ditto.

include/opcode/
* tilegx.h (tilegx_mnemonic): Add TILEGX_OPC_LD4S_TLS,
TILEGX_OPC_LD_TLS.
* tilepro.h (tilepro_mnemonic): Add TILEPRO_OPC_LW_TLS,
TILEPRO_OPC_LW_TLS_SN.

opcodes/
* tilegx-opc.c: Handle TILEGX_OPC_LD4S_TLS and TILEGX_OPC_LD_TLS.
* tilepro-opc.c: Handle TILEPRO_OPC_LW_TLS and
TILEPRO_OPC_LW_TLS_SN.

12 years agoDeletes some dead code in the TILE-Gx/TILEPro ports of gas.
Walter Lee [Sat, 25 Feb 2012 20:07:08 +0000 (20:07 +0000)]
Deletes some dead code in the TILE-Gx/TILEPro ports of gas.

* tc-tilepro.c (apply_special_operator): delete cases for
got and tls operators.
(md_apply_fix): Ditto.
* tc-tilegx.c: (apply_special_operator): delete cases for
got and tls operators.
(md_apply_fix): Ditto.

12 years ago2012-02-25 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Sat, 25 Feb 2012 19:54:50 +0000 (19:54 +0000)]
2012-02-25  Luis Machado  <lgustavo@codesourcery.com>

* mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
of conditions.

12 years agoAdd big-endian support for tilegx.
Walter Lee [Sat, 25 Feb 2012 19:51:34 +0000 (19:51 +0000)]
Add big-endian support for tilegx.

bfd/
* config.bfd (tilegx-*-*): rename little endian vector; add big
endian vector.
(tilegxbe-*-*): New case.
* configure.in (bfd_elf32_tilegx_vec): Rename...
(bfd_elf32_tilegx_le_vec): ... to this.
(bfd_elf32_tilegx_be_vec): New vector.
(bfd_elf64_tilegx_vec): Rename...
(bfd_elf64_tilegx_le_vec): ... to this.
(bfd_elf64_tilegx_be_vec): New vector.
* configure: Regenerate.
* elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
(TARGET_LITTLE_NAME): Ditto.
(TARGET_BIG_SYM): Define.
(TARGET_BIG_NAME): Define.
* elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
(TARGET_LITTLE_NAME): Ditto.
(TARGET_BIG_SYM): Define.
(TARGET_BIG_NAME): Define.
* targets.c (bfd_elf32_tilegx_vec): Rename...
(bfd_elf32_tilegx_le_vec): ... to this.
(bfd_elf32_tilegx_be_vec): Declare.
(bfd_elf64_tilegx_vec): Rename...
(bfd_elf64_tilegx_le_vec): ... to this.
(bfd_elf64_tilegx_be_vec): Declare.
(_bfd_target_vector): Add / rename above vectors.

binutils/testsuite/
* binutils-all/objdump.exp (cpus_expected): Add tilegx.

gas/
* tc-tilegx.c (tilegx_target_format): Handle big endian.
(OPTION_EB): Define.
(OPTION_EL): Define.
(md_longopts): Add entries for "EB" and "EL".
(md_parse_option): Handle OPTION_EB and OPTION_EL.
(md_show_usage): Add -EB and -EL.
(md_number_to_chars): New.
* tc-tilegx.h (TARGET_BYTES_BIG_ENDIAN): Guard definition with
ifndef.
(md_number_to_chars): Delete.
* configure.tgt (tilegx*be): Handle.
* doc/as.texinfo [TILE-Gx]: Document -EB and -EL.
* doc/c-tilegx.texi: Ditto.

ld/
* Makefile.am (ALL_EMULATION_SOURCES): Add eelf32tilegx_be.c.
(ALL_64_EMULATION_SOURCES): Add eelf64tilegx_be.c.
(eelf32tilegx_be.c): Add rule to build this file.
(eelf64tilegx_be.c): Ditto.
* Makefile.in: Regenerate.
* configure.tgt (tilegx-*-*): Support big endian.
(tilegxbe-*-*): New.
* emulparams/elf32tilegx.sh (OUTPUT_FORMAT): Rename.
(BIG_OUTPUT_FORMAT): Define.
(LITTLE_OUTPUT_FORMAT): Define.
* emulparams/elf32tilegx_be.sh: New.
* emulparams/elf64tilegx.sh (OUTPUT_FORMAT): Rename.
(BIG_OUTPUT_FORMAT): Define.
(LITTLE_OUTPUT_FORMAT): Define.
* emulparams/elf64tilegx_be.sh: New.

ld/testsuite/
* ld-tilegx/reloc-be.d: New.
* ld-tilegx/reloc-le.d: New.
* ld-tilegx/reloc.d: Delete.
* ld-tilegx/tilegx.exp: Test big and little endian.

12 years agoProperly create and use a bfd_arch_info_type for 32-bit tilegx.
Walter Lee [Sat, 25 Feb 2012 18:57:55 +0000 (18:57 +0000)]
Properly create and use a bfd_arch_info_type for 32-bit tilegx.

bfd/
* arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
* bfd-in2.h: Regenerate.
* cpu-tilegx.c (bfd_tilegx32_arch): define.
  (bfd_tilegx_arch): link to bfd_tilegx32_arch.

gas/
* tc-tilegx.c (md_begin): set architecture and machine.

12 years agogdb/doc/
Jan Kratochvil [Sat, 25 Feb 2012 13:54:25 +0000 (13:54 +0000)]
gdb/doc/
* gdb.texinfo (Startup): Add option -ex description to the option -x
description.

12 years ago*** empty log message ***
gdbadmin [Sat, 25 Feb 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * remote.c (remote_watchpoint_addr_within_range): New function.
Maciej W. Rozycki [Fri, 24 Feb 2012 23:48:37 +0000 (23:48 +0000)]
* remote.c (remote_watchpoint_addr_within_range): New function.
(init_remote_ops): Use it.

12 years ago * target.h (target_watchpoint_addr_within_range): Document macro.
Maciej W. Rozycki [Fri, 24 Feb 2012 23:46:48 +0000 (23:46 +0000)]
* target.h (target_watchpoint_addr_within_range): Document macro.

12 years agodaily update
Alan Modra [Fri, 24 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * signals.c (_rl_block_sigwinch, _rl_release_sigwinch): Add
Pierre Muller [Fri, 24 Feb 2012 17:14:43 +0000 (17:14 +0000)]
* signals.c (_rl_block_sigwinch, _rl_release_sigwinch): Add
conditional SIGWINCH around functions.

12 years ago2012-02-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 24 Feb 2012 16:47:56 +0000 (16:47 +0000)]
2012-02-24  Pedro Alves  <palves@redhat.com>

* stack.c (set_last_displayed_sal): Issue internal_error instead
of warning, and issue it after clearing the last displayed sal.

12 years ago2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
Pedro Alves [Fri, 24 Feb 2012 16:26:36 +0000 (16:26 +0000)]
2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Pedro Alves  <palves@redhat.com>

* breakpoint.c (until_break_command): Install breakpoints after
all frame manipulations.

12 years ago * linux-mips-low.c (mips_regmap): Correct the index of $f9.
Maciej W. Rozycki [Fri, 24 Feb 2012 16:16:02 +0000 (16:16 +0000)]
* linux-mips-low.c (mips_regmap): Correct the index of $f9.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 15:17:41 +0000 (15:17 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* gdb.base/cond-eval-mode.exp: New file.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery>
Luis Machado [Fri, 24 Feb 2012 15:15:56 +0000 (15:15 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery>

* server.c (handle_query): Advertise support for target-side
breakpoint condition evaluation.
(process_point_options): New function.
(process_serial_event): When inserting a breakpoint, check for
a target-side condition that should be evaluated.

* mem-break.c: Include regcache.h and ax.h.
(point_cond_list_t): New data structure.
(breakpoint) <cond_list>: New field.
(find_gdb_breakpoint_at): Make non-static.
(delete_gdb_breakpoint_at): Clear any target-side
conditions.
(clear_gdb_breakpoint_conditions): New function.
(add_condition_to_breakpoint): Likewise.
(add_breakpoint_condition): Likewise.
(gdb_condition_true_at_breakpoint): Likewise.
(gdb_breakpoint_here): Return result directly instead
of going through a local variable.

* mem-break.h (find_gdb_breakpoint_at): New prototype.
(clear_gdb_breakpoint_conditions): Likewise.
(add_breakpoint_condition): Likewise.
(gdb_condition_true_at_breakpoint): Likewise.

* linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
(need_step_over_p): Take target-side breakpoint condition into
consideration.

12 years agoAdd missing files from previous commit.
Luis Machado [Fri, 24 Feb 2012 15:14:47 +0000 (15:14 +0000)]
Add missing files from previous commit.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery>
Luis Machado [Fri, 24 Feb 2012 15:13:37 +0000 (15:13 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery>

* server.h: Include tracepoint.h.
(agent_mem_read, agent_get_trace_state_variable_value,
agent_set_trace_state_variable_value,
agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
get_set_tsv_func_addr): New prototypes.

* ax.h: New include file.
* ax.c: New source file.

* tracepoint.c: Include ax.h.
(gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
agent_expr, eval_result_type): Move to ax.h.
(parse_agent_expr): Rename to ...
(gdb_parse_agent_expr): ... this, make it non-static and move
to ax.h.
(unparse_agent_expr) Rename to ...
(gdb_unparse_agent_expr): ... this, make it non-static and move
to ax.h.
(eval_agent_expr): Rename to ...
(eval_tracepoint_agent_expr): ... this.
(agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
forward declarations.
(add_tracepoint_action): Call gdb_parse_agent_expr (...).
(agent_get_trace_state_variable_value): New function.
(agent_set_trace_state_variable_value): New function.
(cmd_qtdp): Call gdb_parse_agent_expr (...).
(response_tracepoint): Call gdb_unparse_agent_expr (...).
(do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
(condition_true_at_tracepoint): Likewise.
(parse_agent_expr): Rename to ...
(gdb_parse_agent_expr): ... this and move to ax.c.
(unparse_agent_expr): Rename to ...
(gdb_unparse_agent_expr): ... this and move to ax.c.
(gdb_agent_op_name): Move to ax.c.
(eval_agent_expr): Rename to ...
(gdb_eval_agent_expr): ... this, use regcache passed as parameter
and move to ax.c.
(eval_tracepoint_agent_expr): New function.
(agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
non-static.
(current_insn_ptr, emit_error, struct bytecode_address): Move to
ax.c.
(emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
(get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
(compile_bytecodes): Remove forward declaration.
(is_goto_target): Move to ax.c.
(compile_bytecodes): Move to ax.c and call
agent_get_trace_state_variable_value (...) and
agent_set_trace_state_variable_value (...).

* Makefile.in: Update ax.c and IPA dependencies.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 15:10:59 +0000 (15:10 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* remote.c (remote_supports_cond_breakpoints): New forward
declaration.
(remote_add_target_side_condition): New function.
(remote_insert_breakpoint): Add target-side breakpoint
conditional if supported.
(remote_insert_hw_breakpoint): Likewise.
(init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
hook.

* target.c (update_current_target): Inherit
to_supports_evaluation_of_breakpoint_conditions.
Default to_supports_evaluation_of_breakpoint_conditions to return_zero.

* target.h (struct target_ops)
<to_supports_evaluation_of_breakpoint_conditions>: New field.
(target_supports_evaluation_of_breakpoint_conditions): New #define.

* breakpoint.c (get_first_locp_gte_addr): New forward declaration.
(condition_evaluation_both, condition_evaluation_auto,
condition_evaluation_host, condition_evaluation_target,
condition_evaluation_enums, condition_evaluation_mode_1,
condition_evaluation_mode): New static globals.
(translate_condition_evaluation_mode): New function.
(breakpoint_condition_evaluation_mode): New function.
(gdb_evaluates_breakpoint_condition_p): New function.
(ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
(mark_breakpoint_modified): New function.
(mark_breakpoint_location_modified): New function.
(set_condition_evaluation_mode): New function.
(show_condition_evaluation_mode): New function.
(bp_location_compare_addrs): New function.
(get_first_location_gte_addr): New helper function.
(set_breakpoint_condition): Free condition bytecode if locations
has become unconditional.  Call mark_breakpoint_modified (...).
(condition_command): Call update_global_location_list (1) for
breakpoints.
(breakpoint_xfer_memory): Use is_breakpoint (...).
(is_breakpoint): New function.
(parse_cond_to_aexpr): New function.
(build_target_condition_list): New function.
(insert_bp_location): Handle target-side conditional
breakpoints and call build_target_condition_list (...).
(update_inserted_breakpoint_locations): New function.
(insert_breakpoint_locations): Handle target-side conditional
breakpoints.
(bpstat_check_breakpoint_conditions): Add comment.
(bp_condition_evaluator): New function.
(bp_location_condition_evaluator): New function.
(print_breakpoint_location): Print information on where the condition
will be evaluated.
(print_one_breakpoint_location): Likewise.
(init_bp_location): Call mark_breakpoint_location_modified (...) for
breakpoint location.
(force_breakpoint_reinsertion): New functions.
(update_global_location_list): Handle target-side breakpoint
conditions.
Reinsert locations that are already inserted if conditions have
changed.
(bp_location_dtor): Free agent expression bytecode.
(disable_breakpoint): Call mark_breakpoint_modified (...).
Call update_global_location_list (...) with parameter 1 for breakpoints.
(disable_command): Call mark_breakpoint_location_modified (...).
Call update_global_location_list (...) with parameter 1 for breakpoints.
(enable_breakpoint_disp): Call mark_breakpoint_modified (...).
(enable_command): mark_breakpoint_location_modified (...).
(_initialize_breakpoint): Update documentation and add
condition-evaluation breakpoint subcommand.

* breakpoint.h: Include ax.h.
(condition_list): New data structure.
(condition_status): New enum.
(bp_target_info) <cond_list>: New field.
(bp_location) <condition_changed, cond_bytecode>: New fields.
(is_breakpoint): New prototype.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 15:09:41 +0000 (15:09 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* remote.c (remote_state) <cond_breakpoints>: New field.
(PACKET_ConditionalBreakpoints): New enum.
(remote_cond_breakpoint_feature): New function.
(remote_protocol_features): Add new ConditionalBreakpoints entry.
(remote_supports_cond_breakpoints): New function.
(_initialize_remote): Add new packet configuration for
target-side conditional breakpoints.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 15:08:18 +0000 (15:08 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* gdb.texinfo (Setting Breakpoints): Mention and explain the
condition-evaluation breakpoint parameter.
Mention condition-evaluation mode being shown in "info break".
(Break Conditions): Add description for target-side
conditional breakpoints.
(Remote Configuration): Mention conditional-breakpoints-packet.
(Packets): Add cond-expr parameter to Z0/Z1 packets and explain
cond-expr.
(General Query Packets): Mention new ConditionalBreakpoint feature.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 15:04:58 +0000 (15:04 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* NEWS: Mention target-side conditional breakpoint support,
new condition-evaluation breakpoint subcommand and remote
packet extensions.

12 years ago2012-02-24 Luis Machado <lgustavo@codesourcery.com>
Luis Machado [Fri, 24 Feb 2012 14:59:35 +0000 (14:59 +0000)]
2012-02-24  Luis Machado  <lgustavo@codesourcery.com>

* breakpoint.c (bp_location_compare): Sort by pspace before sorting by
number.

12 years ago2012-02-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 24 Feb 2012 14:46:48 +0000 (14:46 +0000)]
2012-02-24  Pedro Alves  <palves@redhat.com>

* tracepoint.c (cmd_bigqtbuffer): Rename as ...
(cmd_bigqtbuffer_circular): ... this.  Only handle
'QTBuffer:circular:'.
(handle_tracepoint_general_set): Adjust.

12 years ago PR binutils/13710
Kai Tietz [Fri, 24 Feb 2012 14:20:19 +0000 (14:20 +0000)]
PR binutils/13710
* defparse.y (keyword_as_name): Disable LIBRARY
keyword.
* doc/binutils.texi: Document LIBRARY exception.

PR binutils/13710
* deffilep.y (keyword_as_name): Disable LIBRARY
keyword.

12 years ago2012-02-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 24 Feb 2012 14:09:08 +0000 (14:09 +0000)]
2012-02-24  Pedro Alves  <palves@redhat.com>

* gdb.base/break-interp.exp (test_ld): Use with_test_prefix.
(top level): Use with_test_prefix.

12 years ago2012-02-24 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 24 Feb 2012 14:06:29 +0000 (14:06 +0000)]
2012-02-24  Pedro Alves  <palves@redhat.com>

* gdb.threads/attach-into-signal.exp (corefunc): Use
with_test_prefix.

12 years ago * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
Thomas Schwinge [Fri, 24 Feb 2012 11:00:07 +0000 (11:00 +0000)]
* sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
(after_prologue): Remove.

12 years ago PR ld/13730
Nick Clifton [Fri, 24 Feb 2012 10:54:47 +0000 (10:54 +0000)]
PR ld/13730
* reloc.c (bfd_generic_get_relocated_section_contents): Issue an
error message instead of aborting, when an outofrange reloc is
encountered.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 24 Feb 2012 00:40:01 +0000 (00:40 +0000)]
gdb/testsuite/
Fix false FAILs on old CPUs without SSE.
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test):
Return untested for Illegal instruction.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 24 Feb 2012 00:05:56 +0000 (00:05 +0000)]
gdb/testsuite/
Fix false FAILs with glibc debug infos installed.
* gdb.reverse/solib-precsave.exp (set debug-file-directory): New test.
* gdb.reverse/solib-reverse.exp (set debug-file-directory): New test.

12 years ago*** empty log message ***
gdbadmin [Fri, 24 Feb 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 23 Feb 2012 23:37:59 +0000 (23:37 +0000)]
daily update

12 years ago * jv-valprint.c (java_val_print): Remove dead code.
Tom Tromey [Thu, 23 Feb 2012 20:55:47 +0000 (20:55 +0000)]
* jv-valprint.c (java_val_print): Remove dead code.

12 years agodeal with endian-ness in mach-o non-scattered relocs.
Iain Sandoe [Thu, 23 Feb 2012 16:29:56 +0000 (16:29 +0000)]
deal with endian-ness in mach-o non-scattered relocs.

BFD:

* mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
(bfd_mach_o_canonicalize_one_reloc):  Swap non-scattered reloc
bit-fields when target and host differ in endian-ness.  When
PAIRs are non-scattered find the 'symbol' from the preceding
reloc.  Add FIXME re. reloc symbols on section boundaries.
(bfd_mach_o_swap_out_non_scattered_reloc): New.
(bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.

include/mach-o:

* external.h: Add comments about relocations fields.  Add macros
for non-scattered relocations.  Move scattered relocation macros to here.
* reloc.h: Remove macros related to external representation of reloc fields.

12 years ago2012-02-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 23 Feb 2012 11:15:06 +0000 (11:15 +0000)]
2012-02-23  Tristan Gingold  <gingold@adacore.com>

       * ada-tasks.c (struct ada_tasks_inferior_data): Add
        known_tasks_element and known_tasks_length fields.
        (read_known_tasks_array): Change argument type.  Use pointer type
        and number of elements from DATA.  Adjust.
        (read_known_tasks_list): Likewise.
        (get_known_tasks_addr): Remove.
        (ada_set_current_inferior_known_tasks_addr): Renamed to ...
        (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
        type and array length.  Merge former get_known_tasks_addr code.

12 years agogdb/
Jan Kratochvil [Thu, 23 Feb 2012 08:15:04 +0000 (08:15 +0000)]
gdb/
PR backtrace/13716
* infcmd.c (finish_forward): New variable frame_id, initialize it, use
it after set_momentary_breakpoint.

12 years ago*** empty log message ***
gdbadmin [Thu, 23 Feb 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * gdb.texinfo (Blocks In Python): Clarify block iteration.
Tom Tromey [Wed, 22 Feb 2012 18:39:28 +0000 (18:39 +0000)]
* gdb.texinfo (Blocks In Python): Clarify block iteration.

12 years agoChangeLog
Sterling Augustine [Wed, 22 Feb 2012 18:20:38 +0000 (18:20 +0000)]
ChangeLog
2012-02-22  Sterling Augustine  <saugustine@google.com>

PR 13689:
* breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.

testsuite/ChangeLog
2012-02-22  Sterling Augustine  <saugustine@google.com>

* gdb.base/watchpoint.exp (test_constant_watchpoint): Add test for
constant with cast.

12 years agooops - omitted part of changelog entry with the previous delta.
Nick Clifton [Wed, 22 Feb 2012 16:59:52 +0000 (16:59 +0000)]
oops - omitted part of changelog entry with the previous delta.

12 years ago PR ld/13683
Nick Clifton [Wed, 22 Feb 2012 16:27:35 +0000 (16:27 +0000)]
PR ld/13683
* ldlang.c (lang_process): Rerun lang_do_assignments before
starting garbage collection.
* ldexp.c (fold_name): Generate a reloc for defined symbols
found without an associated output section during the mark phase.
(exp_fold_tree_1): Continue processing an expression, even if we
are unable to fold it, if we are in the first two evaluation
phases.
* ldexp.h (enum lang_phase_type): Add descriptions of the phases.

* ld-gc/pr13683.c: New test source file.
* ld-gc/pr13683.d: New test control and output file.
* ld-gc/gc.exp: Run the pr13683 test.

* ld-cris/tls-gc-68: Update expected symbol table dump.
* ld-cris/tls-gc-69: Likewise.
* ld-cris/tls-gc-70: Likewise.
* ld-cris/tls-gc-71: Likewise.
* ld-cris/tls-gc-75: Likewise.
* ld-cris/tls-gc-76.d: Likewise.
* ld-cris/tls-gc-79.d: Likewise.

12 years ago2012-02-22 Gary Benson <gbenson@redhat.com>
Gary Benson [Wed, 22 Feb 2012 14:55:25 +0000 (14:55 +0000)]
2012-02-22  Gary Benson  <gbenson@redhat.com>

* dwarf2read.c (dwarf2_read_index): Correct misspelling.
(find_slot_in_mapped_hash): Likewise.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 22 Feb 2012 00:07:43 +0000 (00:07 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.threads/watchpoint-fork.exp (test): Use with_test_prefix.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 22 Feb 2012 00:04:58 +0000 (00:04 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.base/return-nodebug.exp (do_test): Use with_test_prefix.

12 years ago*** empty log message ***
gdbadmin [Wed, 22 Feb 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 21 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 22:58:39 +0000 (22:58 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.trace/unavailable.exp (gdb_collect_globals_test): Use
with_test_prefix.

12 years ago2012-02-21 Joern Rennecke <joern.rennecke@embecosm.com>
Jeff Johnston [Tue, 21 Feb 2012 22:40:27 +0000 (22:40 +0000)]
2012-02-21  Joern Rennecke  <joern.rennecke@embecosm.com>

        * COPYING.NEWLIB: Add Adapteva notice.
        * COPYING.LIBGLOSS: Add Adapteva notice.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 22:01:10 +0000 (22:01 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>

* gdb.arch/altivec-abi.exp (altivec_abi_tests): Don't do
with_test_prefix here.
(top level): Do it here instead.  Remove `:' from the
with_test_prefix string.
* gdb.base/attach-pie-misread.exp: Remove the leading space the
the suffix `:' from the with_test_prefix prefix string.
* gdb.base/break-interp.exp: Ditto.
* gdb.base/catch-load.exp: Ditto.
* gdb.base/disp-step-syscall.exp: Ditto.
* gdb.base/jit-so.exp: Ditto.
* gdb.base/jit.exp: Ditto.
* gdb.base/sepdebug.exp: Ditto.
* gdb.base/solib-display.exp: Ditto.
* gdb.base/solib-overlap.exp: Ditto.
* gdb.base/watch-cond-infcall.exp: Ditto.
* gdb.base/watchpoint.exp: Ditto.
* gdb.dwarf2/dw2-noloc.exp: Ditto.
* gdb.mi/mi-watch.exp: Ditto.
* gdb.mi/mi2-watch.exp: Ditto.
* gdb.threads/non-ldr-exc-1.exp: Ditto.
* gdb.threads/non-ldr-exc-2.exp: Ditto.
* gdb.threads/non-ldr-exc-3.exp: Ditto.
* gdb.threads/non-ldr-exc-4.exp: Ditto.
* gdb.threads/watchpoint-fork.exp: Ditto.
* gdb.threads/watchthreads-reorder.exp: Ditto.
* gdb.trace/change-loc.exp: Ditto.
* gdb.trace/pending.exp: Ditto.
* gdb.trace/status-stop.exp: Ditto.
* gdb.trace/strace.exp: Ditto.
* gdb.trace/trace-break.exp: Ditto.
* gdb.trace/unavailable.exp: Ditto.
* lib/gdb.exp (with_test_prefix): Always prefix with space and
suffix with colon.  Adjust leading comments.

12 years agogdb/
Jan Kratochvil [Tue, 21 Feb 2012 22:00:32 +0000 (22:00 +0000)]
gdb/
PR build/13638
* configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
(MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
* configure: Regenerate.

12 years ago2012-02-21 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 21 Feb 2012 21:55:39 +0000 (21:55 +0000)]
2012-02-21  Pedro Alves  <palves@redhat.com>
    Tom Tromey  <tromey@redhat.com>

* lib/gdb.exp: Add description of test prefixes.
(with_test_prefix): New procedure.
* gdb.arch/altivec-abi.exp: Use with_test_prefix.
* gdb.base/attach-pie-misread.exp: Use with_test_prefix.
* gdb.base/break-interp.exp: Use with_test_prefix.  Use append
instead of lappend to append to pf_prefix.
* gdb.base/catch-load.exp: Use with_test_prefix.
* gdb.base/disp-step-syscall.exp: Use with_test_prefix.
* gdb.base/jit-so.exp: Use with_test_prefix.
* gdb.base/jit.exp: Use with_test_prefix.
* gdb.base/return-nodebug.exp (do_test): Use append instead of
lappend to append to pf_prefix.
* gdb.base/sepdebug.exp: Use with_test_prefix.
* gdb.base/solib-display.exp: Use with_test_prefix.
* gdb.base/solib-overlap.exp: Use with_test_prefix.
* gdb.base/watch-cond-infcall.exp: Use with_test_prefix.
* gdb.base/watchpoint.exp: Use with_test_prefix.
* gdb.dwarf2/dw2-noloc.exp: Use with_test_prefix.
* gdb.mi/mi-watch.exp: Use with_test_prefix.
* gdb.mi/mi2-watch.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-1.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-2.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-3.exp: Use with_test_prefix.
* gdb.threads/non-ldr-exc-4.exp: Use with_test_prefix.
* gdb.threads/watchpoint-fork.exp: Use with_test_prefix.  Use
append instead of lappend to append to pf_prefix.
* gdb.threads/watchthreads-reorder.exp: Use with_test_prefix.
* gdb.trace/change-loc.exp: Use with_test_prefix.
* gdb.trace/pending.exp: Use with_test_prefix.
* gdb.trace/status-stop.exp: Use with_test_prefix.
* gdb.trace/strace.exp: Use with_test_prefix.
* gdb.trace/trace-break.exp: Use with_test_prefix.
* gdb.trace/unavailable.exp: Use with_test_prefix.  Use append
instead of lappend to append to pf_prefix.

12 years ago2012-02-21 Tristan Gingold <gingold@adacore.com>
Pedro Alves [Tue, 21 Feb 2012 19:39:32 +0000 (19:39 +0000)]
2012-02-21  Tristan Gingold  <gingold@adacore.com>
    Pedro Alves  <palves@redhat.com>

* ia64-tdep.c: Do not include libunwind-ia64.h.
* libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
Include libunwind-ia64.h instead of libunwind.h.
* configure.ac (--with-libunwind, $enable_libunwind): Don't check
for libunwind.h existence.
* configure, config.in: Regenerate.

12 years agoAdd HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease
H.J. Lu [Tue, 21 Feb 2012 18:09:48 +0000 (18:09 +0000)]
Add HLEPrefixNone/HLEPrefixLock/HLEPrefixAny/HLEPrefixRelease

gas/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (check_hle): Use HLEPrefixNone, HLEPrefixLock,
HLEPrefixAny and HLEPrefixRelease.

opcodes/

2012-02-21  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (HLEPrefixNone): New.
(HLEPrefixLock): Likewise.
(HLEPrefixAny): Likewise.
(HLEPrefixRelease): Likewise.

12 years ago * gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.
Nick Clifton [Tue, 21 Feb 2012 16:55:31 +0000 (16:55 +0000)]
* gas/config/tc-arm.h (DOUBLESLASH_LINE_COMMENTS): Define.

12 years ago PR binutils/13682
Kai Tietz [Tue, 21 Feb 2012 16:10:12 +0000 (16:10 +0000)]
PR binutils/13682
* NEWS: Mention new feature.
* dlltool.c (i386_x64_dljtab): New stub-code for x64
delayed-load feature.
(i386_x64_trampoline): New trampoline-code for x64
delayed-load feature.
(make_one_lib_file): Add support for x64 delayed-load
feature.
(make_delay_head): Likewis

12 years agogdb/
Anton Gorenkov [Tue, 21 Feb 2012 13:48:59 +0000 (13:48 +0000)]
gdb/
* c-valprint.c (c_value_print): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
instead of value_rtti_target_type.
* typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
value_rtti_target_type.
* valops.c (value_ind): Extract function readjust_indirect_value_type.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here and make it indirect.  Update
function comment.
* value.c (readjust_indirect_value_type): New function.
(coerce_ref): Support for enclosing type setting for references
with readjust_indirect_value_type.
* value.h (readjust_value_type): New declaration.
(value_rtti_target_type): Rename to ...
(value_rtti_indirect_type): ... here.

12 years agoprovide a hook to allow checking errors just before we output the file.
Iain Sandoe [Tue, 21 Feb 2012 13:39:37 +0000 (13:39 +0000)]
provide a hook to allow checking errors just before we output the file.

gas:

* write.c (write_object_file): Add md_pre_output_hook.
* config/obj-macho.c (obj_mach_o_check_before_writing): New.
(obj_mach_o_pre_output_hook): New.
* config/obj-macho.h (md_pre_output_hook): Define.
(obj_mach_o_pre_output_hook): Declare.

12 years agogdb/
Anton Gorenkov [Tue, 21 Feb 2012 13:39:30 +0000 (13:39 +0000)]
gdb/
* MAINTAINERS (Write After Approval): Add myself to the list.

12 years ago2012-02-21 Tristan Gingold <gingold@adacore.com>
Iain Sandoe [Tue, 21 Feb 2012 09:13:02 +0000 (09:13 +0000)]
2012-02-21  Tristan Gingold  <gingold@adacore.com>

* config/tc-i386.h (OBJ_MACH_O): New section.
(TC_FORCE_RELOCATION): Use obj_mach_o_force_reloc.
(TC_FORCE_RELOCATION_SUB_SAME): New
(TC_FORCE_RELOCATION_SUB_LOCAL): New.
(TC_VALIDATE_FIX_SUB): New.
* frags.h (struct frag): OBJ_FRAG_TYPE, new field.
* symbols.c (colon): obj_frob_colon: New hook.
* write.c (write_object_file): md_pre_relax_hook, new
hook.
* config/obj-macho.c (obj_mach_o_frob_colon): New.
(obj_mach_o_frob_label): Record sub-section labels.
(obj_mach_o_frob_symbol): Rename from obj_macho_frob_symbol.
(obj_mach_o_set_subsections): New.
(obj_mach_o_pre_relax_hook): New.
(obj_mach_o_in_different_subsection): New.
(obj_mach_o_force_reloc_sub_same): New.
(obj_mach_o_force_reloc_sub_local): New.
(obj_mach_o_force_reloc): New.
* config/obj-macho.h (OBJ_SYMFIELD_TYPE): New.
(obj_frob_colon): New Define.
(obj_mach_o_frob_label): Renamed.
(obj_mach_o_frob_symbol): Renamed.
(OBJ_FRAG_TYPE): New.
(obj_mach_o_in_different_subsection, obj_mach_o_force_reloc,
 obj_mach_o_force_reloc_sub_same,
 obj_mach_o_force_reloc_sub_local): New declarations.

12 years ago * objfiles.c (add_to_objfile_sections): Remove outdated comments.
Doug Evans [Tue, 21 Feb 2012 06:55:36 +0000 (06:55 +0000)]
* objfiles.c (add_to_objfile_sections): Remove outdated comments.
Rename objfile_p_char parameter to objfilep.
(build_objfile_section_table): Result is now void.  All callers
updated.
* objfiles.h (struct objfile): Tweak comments, whitespace.
(build_objfile_section_table): Update.

12 years agofix email address in previous entry
Doug Evans [Tue, 21 Feb 2012 06:48:12 +0000 (06:48 +0000)]
fix email address in previous entry

12 years ago * elfread.c (elf_symfile_segments): Fix warning text.
Doug Evans [Tue, 21 Feb 2012 06:44:13 +0000 (06:44 +0000)]
* elfread.c (elf_symfile_segments): Fix warning text.

12 years ago*** empty log message ***
gdbadmin [Tue, 21 Feb 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 20 Feb 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/testsuite/
Jan Kratochvil [Mon, 20 Feb 2012 21:03:05 +0000 (21:03 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/inferior-died.c (main): Add return of 0.
* gdb.base/inferior-died.exp (continue): Fix expectation of
asynchronous events.
(p 1): New test.

12 years ago PR gdb/13498:
Tom Tromey [Mon, 20 Feb 2012 20:56:12 +0000 (20:56 +0000)]
PR gdb/13498:
* dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
particular set of file names once.
(dw2_map_symbol_filenames): Likewise.

12 years agogas:
Iain Sandoe [Mon, 20 Feb 2012 20:11:32 +0000 (20:11 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_is_frame_section): New.
(obj_mach_o_allow_local_subtract): New.
* config/obj-macho.h (md_allow_local_subtract): Define.
(obj_mach_o_allow_local_subtract): Declare.

12 years agogas:
Iain Sandoe [Mon, 20 Feb 2012 19:44:40 +0000 (19:44 +0000)]
gas:

* config/obj-macho.c (obj_mach_o_make_or_get_sect): In the absence of
canonical information, try to determine CODE and DEBUG section flags
from the mach-o section data.

12 years agogdb/
Jan Kratochvil [Mon, 20 Feb 2012 19:44:01 +0000 (19:44 +0000)]
gdb/
Code cleanup.
* main.c (write_files): Remove the declaration.
(external_editor_command): Move the declaration ...
[GDBTK] (external_editor_command): ... here.  Fix the comment.

12 years ago * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
Tom Tromey [Mon, 20 Feb 2012 19:24:39 +0000 (19:24 +0000)]
* dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
extraneous block.

12 years ago2012-02-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 20 Feb 2012 13:20:38 +0000 (13:20 +0000)]
2012-02-20  Pedro Alves  <palves@redhat.com>

* gdb.threads/attach-into-signal.exp (corefunc): Don't enable
lin-lwp output.  Set SIGALRM to stop.  Adjust tests to not rely on
gdb's internal debug output.  For the non-threaded case, look for
"Program received signal SIGLARM", for the threaded case, peek at
the thread's siginfo.

12 years ago2012-02-20 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 20 Feb 2012 13:18:36 +0000 (13:18 +0000)]
2012-02-20  Pedro Alves  <palves@redhat.com>

General cleanup, make output test messages unique, and build
different executable files for the non-threaded and threaded
cases.

* gdb.threads/attach-into-signal.exp (binfile, escapedbinfile):
Delete.
(executable_nothr, executable_thr): New globals.
(top level): Adjust to delete both executables.
(corefunc): New parameter $executable.  Set $pf_prefix instead of
hand writing a prefix in tests.  Issue a clean_restart and enable
lin-lwp debug output here.
(top level): Adjust.  Use build_executable.  Don't start gdb here,
and don't enable lin-lwp debug output here.
* gdb.threads/Makefile.in (EXECUTABLES): Adjust.

12 years ago * cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
Nick Clifton [Mon, 20 Feb 2012 10:25:02 +0000 (10:25 +0000)]
* cgen.c (gas_cgen_parse_operand): Do not set BSF_RELC flag on
local symbols.

12 years ago2012-02-20 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 20 Feb 2012 09:42:34 +0000 (09:42 +0000)]
2012-02-20  Tristan Gingold  <gingold@adacore.com>

* darwin-nat.h (enum darwin_msg_state): Add comments.