OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years ago * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
rth [Wed, 22 Jun 2011 16:18:24 +0000 (16:18 +0000)]
    * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
        TPREL in a PIE image.
        (alpha_dynamic_entries_for_reloc): Likewise.
        (elf64_alpha_relocate_section): Allow TPREL in PIE images.
        (elf64_alpha_relax_got_load): Likewise.

13 years agoFix races in gdb.mi/mi-var-display.exp.
mpolacek [Wed, 22 Jun 2011 16:12:45 +0000 (16:12 +0000)]
Fix races in gdb.mi/mi-var-display.exp.

13 years ago2011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
ramana [Wed, 22 Jun 2011 16:05:58 +0000 (16:05 +0000)]
2011-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>

       * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
       for PIE.

13 years agoFix races in gdb.mi/mi-nsitrall.exp.
mpolacek [Wed, 22 Jun 2011 15:41:46 +0000 (15:41 +0000)]
Fix races in gdb.mi/mi-nsitrall.exp.

13 years agoFix races in gdb.mi/mi-nsmoribund.exp.
mpolacek [Wed, 22 Jun 2011 15:38:00 +0000 (15:38 +0000)]
Fix races in gdb.mi/mi-nsmoribund.exp.

13 years agoFix races in gdb.mi/mi-return.exp.
mpolacek [Wed, 22 Jun 2011 15:32:16 +0000 (15:32 +0000)]
Fix races in gdb.mi/mi-return.exp.

13 years ago * dwarf2.h (enum dwarf_location_atom): Add DW_OP_GNU_parameter_ref.
jakub [Wed, 22 Jun 2011 15:03:18 +0000 (15:03 +0000)]
* dwarf2.h (enum dwarf_location_atom): Add DW_OP_GNU_parameter_ref.

* dwarf.c (decode_location_expression): For DW_OP_GNU_convert and
DW_OP_GNU_reinterpret, if uvalue is 0, don't add cu_offset.
Handle DW_OP_GNU_parameter_ref.

13 years ago * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
tromey [Wed, 22 Jun 2011 13:38:19 +0000 (13:38 +0000)]
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
argument of 0 specially.

13 years ago gdb/
qiyao [Wed, 22 Jun 2011 10:09:21 +0000 (10:09 +0000)]
gdb/
* infrun.c (handle_inferior_event): Remove write-only local variable
`sw_single_step_trap_p'.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
corinna [Wed, 22 Jun 2011 07:58:01 +0000 (07:58 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Create pty pipes
non-inheritable.

13 years ago * fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
corinna [Wed, 22 Jun 2011 07:37:47 +0000 (07:37 +0000)]
* fhandler_tty.cc (fhandler_pty_master::setup): Fix crash in debug
output.

13 years ago* ld/testsuite/ld-elf/elf.exp: Execute array_tests_pie tests on *-*-gnu*, too.
tschwinge [Wed, 22 Jun 2011 05:55:05 +0000 (05:55 +0000)]
* ld/testsuite/ld-elf/elf.exp: Execute array_tests_pie tests on *-*-gnu*, too.

13 years agosim: bfin: pass up result2/errcode with libgloss syscalls
vapier [Wed, 22 Jun 2011 04:21:29 +0000 (04:21 +0000)]
sim: bfin: pass up result2/errcode with libgloss syscalls

Now that the Blackfin libgloss code extracts the 2nd result and the
error code from the R1/R2 registers, have the sim fill them up.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: handle result2/errcode in sim syscalls
vapier [Wed, 22 Jun 2011 04:18:44 +0000 (04:18 +0000)]
libgloss: bfin: handle result2/errcode in sim syscalls

The sim passes back results via two values, and the error code via a 3rd.
make sure libgloss extracts all three so that things like errno work as
expected.  This fixes many gdb tests which look for this sort of thing.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: trim trailing whitespace
vapier [Wed, 22 Jun 2011 03:00:43 +0000 (03:00 +0000)]
libgloss: bfin: trim trailing whitespace

13 years ago*** empty log message ***
gdbadmin [Wed, 22 Jun 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoRe-indent prefix_table.
hjl [Tue, 21 Jun 2011 17:56:46 +0000 (17:56 +0000)]
Re-indent prefix_table.

2011-06-21  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (prefix_table): Re-indent PREFIX_VEX_0F388C and
PREFIX_VEX_0F388E.

13 years ago2011-06-21 Sameera Deshpande <sameera.deshpande@arm.com>
mgretton [Tue, 21 Jun 2011 15:34:25 +0000 (15:34 +0000)]
2011-06-21  Sameera Deshpande  <sameera.deshpande@arm.com>
* gas/config/tc-arm.c (vfp_conv): Add check on range of immediate operand
in vcvt instruction between floating-point and fixed-point.
(operand_parse_code): Add "OP_oI32z".
(parse_operands): OP_oI32z case added.
* gas/testsuite/gas/arm/vcvt-bad.d: New test.
* gas/testsuite/gas/arm/vcvt-bad.l: Likewise.
* gas/testsuite/gas/arm/vcvt-bad.s: Likewise.
* gas/testsuite/gas/arm/vcvt.d: Likewise.
* gas/testsuite/gas/arm/vcvt.s: Likewise.

13 years ago * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
amodra [Tue, 21 Jun 2011 14:55:25 +0000 (14:55 +0000)]
* elflink.c (_bfd_elf_merge_symbol): Allow type changes for
plugin symbols.  Fix segfault on linker scrip defined syms.

13 years agodaily update
amodra [Tue, 21 Jun 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Tue, 21 Jun 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * symtab.c (lookup_language_this): End loop if block is NULL.
tromey [Mon, 20 Jun 2011 17:53:28 +0000 (17:53 +0000)]
* symtab.c (lookup_language_this): End loop if block is NULL.

13 years agoAdjust x86 IFUNC PLT.
hjl [Mon, 20 Jun 2011 17:12:47 +0000 (17:12 +0000)]
Adjust x86 IFUNC PLT.

2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>

* ld-ifunc/ifunc-1-local-x86.d: Adjusted.
* ld-ifunc/ifunc-1-x86.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.

13 years ago * am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
nickc [Mon, 20 Jun 2011 16:50:51 +0000 (16:50 +0000)]
* am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.

13 years agoRevert x86_64-x32-* change.
hjl [Mon, 20 Jun 2011 13:23:21 +0000 (13:23 +0000)]
Revert x86_64-x32-* change.

gas/

2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt: Revert x32 change.

ld/

2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt: Revert x32 change.

ld/testsuite/

2011-06-20  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/eh1.d: Revert x32 change.
* ld-elf/eh2.d: Likewise.
* ld-elf/eh3.d: Likewise.
* ld-elf/eh4.d: Likewise.

13 years ago PR ld/12570
jakub [Mon, 20 Jun 2011 13:18:44 +0000 (13:18 +0000)]
PR ld/12570
include/
* bfdlink.h (struct bfd_link_info): Add no_ld_generated_unwind_info
option.
ld/
* emultempl/elf32.em (OPTION_LD_GENERATED_UNWIND_INFO,
OPTION_NO_LD_GENERATED_UNWIND_INFO): Define.
(gld${EMULATION_NAME}_handle_option): Handle
--ld-generated-unwind-info and --no-ld-generated-unwind-info.
* ld.texinfo (--ld-generated-unwind-info,
--no-ld-generated-unwind-info): Document.
bfd/
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
at all for linker created .eh_frame sections.
(_bfd_elf_discard_section_eh_frame): Handle linker created
.eh_frame sections with no relocations.
* elf64-x86-64.c: Include dwarf2.h.
(elf_x86_64_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
(elf_x86_64_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_x86_64_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_x86_64_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section.  Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
* elf32-i386.c: Include dwarf2.h.
(elf_i386_eh_frame_plt): New variable.
(PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
PLT_FDE_LEN_OFFSET): Define.
(struct elf_i386_link_hash_table): Add plt_eh_frame field.
(elf_i386_create_dynamic_sections): Create and fill in
.eh_frame section for .plt section.
(elf_i386_size_dynamic_sections): Write .plt section size
into .eh_frame FDE covering .plt section.
(elf_i386_finish_dynamic_sections): Write .plt section
start into .eh_frame FDE covering .plt section.  Call
_bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
(elf_backend_plt_alignment): Define to 4.
ld/testsuite/
* ld-x86-64/x86-64.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-x86-64/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment.
* ld-x86-64/tlsdesc.dd: Likewise.
* ld-x86-64/tlspic.dd: Likewise.
* ld-x86-64/tlsdesc.sd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsbindesc.sd: Likewise.
* ld-x86-64/tlsbin.td: Likewise.
* ld-x86-64/tlsdesc.pd: Likewise.
* ld-x86-64/tlsdesc.td: Likewise.
* ld-x86-64/tlsbindesc.dd: Likewise.
* ld-x86-64/tlsbin.dd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.sd: Likewise.
* ld-x86-64/tlsbindesc.td: Likewise.
* ld-x86-64/tlspic.td: Likewise.
* ld-x86-64/tlsbin.sd: Likewise.
* ld-x86-64/ilp32-4.d: Likewise.
* ld-x86-64/tlsgdesc.dd: Add --no-ld-generated-unwind-info to ld
comment.  Adjust.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgd6.dd: Adjust.
* ld-x86-64/tlsgd5.dd: Likewise.
* ld-i386/i386.exp: Link some testcases with
--no-ld-generated-unwind-info.
* ld-i386/tlsbin.rd: Add --no-ld-generated-unwind-info to ld
comment..
* ld-i386/tlsdesc.dd: Likewise.
* ld-i386/tlspic.dd: Likewise.
* ld-i386/tlsdesc.sd: Likewise.
* ld-i386/tlsgdesc.dd: Likewise.
* ld-i386/tlsnopic.sd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsbindesc.sd: Likewise.
* ld-i386/tlsbin.td: Likewise.
* ld-i386/tlsdesc.td: Likewise.
* ld-i386/tlsnopic.dd: Likewise.
* ld-i386/tlsbindesc.dd: Likewise.
* ld-i386/tlsbin.dd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlspic.sd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlsbindesc.td: Likewise.
* ld-i386/tlspic.td: Likewise.
* ld-i386/tlsbin.sd: Likewise.

13 years ago * doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
nickc [Mon, 20 Jun 2011 10:27:55 +0000 (10:27 +0000)]
* doc/Makefile.am: (CPU_DOCS): Add c-xstormy16.texi.
* doc/Makefile.in: Regenerate.
* doc/all.texi: Set XSTORMY16.
* doc/c-xstormy16.texi: New file.

13 years agodaily update
amodra [Mon, 20 Jun 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Mon, 20 Jun 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago PR gold/12880
ian [Sun, 19 Jun 2011 22:09:17 +0000 (22:09 +0000)]
PR gold/12880
* layout.cc (Layout::attach_allocated_section_to_segment): Add a
.interp section to a PT_INTERP segment even if we have seen a
--dynamic-linker option.  Don't do it if we have seen a PHDRS
clause in a linker script.
(Layout::finalize): Don't create a .interp section if we've
already create a PT_INTERP segment.
(Layout::create_interp): Always call choose_output_section (revert
patch of 2011-06-17).  Don't create PT_INTERP segment.
* script-sections.cc
(Script_sections::create_note_and_tls_segments): Add a .interp
section to a PT_INTERP segment even if we have seen a
--dynamic-linker option.

13 years agoFix misc x32 bugs.
hjl [Sun, 19 Jun 2011 21:22:10 +0000 (21:22 +0000)]
Fix misc x32 bugs.

bfd/

2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_backend_post_process_headers): Defined
for x32.

binutils/testsuite/

2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* binutils-all/elfedit-1.d: Updated for x32.

gas/

2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt: Support x32.

ld/

2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* configure.tgt: Support x32.

ld/testsuite/

2011-06-19  H.J. Lu  <hongjiu.lu@intel.com>

* ld-elf/eh1.d: Skip x32.
* ld-elf/eh2.d: Likewise.
* ld-elf/eh3.d: Likewise.
* ld-elf/eh4.d: Likewise.

* ld-elfvsb/elfvsb.exp: Only xfail 64bit x86_64-*-linux*.
* ld-shared/shared.exp: Likewise.

* ld-ifunc/ifunc-1-local-x86.d: Support x32.
* ld-ifunc/ifunc-1-x86.d: Likewise.
* ld-ifunc/ifunc-3a-x86.d: Likewise.
* ld-x86-64/pcrel16.d: Likewise.

* ld-x86-64/x86-64.exp (x86_64tests): Add missing -melf_x86_64.

13 years ago*** empty log message ***
gdbadmin [Sun, 19 Jun 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * layout.cc (Layout::finish_dynamic_section): Don't set DT_TEXTREL
ian [Sat, 18 Jun 2011 22:53:23 +0000 (22:53 +0000)]
* layout.cc (Layout::finish_dynamic_section): Don't set DT_TEXTREL
merely because a non-PT_LOAD segment has a dynamic reloc.

13 years ago * layout.cc (Layout::finish_dynamic_section): Don't create
ian [Sat, 18 Jun 2011 22:34:24 +0000 (22:34 +0000)]
* layout.cc (Layout::finish_dynamic_section): Don't create
DT_FLAGS entry if not needed.

13 years ago PR gold/12745
ian [Sat, 18 Jun 2011 22:29:14 +0000 (22:29 +0000)]
PR gold/12745
* layout.cc (Layout::layout_eh_frame): Correct handling of
writable .eh_frame section.

13 years agosim: bfin: set ASTAT AV/AVS when shifting accumulators overflow
vapier [Sat, 18 Jun 2011 22:03:09 +0000 (22:03 +0000)]
sim: bfin: set ASTAT AV/AVS when shifting accumulators overflow

The LSHIFT/ASHIFT insns that work with accumulators lacked AV/AVS
handling in the ASTAT register, so add it to match the hardware.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: do not touch ASTAT[V] when shifting accumulators
vapier [Sat, 18 Jun 2011 21:59:38 +0000 (21:59 +0000)]
sim: bfin: do not touch ASTAT[V] when shifting accumulators

If we're shifting accumulators, we don't want to touch the V bit in
ASTAT, so add size checks to the ashiftrt/lshiftrt helpers.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: do not extend accumulator in LSHIFT insns
vapier [Sat, 18 Jun 2011 21:58:08 +0000 (21:58 +0000)]
sim: bfin: do not extend accumulator in LSHIFT insns

The logical shift insn does not sign extend before shifting, so
we shouldn't either.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: tweak saturation handling with TFU/FU modes and MM bit
vapier [Sat, 18 Jun 2011 21:22:50 +0000 (21:22 +0000)]
sim: bfin: tweak saturation handling with TFU/FU modes and MM bit

This too should have been squashed into an earlier change.  It covers
a few more cases in the V/VS saturation patch when working with TFU
and FU modes of dsp insns.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: handle large shift values with accumulator shift insns
vapier [Sat, 18 Jun 2011 20:59:54 +0000 (20:59 +0000)]
sim: bfin: handle large shift values with accumulator shift insns

When the shift magnitude exceeds 32 bits, the values rotate around (since
the hardware is actually a barrel shifter).  So handle this edge case,
update the corresponding AV bit in ASTAT which was missing previously,
and tweak the AZ setting based on how the hardware behaves.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: handle odd shift values with shift insns
vapier [Sat, 18 Jun 2011 20:59:24 +0000 (20:59 +0000)]
sim: bfin: handle odd shift values with shift insns

The shift magnitude is a 5-bit signed value.  When it is between 0 and
15, then we do the requested shift, but when it is outside of that, we
have to do the opposite.

That means we flip between lshift and ashiftrt to match the hardware.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: add tests for recent dsp fixes
vapier [Sat, 18 Jun 2011 20:27:26 +0000 (20:27 +0000)]
sim: bfin: add tests for recent dsp fixes

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: fix M_IH saturation size
vapier [Sat, 18 Jun 2011 20:10:57 +0000 (20:10 +0000)]
sim: bfin: fix M_IH saturation size

This reverts the previous commit and does it right.  This change got
lost in the shuffle of patches I have pending.

Basically the logic is to change the 32bit saturation (and then masked
to 16bits) to a proper 16bit saturation.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: handle V/VS saturation in dsp mac insns
vapier [Sat, 18 Jun 2011 20:04:32 +0000 (20:04 +0000)]
sim: bfin: handle V/VS saturation in dsp mac insns

Some saturation cases with dsp mac insns were not setting the V flag.
So implement that part and split up the logic between the dual macs.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: handle the MM flag in M_IU/M_TFU modes with dsp insns
vapier [Sat, 18 Jun 2011 19:44:14 +0000 (19:44 +0000)]
sim: bfin: handle the MM flag in M_IU/M_TFU modes with dsp insns

Our handling of the M_IU/M_TFU modes are missing signed saturation when
the MM flag is set, so add it to match the hardware behavior.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: fix sign extension in dsp insns with MM flag
vapier [Sat, 18 Jun 2011 19:42:54 +0000 (19:42 +0000)]
sim: bfin: fix sign extension in dsp insns with MM flag

After testing the hardware with all the different dsp flags, the MM flag
triggers sign extension in all modes.  So drop the limited use of it, and
the local custom helper that was also extending unsigned values.  We also
can see that the flag checks in the mult/mac insns have the same behavior
with sign extending, so add a helper func to keep the logic the same in
both places.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: fix dsp insns IH saturation/rounding behavior
vapier [Sat, 18 Jun 2011 19:24:57 +0000 (19:24 +0000)]
sim: bfin: fix dsp insns IH saturation/rounding behavior

When using the IH modifier, we need to first saturate the value before
rounding it, and then further saturate it a bit more.  This makes the
sim match the hardware behavior with these insns.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: fix inverted changelog entry
vapier [Sat, 18 Jun 2011 18:09:35 +0000 (18:09 +0000)]
sim: bfin: fix inverted changelog entry

13 years agosim: bfin: fix accumulator edge case saturation
vapier [Sat, 18 Jun 2011 17:27:01 +0000 (17:27 +0000)]
sim: bfin: fix accumulator edge case saturation

When the accumulator saturates, it needs to be greater than, but not
equal to, the largest unsigned value as this is what the hardware does.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agosim: bfin: use freeargv for freeing argvs
vapier [Sat, 18 Jun 2011 17:20:38 +0000 (17:20 +0000)]
sim: bfin: use freeargv for freeing argvs

Since the argv array was allocated with dupargv, it needs to be freed
with freeargv to avoid leaks.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * path.cc (normalize_win32_path): Skip all slashes after recognizing
corinna [Sat, 18 Jun 2011 08:36:56 +0000 (08:36 +0000)]
* path.cc (normalize_win32_path): Skip all slashes after recognizing
a ".." path component.  Add comment.

13 years agoopcodes: blackfin: fix style
vapier [Sat, 18 Jun 2011 06:43:57 +0000 (06:43 +0000)]
opcodes: blackfin: fix style

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago*** empty log message ***
gdbadmin [Sat, 18 Jun 2011 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 18 Jun 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago * valops.c (value_of_this): Use lookup_language_this.
tromey [Fri, 17 Jun 2011 20:46:46 +0000 (20:46 +0000)]
* valops.c (value_of_this): Use lookup_language_this.
* symtab.h (lookup_language_this): Declare.
* symtab.c (lookup_language_this): New function.
(lookup_symbol_aux): Use lookup_language_this.
* ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.

13 years ago * value.h (value_of_this): Update.
tromey [Fri, 17 Jun 2011 20:35:09 +0000 (20:35 +0000)]
* value.h (value_of_this): Update.
(value_of_local): Remove.
* valops.c (value_of_this): Rename from value_of_local.  Change
parameters.
* p-exp.y (exp): Update.
(variable): Likewise.
* eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.

13 years ago * valops.c (value_of_local): Complain if NAME is NULL.
tromey [Fri, 17 Jun 2011 20:24:21 +0000 (20:24 +0000)]
* valops.c (value_of_local): Complain if NAME is NULL.
* std-operator.def (OP_OBJC_SELF): Remove.
* parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
* objc-exp.y (name_not_typename): Use OP_THIS.
* expprint.c (print_subexp_standard) <OP_THIS>: Print language's
name for "this".
<OP_OBJC_SELF>: Remove.
* eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.

13 years ago* Makefile.am (MAINTAINERCLEANFILES): Move s390-opc.tab ...
schwab [Fri, 17 Jun 2011 15:06:46 +0000 (15:06 +0000)]
* Makefile.am (MAINTAINERCLEANFILES): Move s390-opc.tab ...
(MOSTLYCLEANFILES): ... here.
* Makefile.in: Regenerate.

13 years ago PR gold/12893
ian [Fri, 17 Jun 2011 13:31:33 +0000 (13:31 +0000)]
PR gold/12893
* resolve.cc (Symbol_table::resolve): Don't give an error if a
symbol is redefined with the exact same object and value.

13 years ago PR gold/12880
ian [Fri, 17 Jun 2011 13:00:01 +0000 (13:00 +0000)]
PR gold/12880
* layout.h (class Layout): Add interp_segment_ field.
* layout.cc (Layout::Layout): Initialize interp_segment_ field.
(Layout::attach_allocated_section_to_segment): If making shared
library, put .interp section in PT_INTERP segment.
(Layout::finalize): Also call create_interp if -dynamic-linker
option was used.
(Layout::create_interp): Assert that there is no PT_INTERP
segment.  If not using a SECTIONS clause, use make_output_section.
(Layout::make_output_segment): Set interp_segment_ if PT_INTERP.
* script-sections.cc
(Script_sections::create_note_and_tls_segments): If making shared
library, put .interp section in PT_INTERP segment.

13 years ago * object.cc (Sized_relobj_file::do_layout): Keep warning sections
ian [Fri, 17 Jun 2011 11:20:42 +0000 (11:20 +0000)]
* object.cc (Sized_relobj_file::do_layout): Keep warning sections
when making a shared library.

13 years ago * x86_64.cc (check_non_pic): Add gsym parameter. Change all
ian [Fri, 17 Jun 2011 11:15:33 +0000 (11:15 +0000)]
* x86_64.cc (check_non_pic): Add gsym parameter.  Change all
callers.  Don't issue warning about PC32 against locally defined
symbol.

13 years ago * fhandler.cc (fhandler_base::open): Drop local create_options variable.
corinna [Fri, 17 Jun 2011 11:04:41 +0000 (11:04 +0000)]
* fhandler.cc (fhandler_base::open): Drop local create_options variable.
Use options member instead.
* fhandler.h (class fhandler_base): Change type of access member to
ACCESS_MASK.  Change get_access and set_access methods accordingly.
Add options member.  Add get_options and set_options methods.
(class fhandler_disk_file): Add prw_handle.
(fhandler_disk_file::prw_open): Declare.
(fhandler_disk_file::close): Declare.
(fhandler_disk_file::dup): Declare.
(fhandler_disk_file::fixup_after_fork): Declare.
* fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file):
Initialize prw_handle to NULL.
(fhandler_disk_file::close): Close prw_handle.
(fhandler_disk_file::dup): New method.
(fhandler_disk_file::fixup_after_fork): Set prw_handle to NULL since
prw_handle is not inherited.
(fhandler_disk_file::prw_open): New method.  Add long comment to
explain current behaviour.
(fhandler_disk_file::pread): Revert previous change.  Change to use
prw_handle if possible.
(fhandler_disk_file::pwrite): Change to use prw_handle if possible.

13 years ago * dcrt0.cc (dll_crt0_1): Call strace.dll_info after call to pinfo_init.
corinna [Fri, 17 Jun 2011 08:30:25 +0000 (08:30 +0000)]
* dcrt0.cc (dll_crt0_1): Call strace.dll_info after call to pinfo_init.
* strace.cc (strace::hello): Drop printing DLL information here since
application info is not always available at this point.
(strace::dll_info): New method to print DLL info.
* include/sys/strace.h (strace::dll_info): Declare.

13 years ago * dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
corinna [Fri, 17 Jun 2011 08:27:30 +0000 (08:27 +0000)]
* dtable.cc (handle_to_fn): Accommodate name change of pty named pipes,
otherwise ptys are not recognized.

13 years ago*** empty log message ***
gdbadmin [Fri, 17 Jun 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 17 Jun 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to
cgf [Thu, 16 Jun 2011 23:00:00 +0000 (23:00 +0000)]
* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to
reflect existence.
* fhandler.h (fhandler_pty_common::fhandler_pty_common): Ditto.
* pinfo.cc (_pinfo::set_ctty): Output device numbers in hex.

13 years agoSuport x32 gcore.
hjl [Thu, 16 Jun 2011 22:08:10 +0000 (22:08 +0000)]
Suport x32 gcore.

2011-06-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if
CORE_HEADER is defined.
(elf_x86_64_write_core_note): New.
(elf_backend_write_core_note): Likewise.

* hosts/x86-64linux.h (uint64_t): New.
(user_regsx32_struct): Likewise.
(elf_gregx32_t): Likewise.
(ELF_NGREGX32): Likewise.
(elf_gregsetx32_t): Likewise.
(elf_prstatusx32): Likewise.
(prstatusx32_t): Likewise.
(user_fpregs32_struct): Removed.
(user_fpxregs32_struct): Likewise.
(user32): Likewise.
(elf_fpregset32_t): Likewise.
(elf_fpxregset32_t): Likewise.
(prgregset32_t): Likewise.
(prfpregset32_t): Likewise.

13 years ago * symtab.cc (Warnings::issue_warning): Don't warn if relocation
ian [Thu, 16 Jun 2011 17:55:48 +0000 (17:55 +0000)]
* symtab.cc (Warnings::issue_warning): Don't warn if relocation
occurs in same object.

13 years agoSupport x32 core dump.
hjl [Thu, 16 Jun 2011 17:42:59 +0000 (17:42 +0000)]
Support x32 core dump.

2011-06-16  H.J. Lu  <hongjiu.lu@intel.com>

* elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32.
(elf_x86_64_grok_psinfo): Likewise.

13 years ago * dwarf-mode.el (dwarf-do-insert-substructure): Call
tromey [Thu, 16 Jun 2011 16:39:23 +0000 (16:39 +0000)]
* dwarf-mode.el (dwarf-do-insert-substructure): Call
expand-file-name.
(dwarf-do-refresh): Likewise.

13 years ago * elf.c (elf_find_function): Fail if not provided with a symbol
nickc [Thu, 16 Jun 2011 12:34:18 +0000 (12:34 +0000)]
* elf.c (elf_find_function): Fail if not provided with a symbol
table.

13 years ago2011-06-16 Tristan Gingold <gingold@adacore.com>
gingold [Thu, 16 Jun 2011 05:54:07 +0000 (05:54 +0000)]
2011-06-16  Tristan Gingold  <gingold@adacore.com>

* python/py-events.h (gdb_py_events): Make it extern.
* python/py-evtregistry.c (gdb_py_events): Declare.

13 years ago2011-06-16 Hui Zhu <teawater@gmail.com>
teawater [Thu, 16 Jun 2011 02:19:43 +0000 (02:19 +0000)]
2011-06-16  Hui Zhu  <teawater@gmail.com>

* remote.c (remote_trace_set_readonly_regions): Add check for
remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
output warning.

13 years ago * ld-elfvers/vers2.ver: Don't assume any particular index for
amodra [Thu, 16 Jun 2011 00:42:05 +0000 (00:42 +0000)]
* ld-elfvers/vers2.ver: Don't assume any particular index for
version reference.
* ld-elfvers/vers3.ver: Likewise.
* ld-elfvers/vers19.ver: Likewise.
* ld-elfvers/vers22.ver: Likewise.
* ld-elfvers/vers27d4.ver: Likewise.
* ld-elfvers/vers28c.ver: Likewise.

13 years agodaily update
amodra [Thu, 16 Jun 2011 00:00:06 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Thu, 16 Jun 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago* errno.cc (EIO): Lowercase "o" representative string.
cgf [Wed, 15 Jun 2011 17:36:10 +0000 (17:36 +0000)]
* errno.cc (EIO): Lowercase "o" representative string.

13 years ago * arm-linux-tdep.c: Include "auxv.h".
uweigand [Wed, 15 Jun 2011 16:39:23 +0000 (16:39 +0000)]
* arm-linux-tdep.c: Include "auxv.h".
(AT_HWCAP): Define.
(ARM_LINUX_SIZEOF_VFP): Define.
(arm_linux_supply_vfp): New function.
(arm_linux_collect_vfp): Likewise.
(arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
(arm_linux_fpa_regset_sections): New variable.
(arm_linux_vfp_regset_sections): Likewise.
(arm_linux_core_read_description): New function.
(arm_linux_init_abi): Install arm_linux_core_read_description and
arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
appropriate for the architecture.
* arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
(tdesc_arm_with_m): Declare.
(tdesc_arm_with_iwmmxt): Likewise.
(tdesc_arm_with_vfpv2): Likewise.
(tdesc_arm_with_vfpv3): Likewise.
(tdesc_arm_with_neon): Likewise.
* arm-linux-nat.c: Move features/*.c includes ...
* arm-tdep.c: ... here.
* arm-linux-nat.c (arm_linux_read_description): Move initializing
target description data structures ...
* arm-tdep.c (_initialize_arm_tdep): ... here.
* arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
HWCAP_VFPv3D16): Move definitions ...
* arm-linux-tdep.h: ... here.

13 years agoinclude/elf/
uweigand [Wed, 15 Jun 2011 16:36:52 +0000 (16:36 +0000)]
include/elf/
* common.h (NT_ARM_VFP): Define.

bfd/
* elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
* elf.c (elfcore_grok_arm_vfp): New function.
(elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
(elfcore_write_arm_vfp): New function.
(elfcore_write_register_note): Call it to handle .reg-arm-vfp.

binutils/
* readelf.c (get_note_type): Handle NT_ARM_VFP.

13 years ago * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
rth [Wed, 15 Jun 2011 15:04:11 +0000 (15:04 +0000)]
* elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
elf64_alpha_merge_ind_symbols; adjust for the generic interface.
(elf64_alpha_always_size_sections): Don't call
elf64_alpha_merge_ind_symbols.
(elf_backend_copy_indirect_symbol): New.

13 years ago2011-06-15 Hui Zhu <teawater@gmail.com>
teawater [Wed, 15 Jun 2011 14:40:21 +0000 (14:40 +0000)]
2011-06-15  Hui Zhu  <teawater@gmail.com>

* remote.c (remote_trace_set_readonly_regions): Add a check for
target_buf_size.

13 years ago * cygwinenv.sgml (using-cygwinenv): Move envcache, strip_title, title,
corinna [Wed, 15 Jun 2011 11:41:26 +0000 (11:41 +0000)]
* cygwinenv.sgml (using-cygwinenv): Move envcache, strip_title, title,
tty, and upcaseenv options to list of obsolete options.
* effectively.sgml (using-console): Remove section.
* new-features.sgml (ov-new1.7.10): Document removed CYGWIN options.
Document removed tty mode.

13 years ago * NEWS: Mention addition of TILEPRO and TIKE-Gx support.
nickc [Wed, 15 Jun 2011 09:12:07 +0000 (09:12 +0000)]
* NEWS: Mention addition of TILEPRO and TIKE-Gx support.

13 years agodaily update
amodra [Wed, 15 Jun 2011 00:00:05 +0000 (00:00 +0000)]
daily update

13 years ago*** empty log message ***
gdbadmin [Wed, 15 Jun 2011 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago* cygheap.h (init_cygheap::ctty_on_hold): Remove conditionalized variable.
cgf [Tue, 14 Jun 2011 21:48:42 +0000 (21:48 +0000)]
* cygheap.h (init_cygheap::ctty_on_hold): Remove conditionalized variable.
* dcrt0.cc (do_exit): Remove code which handled CYGWIN=tty style ttys.
* devices.in: Remove "/dev/ttym".
* dtable.cc: Rename tty to pty where appropriate throughout.
(dtable::stdio_init): Use new t->is_console rather than using now-deleted hwnd
element in tty structure.
(dtable::init_std_file_from_handle): Remove code which handled CYGWIN=tty style
ttys.
(fh_alloc): Ditto.
* fhandler.h: Rename tty to pty where appropriate.
(fhandler_pty_common): Delete output_done_event, ioctl_request_event,
ioctl_done_event.
(fhandler_pty_master::setup): Delete argument.
(fhandler_tty_master): Delete.
(fhandler_union): Delete __tty_master.
* fhandler_console.cc (use_tty): Delete.
(fhandler_console::get_tty_stuff): Set is_console to true rather than calling
sethwnd.
(fhandler_console::send_winch_maybe): Remove CYGWIN=tty considerations.
(fhandler_console::input_tcsetattr): Ditto.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use new t->is_console
rather than using now-deleted hwnd element in tty structure.
* fhandler_tty.cc: Rename tty to pty where appropriate throughout.
(tty_master): Delete.
(process_input): Ditto.
(process_output): Ditto.
(process_ioctl): Ditto.
(fhandler_tty_master::*): Ditto.
(fhandler_pty_master::process_slave_output): Remove CYGWIN=tty considerations.
(fhandler_pty_slave::open): Ditto for *_done_event.
(fhandler_pty_slave::write): Ditto.
(fhandler_pty_slave::ioctl): Ditto.
(fhandler_pty_slave::fch_open_handles): Ditto.
(fhandler_pty_slave::fch_set_sd): Ditto.
(fhandler_pty_slave::fch_close_handles): Ditto.
(fhandler_pty_common::close): Ditto.
(fhandler_pty_master::setup): Ditto.  Remove now-unneeded ispty parameter.
(fhandler_pty_master::open): Reflect argument removal for tty::allocate.
* select.cc: Rename tty to pty where appropriate throughout.
* sigproc.cc (proc_subproc): Remove CYGWIN=tty considerations.
* tty.cc (ttyslot): Accommodate CYGWIN=tty removal.
(tty_list::init_session): Ditto.
(tty_list::attach): Ditto.
(tty::create_master): Delete.
(tty_list::terminate): Ditto.
(tty_list::allocate): Delete "with_console" parameter.  Remove CYGWIN=tty
considerations.
(tty::init): Set is_console = false.  Use 'false' for was_opened since it is a
boolean.
* tty.h (*_{DONE,REQUEST}_EVENT): Delete.
(tty_min::is_console): Declare new field which replaces hwnd.
(tty_min::gethwnd): Delete.
(tty_min::sethwnd): Ditto.
(tty_list::allocate): Delete parameter.
(tty_list::terminate): Delete declaration.
* include/sys/cygwin.h (PID_USETTY): Redefine to PID_UNUSED1 and change comment
to reflect its availability.

13 years ago * coffread.c (coffread_objfile): Rename from current_objfile.
tromey [Tue, 14 Jun 2011 18:53:13 +0000 (18:53 +0000)]
* coffread.c (coffread_objfile): Rename from current_objfile.
* dbxread.c (dbxread_objfile): Rename from current_objfile.
* mdebugread.c (mdebugread_objfile): Rename from current_objfile.

13 years ago * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
tromey [Tue, 14 Jun 2011 18:44:39 +0000 (18:44 +0000)]
* jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
(class_symtab): Remove.
(jv_dynamics_progspace_key): New global.
(jv_per_objfile_free): Reset program space data.  Update assert.
Don't clear globals.
(get_dynamics_objfile): Use and set program space data.
(get_java_class_symtab): Use get_dynamics_objfile.
(add_class_symbol): Likewise.
(java_link_class_type): Likewise.
(java_object_type, jv_clear_object_type, set_java_object_type):
Remove.
(get_java_object_type): Update.  Don't cache result.
(is_object_type): Don't call set_java_object_type.
(_initialize_java_language): Don't set jv_type_objfile_data_key;
initialize jv_dynamics_progspace_key.

13 years ago * symtab.h (current_objfile): Don't declare.
tromey [Tue, 14 Jun 2011 16:49:40 +0000 (16:49 +0000)]
* symtab.h (current_objfile): Don't declare.
* objfiles.h (current_objfile): Don't declare.
* objfiles.c (current_objfile): Remove.
* mdebugread.c (current_objfile): New file-scope global.
* dbxread.c (current_objfile): New file-scope global.
* coffread.c (current_objfile): New file-scope global.

13 years ago* mingw: Force use of bash.
cgf [Tue, 14 Jun 2011 15:04:04 +0000 (15:04 +0000)]
* mingw: Force use of bash.

13 years ago * libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
corinna [Tue, 14 Jun 2011 14:31:59 +0000 (14:31 +0000)]
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
to siprintf.
* libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
* libc/time/tzset_r.c: Define sscanf to siscanf.

13 years agolibgloss:
jsm28 [Tue, 14 Jun 2011 13:40:45 +0000 (13:40 +0000)]
libgloss:
* configure.in: Don't handle strongarm, ep9312 and xscale target
names.
* configure: Regenerate.
* libnosys/configure.in: Don't handle strongarm and thumb target
names.
* libnosys/configure: Regenerate.

newlib:
* configure.host: Don't handle ep9312, strongarm, xscale and thumb
target names.
* libc/machine/configure.in: Don't handle xscale target names.
* libc/machine/configure: Regenerate.

13 years ago PR ld/12887
amodra [Tue, 14 Jun 2011 12:57:17 +0000 (12:57 +0000)]
PR ld/12887
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
before doing anything.
(_bfd_elf_discard_section_eh_frame): Likewise.

13 years agogas/
gingold [Tue, 14 Jun 2011 09:03:50 +0000 (09:03 +0000)]
gas/
2011-06-14  Tristan Gingold  <gingold@adacore.com>

* config/tc-ppc.h (struct ppc_tc_sy): Complete comment on within.
(tc_new_dot_label): Define.
(ppc_new_dot_label): Declare.
* config/tc-ppc.c (ppc_frob_label): Set within target field.
(ppc_fix_adjustable): Use this field to adjust the reloc.
(ppc_new_dot_label): New function.

gas/testsuite/
2011-06-14  Tristan Gingold  <gingold@adacore.com>

* gas/ppc/test1xcoff32.d: Adjust for csect anchor.

13 years ago gdb/testsuite/
qiyao [Tue, 14 Jun 2011 08:03:32 +0000 (08:03 +0000)]
gdb/testsuite/
* gdb.threads/ia64-sigill.exp: Remove "set debug lin-lwp 1".

13 years ago * libc/time/tzset_r.c (tzset_r): Correct behavior for changing from
corinna [Tue, 14 Jun 2011 07:50:40 +0000 (07:50 +0000)]
* libc/time/tzset_r.c (tzset_r):  Correct behavior for changing from
non-GMT to GMT, when un-setting TZ.  Set _timezone and _daylight even
if no DST is given in TZ.

13 years ago * Makefile.in: Regenerate.
amodra [Tue, 14 Jun 2011 05:11:51 +0000 (05:11 +0000)]
* Makefile.in: Regenerate.

13 years ago * po/POTFILES.in: Regenerate.
amodra [Tue, 14 Jun 2011 05:11:14 +0000 (05:11 +0000)]
* po/POTFILES.in: Regenerate.