external/binutils.git
12 years ago* elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
Sean Keys [Mon, 29 Oct 2012 21:28:09 +0000 (21:28 +0000)]
* elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
R_XGATE_16

12 years ago * sb.c (sb_check): Use __builtin_clzll when size_t is not the
Alan Modra [Mon, 29 Oct 2012 10:17:52 +0000 (10:17 +0000)]
* sb.c (sb_check): Use __builtin_clzll when size_t is not the
same size as long.

12 years agobinutils/
Alan Modra [Mon, 29 Oct 2012 10:09:34 +0000 (10:09 +0000)]
binutils/
* dlltool.c (INIT_SEC_DATA): Move.
(secdata <DLLTOOL_PPC>): Use here too.
binutils/testsuite/
* binutils-all/copy-3.d: Exclude all cygwin and mingw targets,
and rs6000.
gas/
* config/tc-ppc.c (ppc_znop): Remove unused vars.
ld/
* configure.tgt (powerpcle-pe,winnt,cygwin): Add deffilep.o
and pe-dll.o.

12 years ago * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in
Alan Modra [Mon, 29 Oct 2012 09:51:10 +0000 (09:51 +0000)]
* elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in
R_PPC_VLE_LO16A, R_PPC_VLE_HI16A, R_PPC_VLE_HA16A,
R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_HI16A,
R_PPC_VLE_SDAREL_HA16A reloc howtos.

12 years ago * ld-powerpc/powerpc.exp: Modify emulation option passed to ld
Alan Modra [Mon, 29 Oct 2012 09:25:53 +0000 (09:25 +0000)]
* ld-powerpc/powerpc.exp: Modify emulation option passed to ld
when little-endian.
* ld-powerpc/apuinfo-nul.rd: Update for le output.
* ld-powerpc/apuinfo.rd: Likewise.
* ld-powerpc/plt1.d: Likewise.
* ld-powerpc/relax.d: Likewise.
* ld-powerpc/relaxr.d: Likewise.
* ld-powerpc/sdadyn.d: Likewise.
* ld-powerpc/tls.d: Likewise.
* ld-powerpc/tls.g: Likewise.
* ld-powerpc/tls.t: Likewise.
* ld-powerpc/tls32.d: Likewise.
* ld-powerpc/tls32.g: Likewise.
* ld-powerpc/tls32.t: Likewise.
* ld-powerpc/tlsexe.d: Likewise.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexe.t: Likewise.
* ld-powerpc/tlsexe32.d: Likewise.
* ld-powerpc/tlsexe32.g: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsexe32.t: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsexetoc.t: Likewise.
* ld-powerpc/tlsmark.d: Likewise.
* ld-powerpc/tlsmark32.d: Likewise.
* ld-powerpc/tlsopt1.d: Likewise.
* ld-powerpc/tlsopt1_32.d: Likewise.
* ld-powerpc/tlsopt2.d: Likewise.
* ld-powerpc/tlsopt2_32.d: Likewise.
* ld-powerpc/tlsopt3.d: Likewise.
* ld-powerpc/tlsopt3_32.d: Likewise.
* ld-powerpc/tlsopt4.d: Likewise.
* ld-powerpc/tlsopt4_32.d: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlsso.t: Likewise.
* ld-powerpc/tlsso32.d: Likewise.
* ld-powerpc/tlsso32.g: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlsso32.t: Likewise.
* ld-powerpc/tlstoc.d: Likewise.
* ld-powerpc/tlstoc.g: Likewise.
* ld-powerpc/tlstoc.t: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
* ld-powerpc/tlstocso.g: Likewise.
* ld-powerpc/tlstocso.t: Likewise.
* ld-powerpc/tocopt.out: Likewise.

12 years ago * gas/cfi/cfi.exp: Remove redundant ppc test. Exclude
Alan Modra [Mon, 29 Oct 2012 09:25:15 +0000 (09:25 +0000)]
* gas/cfi/cfi.exp: Remove redundant ppc test.  Exclude
powerpc-pe targets from cfi-common-6 test.
* gas/cfi/cfi-ppc-1.d: Use objdump to handle pe.
* gas/cfi/cfi-ppc-1.s: Don't use .type and .size.
* gas/ppc/ppc.exp: Exclude various tests for powerpc-pe.  Exclude
vle tests for le targets.
* gas/ppc/476.d, * gas/ppc/476.s: Update for le output.  Use .text
rather than section directive with quotes.
* gas/ppc/a2.d, * gas/ppc/a2.s: Likewise.
* gas/ppc/altivec.d, * gas/ppc/altivec.s: Likewise.
* gas/ppc/altivec2.d: Likewise.
* gas/ppc/altivec_and_spe.d: Likewise.
* gas/ppc/astest.d: Likewise.
* gas/ppc/astest2.d: Likewise.
* gas/ppc/astest2_64.d: Likewise.
* gas/ppc/astest64.d: Likewise.
* gas/ppc/booke.d, * gas/ppc/booke.s: Likewise.
* gas/ppc/cell.d, * gas/ppc/cell.s: Likewise.
* gas/ppc/common.d, * gas/ppc/common.s: Likewise.
* gas/ppc/e500.d, * gas/ppc/e500.s: Likewise.
* gas/ppc/e500mc.d, * gas/ppc/e500mc.s: Likewise.
* gas/ppc/e500mc64_nop.d, * gas/ppc/e500mc64_nop.s: Likewise.
* gas/ppc/e5500_nop.d, * gas/ppc/e5500_nop.s: Likewise.
* gas/ppc/e6500.d, * gas/ppc/e6500.s: Likewise.
* gas/ppc/e6500_nop.d, * gas/ppc/e6500_nop.s: Likewise.
* gas/ppc/machine.d: Likewise.
* gas/ppc/power4.d, * gas/ppc/power4.s: Likewise.
* gas/ppc/power4_32.d, * gas/ppc/power4_32.s: Likewise.
* gas/ppc/power6.d, * gas/ppc/power6.s: Likewise.
* gas/ppc/power7.d, * gas/ppc/power7.s: Likewise.
* gas/ppc/ppc750ps.d, * gas/ppc/ppc750ps.s: Likewise.
* gas/ppc/regnames.d: Likewise.
* gas/ppc/simpshft.d: Likewise.
* gas/ppc/test1elf32.d: Likewise.
* gas/ppc/test1elf64.d: Likewise.
* gas/ppc/titan.d, * gas/ppc/titan.s: Likewise.
* gas/ppc/vle-reloc.s: Likewise.
* gas/ppc/vle-simple-1.s: Likewise.
* gas/ppc/vle-simple-2.s: Likewise.
* gas/ppc/vle-simple-3.s: Likewise.
* gas/ppc/vle-simple-4.s: Likewise.
* gas/ppc/vle-simple-5.s: Likewise.
* gas/ppc/vle-simple-6.s: Likewise.
* gas/ppc/vle.s: Likewise.
* gas/ppc/vsx.d, * gas/ppc/vsx.s: Likewise.

12 years ago*** empty log message ***
gdbadmin [Mon, 29 Oct 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago*** empty log message ***
gdbadmin [Sun, 28 Oct 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 27 Oct 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogas/testsuite:
Iain Sandoe [Sat, 27 Oct 2012 07:55:57 +0000 (07:55 +0000)]
gas/testsuite:
2012-10-27  James Lemke  <jwlemke@codesourcery.com>

* gas/m68k/all.exp: Exclude pr11676 for fido-*-*.

12 years ago*** empty log message ***
gdbadmin [Sat, 27 Oct 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago2012-10-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 26 Oct 2012 19:34:09 +0000 (19:34 +0000)]
2012-10-26  Pedro Alves  <palves@redhat.com>

* amd64-tdep.c (amd64_relocate_instruction): Use
store_unsigned_integer instead of memcpy.
* i386-tdep.c (i386_relocate_instruction): Ditto.

12 years ago2012-10-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 26 Oct 2012 18:48:43 +0000 (18:48 +0000)]
2012-10-26  Pedro Alves  <palves@redhat.com>

* infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
Remove comment.

12 years ago2012-10-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 26 Oct 2012 18:47:33 +0000 (18:47 +0000)]
2012-10-26  Pedro Alves  <palves@redhat.com>

* infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
Remove comment.

12 years ago * gdb.texinfo (General Query Packets): Use @itemx for QAgent.
Tom Tromey [Fri, 26 Oct 2012 18:18:55 +0000 (18:18 +0000)]
* gdb.texinfo (General Query Packets): Use @itemx for QAgent.

12 years ago2012-10-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 26 Oct 2012 16:52:38 +0000 (16:52 +0000)]
2012-10-26  Pedro Alves  <palves@redhat.com>

* target.c (target_waitstatus_to_string): Handle
TARGET_WAITKIND_VFORK_DONE.

12 years ago2012-10-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 26 Oct 2012 16:47:17 +0000 (16:47 +0000)]
2012-10-26  Pedro Alves  <palves@redhat.com>

* infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".

12 years ago * po/hr.po: New Croation translation.
Nick Clifton [Fri, 26 Oct 2012 15:27:18 +0000 (15:27 +0000)]
* po/hr.po: New Croation translation.
* configure.in (ALL_LINGUAS): Add hr.
* configure: Regenerate.

* po/uk.po: Updated Ukranian translation.

12 years ago * dwarf2.h (DW_AT_APPLE_optimized, DW_AT_APPLE_flags)
Nick Clifton [Fri, 26 Oct 2012 15:07:21 +0000 (15:07 +0000)]
* dwarf2.h (DW_AT_APPLE_optimized, DW_AT_APPLE_flags)
(DW_AT_APPLE_isa, DW_AT_APPLE_block)
(DW_AT_APPLE_major_runtime_vers, DW_AT_APPLE_runtime_class)
(DW_AT_APPLE_omit_frame_ptr, DW_AT_APPLE_property_name)
(DW_AT_APPLE_property_getter, DW_AT_APPLE_property_setter)
(DW_AT_APPLE_property_attribute, DW_AT_APPLE_objc_complete_type)
(DW_AT_APPLE_property, DW_OP_GNU_entry_value): New macros.

12 years ago2012-10-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 26 Oct 2012 09:41:55 +0000 (09:41 +0000)]
2012-10-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-mkopc.c: Accept empty lines in s390-opc.txt.
* s390-opc.c: Add M_20OPT field. New instruction formats RRF_RURR2 and RRF_RMRR.
* s390-opc.txt: Add new instructions.  New instruction type for lptea.

2012-10-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/testsuite/gas/s390/zarch-z10.d: Refreshed.
* gas/testsuite/gas/s390/zarch-z10.s: Refreshed.
* gas/testsuite/gas/s390/zarch-z196.d: Refreshed.
* gas/testsuite/gas/s390/zarch-z196.s: Refreshed.
* gas/testsuite/gas/s390/zarch-z9-109.d: Refreshed.
* gas/testsuite/gas/s390/zarch-z990.d: Refreshed.
* gas/testsuite/gas/s390/zarch-z990.s: Refreshed.
* gas/testsuite/gas/s390/zarch-zEC12.d: Refreshed.
* gas/testsuite/gas/s390/zarch-zEC12.s: Refreshed.

12 years agogas/testsuite:
Christian Groessler [Fri, 26 Oct 2012 08:14:07 +0000 (08:14 +0000)]
gas/testsuite:

        * gas/z8k/z8k.exp: Run translate-ops test.
        * gas/z8k/translate-ops.s: New file.
        * gas/z8k/translate-ops.d: New file.

opcodes:

        * z8kgen.c (struct op): Fix encoding for translate opcodes (trdb,
        trdrb, trib, trirb, trtdb, trtdrb, trtib, trtirb).  Remove
        non-existing opcode trtrb.
        * z8k-opc.h: Regenerate.

12 years ago PR target/14758
Alan Modra [Fri, 26 Oct 2012 03:40:37 +0000 (03:40 +0000)]
PR target/14758
bfd/
* elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS
bfd_reloc values.  Map to corresponding D-form relocs.
(is_insn_ds_form, is_insn_qs_form): New functions.
(ppc_elf_relocate_section): Validate insn with DS-form or DQ-form
fields using D-form reloc.
gas/
* config/tc-ppc.c (ppc_setup_opcodes): Fix comment.
(md_assemble): Translate to _DS relocs for ppc32 as well as ppc64.
(tc_gen_reloc): Handle _DS relocs in ppc32 mode.

12 years ago * gas/ppc/power4.s: Fix invalid lq offsets.
Alan Modra [Fri, 26 Oct 2012 03:39:32 +0000 (03:39 +0000)]
* gas/ppc/power4.s: Fix invalid lq offsets.
* gas/ppc/power4.d: Update.

12 years ago * ppc-opc (powerpc_opcodes): "lfdp" and "stfdp" use DS offset.
Alan Modra [Fri, 26 Oct 2012 03:38:20 +0000 (03:38 +0000)]
* ppc-opc (powerpc_opcodes): "lfdp" and "stfdp" use DS offset.

12 years agoAdd final_layout_sequence.txt to MOSTLYCLEANFILES
H.J. Lu [Fri, 26 Oct 2012 00:50:05 +0000 (00:50 +0000)]
Add final_layout_sequence.txt to MOSTLYCLEANFILES

* testsuite/Makefile.am (MOSTLYCLEANFILES): Add
final_layout_sequence.txt.
* testsuite/Makefile.in: Regenerated.

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

12 years agodaily update
Alan Modra [Thu, 25 Oct 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agoStrip out -Wp,-D_FORTIFY_SOURCE= for gold tests
H.J. Lu [Thu, 25 Oct 2012 22:50:54 +0000 (22:50 +0000)]
Strip out -Wp,-D_FORTIFY_SOURCE= for gold tests

* testsuite/Makefile.am (COMPILE1): New variable. Renamed from
COMPILE generated by automake.
(LINK1): Likewise.
(CXXCOMPILE1): Likewise.
(CXXLINK1): Likewise.
(COMPILE): Strip out -Wp,-D_FORTIFY_SOURCE= from COMPILE1.
(LINK): Likewise.
(CXXCOMPILE): Likewise.
(CXXLINK): Likewise.
* testsuite/Makefile.in: Regenerated.

12 years agoIssue a fatal error on bad fwrite return
H.J. Lu [Thu, 25 Oct 2012 20:51:32 +0000 (20:51 +0000)]
Issue a fatal error on bad fwrite return

* dwp.cc (Dwo_file::record_target_info): Issue a fatal error
on bad fwrite return.

12 years agoUse section_offset_type in remap_str_offset
H.J. Lu [Thu, 25 Oct 2012 20:50:24 +0000 (20:50 +0000)]
Use section_offset_type in remap_str_offset

* dwp.cc (Dwo_file::remap_str_offset): Use section_offset_type
on val.

12 years ago * gdb.texinfo (General Query Packets): Use @itemx.
Tom Tromey [Thu, 25 Oct 2012 16:16:06 +0000 (16:16 +0000)]
* gdb.texinfo (General Query Packets): Use @itemx.

12 years agogdb/testsuite:
Yao Qi [Thu, 25 Oct 2012 14:56:09 +0000 (14:56 +0000)]
gdb/testsuite:

* gdb.trace/ftrace.exp (test_fast_tracepoints): Use
'setup_kfail' instead of 'setup_kfail_for_target'.
* gdb.base/varargs.exp: Likewise.
* lib/gdb.exp (setup_kfail_for_target): Remove.

12 years agoReplace _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot
H.J. Lu [Thu, 25 Oct 2012 13:36:08 +0000 (13:36 +0000)]
Replace _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot

* elf32-i386.c (elf_i386_size_dynamic_sections): Replace
_GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot.
* elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.

12 years agogdb.base/ldbl_e308.exp: Do not allow "inf" in value output.
Joel Brobecker [Thu, 25 Oct 2012 11:16:18 +0000 (11:16 +0000)]
gdb.base/ldbl_e308.exp: Do not allow "inf" in value output.

That was an attempt at handling the targets where sizeof(long double)
is less than 8, but the way it was implement allows the bug that
this testcase verifies to come back without being noticed.

gdb/testsuite/ChangeLog:

        * gdb.base/ldbl_e308.exp: Remove "inf" from possible expected
        output for "print inp" test.

12 years ago* gdb.base/varargs.exp: PR gdb/12790 is now fixed.
Mark Kettenis [Thu, 25 Oct 2012 08:59:07 +0000 (08:59 +0000)]
* gdb.base/varargs.exp: PR gdb/12790 is now fixed.

12 years ago* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.
Mark Kettenis [Thu, 25 Oct 2012 08:00:58 +0000 (08:00 +0000)]
* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.

12 years agoRemove address check if HIDDEN_UNDEF_TEST is defined
H.J. Lu [Thu, 25 Oct 2012 03:59:37 +0000 (03:59 +0000)]
Remove address check if HIDDEN_UNDEF_TEST is defined

* ld-elfvsb/main.c (main_visibility_checkcom): Remove address
check for visibility_def if HIDDEN_UNDEF_TEST is defined.
(main_visibility_checkweak): Remove address check for
visibility_func if HIDDEN_UNDEF_TEST is defined.

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

12 years ago * ld-scripts/empty-aligned.d: Revert last change. Allow more
Alan Modra [Wed, 24 Oct 2012 23:22:48 +0000 (23:22 +0000)]
* ld-scripts/empty-aligned.d: Revert last change.  Allow more
than one header, just not two PT_LOAD.
* ld-elf/stack.s: Use .long 0 rather than nops.

12 years agodaily update
Alan Modra [Wed, 24 Oct 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agogas/testsuite/
Roland McGrath [Wed, 24 Oct 2012 21:41:33 +0000 (21:41 +0000)]
gas/testsuite/
* gas/i386/rex.s: Add test of REX prefix before fsave (i.e. fwait).
* gas/i386/rex.d: Update.

opcodes/
* i386-dis.c (ckprefix): When bailing out for fwait with prefixes,
set rex_used to rex.

12 years agoDon't decompress the section in bfd_is_section_compressed
H.J. Lu [Wed, 24 Oct 2012 21:36:50 +0000 (21:36 +0000)]
Don't decompress the section in bfd_is_section_compressed

* compress.c (bfd_is_section_compressed): Don't decompress the
section.

12 years agoAdd comments in ravenscar_sparc_fetch_registers.
Joel Brobecker [Wed, 24 Oct 2012 19:08:16 +0000 (19:08 +0000)]
Add comments in ravenscar_sparc_fetch_registers.

gdb/ChangeLog:

* ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
Add comments.

12 years agoremote packet sent after Ravenscar inferior exited
Joel Brobecker [Wed, 24 Oct 2012 18:19:50 +0000 (18:19 +0000)]
remote packet sent after Ravenscar inferior exited

When debugging a program using the Ravenscar profile, the debugger
sometimes tries to send the following packet to the remote after
the inferior exited.

     (gdb) c
     Continuing.
     [...]
     Sending packet: $vCont;c:1#13...Ack
     Packet received: W00
     Sending packet: $Hg1#e0...putpkt: write failed: Broken pipe.

As the inferior exited, the remote has already disconnected, and thus
the operation fails.

The reason why GDB sends the package is because the ravenscar-thread
module tries to updates the list of threads.  But this doesn't make
sense, since the program has exited.  This patch fixes it.

gdb/ChangeLog:

        * ravenscar-thread.c (ravenscar_wait): Only update the list
        of threads and inferior_ptid if the inferior is still alive.

12 years ago[Ada] use lbasename when testing if file is part of Ada runtime.
Joel Brobecker [Wed, 24 Oct 2012 18:17:22 +0000 (18:17 +0000)]
[Ada] use lbasename when testing if file is part of Ada runtime.

We use a list of regular expressions to match a symtab filenames
against the names of the files in the Ada runtime.  These regular
expressions do assume that the filename is a basename, however.
So make sure to evaluate these regular expressions against
the symtab's filename.

Without this patch, we run into problems when the Ada runtime was built
using a project file (through gprbuild).

gdb/ChangeLog:

        * ada-lang.c (is_known_support_routine): Use lbasename when
        matching the symtab's filename against
        known_runtime_file_name_patterns.

12 years ago[Ada] Allow assignment to wide string.
Joel Brobecker [Wed, 24 Oct 2012 18:14:23 +0000 (18:14 +0000)]
[Ada] Allow assignment to wide string.

Given the following variable declaration...

   Www : Wide_String := "12345";

... this patch allows the following assignment to work:

   (gdb) set variable www := "qwert"

Without this patch, the debugger rejects the assignment because
the size of the array elements are different:

   (gdb) set www := "asdfg"
   Incompatible types in assignment

(on the lhs, we have an array of 2-bytes elements, and on the rhs,
we have a standard 1-byte string).

gdb/ChangeLog:

        * ada-lang.c (ada_same_array_size_p): New function.
        (ada_promote_array_of_integrals): New function.
        (coerce_for_assign): Add handling of arrays where the elements
        are integrals of a smaller size than the size of the target
        array element type.

gdb/testsuite/ChangeLog:

        * gdb.ada/set_wstr: New testcase.

12 years agooff-by-one max exponent computation in convert_doublest_to_floatformat
Joel Brobecker [Wed, 24 Oct 2012 18:11:21 +0000 (18:11 +0000)]
off-by-one max exponent computation in convert_doublest_to_floatformat

Assuming the following variable definition:

    long double inp = 2.0;

On platforms where "long double" is a double precision IEEE flaoting
point, GDB currently behaves as follow:

    (gdb) set variable inp = 1.6e+308l
    (gdb) p inp
    $2 = inf   <<<<---- !!!!

Instead, the value of "inp" should be printed as:

    (gdb) p inp
    $1 = 1.6e+308

The problem is due to a small error in the comparison of the exponent
versus the maximum value this exponent can take, causing us to think
that the value was too big to fit. But it isn't.

gdb/ChangeLog:

        * doublest.c (convert_doublest_to_floatformat): Fix comparison
        against maximum exponent value.

gdb/testsuite/ChangeLog:

        * gdb.base/ldbl_e308.c, gdb.base/ldbl_e308.exp: New files.

12 years ago[Ada] Skip unwind-seh.c when searching first "user" frame
Joel Brobecker [Wed, 24 Oct 2012 18:08:05 +0000 (18:08 +0000)]
[Ada] Skip unwind-seh.c when searching first "user" frame

On x86_64-windows with GCC 4.7 (using native SEH info), the debugger
behaves as follow:

    (gdb) catch exception unhandled
    Catchpoint 1: unhandled Ada exceptions
    (gdb) run
    Starting program: C:\[...]\b.exe

    Catchpoint 1, unhandled CONSTRAINT_ERROR at 0x000000000040cc57 in _GCC_specific_handler ([...]) at ../../../src/libgcc/unwind-seh.c:289
    [...]

This is after compiler the following code:

    procedure B is
    begin
       raise Constraint_Error;
    end B;

... using the following command:

    % gnatmake -g b

When hitting the exception catchpoint, it should have gone up the stack
all the way until finding the frame corresponding to procedure B.
But if stopped short because unwind-seh.c is compiled with debugging
information, and the debugger is also able to locate that source file.

To prevent this from happening, this patch adds unwind-seh.c to the list
of files that should be ignored, regardless of other factors.

gdb/ChangeLog:

        * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
        "unwind-seh.c".

12 years ago[Ada] Pointers to unconstrained arrays inside variant record.
Joel Brobecker [Wed, 24 Oct 2012 18:06:10 +0000 (18:06 +0000)]
[Ada] Pointers to unconstrained arrays inside variant record.

gdb/ChangeLog:

        * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
        strip typedef layer when computing the fixed type's field type,
        only when computing its size.

gdb/testsuite/ChangeLog:

        * gdb.ada/unc_arr_ptr_in_var_rec: New testcase.

12 years ago* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.
Mark Kettenis [Wed, 24 Oct 2012 14:59:24 +0000 (14:59 +0000)]
* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.

12 years agoPR gdb/12783
Mark Kettenis [Wed, 24 Oct 2012 14:56:01 +0000 (14:56 +0000)]
PR gdb/12783
* i386-tdep.c (i386_return_value): Handle complex double and long
double.

12 years agogdb/testsuite/
Jan Kratochvil [Wed, 24 Oct 2012 13:45:51 +0000 (13:45 +0000)]
gdb/testsuite/
* gdb.base/callfuncs.exp (do_function_calls): Fix
setup_kfail_for_target for -m32 mode.

12 years ago * configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
Corinna Vinschen [Wed, 24 Oct 2012 13:41:36 +0000 (13:41 +0000)]
* configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building
against Mingw64 w32api.
* configure: Regenerate.

12 years ago[Windows] run program with space in path to exe.
Joel Brobecker [Wed, 24 Oct 2012 13:40:16 +0000 (13:40 +0000)]
[Windows] run program with space in path to exe.

The following works...

    % gdb c:\path to exe\foo.exe
    (gdb) start

... unless a file or directory called "c:\path" or "c:\path to" exist.
This is what happens in the latter case:

    (gdb) start
    [...]
    Error creating process C:\path to exe\foo.exe (error 193).

This is because we are calling CreateProcess (et al) without specifying
the lpApplicationName, so Windows determines the name of the executable
using the second argument, which is the entire command line.  This
command line is a space-separated list of tokens, so the space in
the path to the executable which potentially creates an ambiguity.
The ambiguity is automatically resolved unless we're in the situation
above.

The solution, as suggested by the MSDN documentation for CreateProcess
is to quote the executable name.

gdb/ChangeLog:

        * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
        New local variable args_len.
        Quote the name of the executable when computing the command line.

12 years agoDon't set bfdtest1 with findfile
H.J. Lu [Wed, 24 Oct 2012 12:28:54 +0000 (12:28 +0000)]
Don't set bfdtest1 with findfile

* binutils-all/ar.exp (bfdtest1): Remove findfile.

12 years agoMove disable_target_specific_optimizations to bfd_link_info
H.J. Lu [Wed, 24 Oct 2012 11:09:28 +0000 (11:09 +0000)]
Move disable_target_specific_optimizations to bfd_link_info

include/

* bfdlink.h (bfd_link_info): Add
disable_target_specific_optimizations.

ld/

* ld.h (command_line): Remove
disable_target_specific_optimizations.
(RELAXATION_DISABLED_BY_DEFAULT): Removed.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.

* ldmain.c (main): Updated.

* ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.

12 years agogold/
Cary Coutant [Wed, 24 Oct 2012 02:32:15 +0000 (02:32 +0000)]
gold/
* testsuite/Makefile.am (TEST_OBJCOPY): New macro.
* testsuite/Makefile.in: Regenerate.
* testsuite/dwp_test.h: New source file.
* testsuite/dwp_test_1.cc: New source file.
* testsuite/dwp_test_1.s: New source file.
* testsuite/dwp_test_1.sh: New source file.
* testsuite/dwp_test_1b.cc: New source file.
* testsuite/dwp_test_1b.s: New source file.
* testsuite/dwp_test_2.cc: New source file.
* testsuite/dwp_test_2.s: New source file.
* testsuite/dwp_test_2.sh: New source file.
* testsuite/dwp_test_main.cc: New source file.
* testsuite/dwp_test_main.s: New source file.

12 years agogold/
Cary Coutant [Wed, 24 Oct 2012 02:26:39 +0000 (02:26 +0000)]
gold/
* dwp.h: New header file.
* dwp.cc: New source file.
* gold.h: Move shared declarations to system.h.
* system.h: New header file.
* Makefile.am: Add dwp.
* Makefile.in: Regenerate.

12 years agobinutils/
Cary Coutant [Wed, 24 Oct 2012 01:59:39 +0000 (01:59 +0000)]
binutils/
* dwarf.c (do_debug_addr, do_debug_cu_index): New global flags.
(load_debug_info): Fix typo.
(cu_tu_indexes_read, shndx_pool, shndx_pool_size, shndx_pool_used):
New global variables.
(prealloc_cu_tu_list, add_shndx_to_cu_tu_entry, end_cu_tu_entry)
(process_cu_tu_index, load_cu_tu_indexes, find_cu_tu_set)
(display_cu_index): New functions.
(dwarf_select_sections_by_names): Add "debug_addr", "cu_index".
Sort entries alphabetically.
(dwarf_select_sections_all): Set do_debug_addr, do_debug_cu_index.
(debug_displays): Add .debug_cu_index, .debug_tu_index.
Clean up formatting.
* dwarf.h (dwarf_section_display_enum): Add dwp_cu_index,
dwp_tu_index.
(do_debug_addr, do_debug_cu_index): New global flags.
(find_cu_tu_set): New function declaration.
* objdump.c (usage): Add --dwarf=addr, --dwarf=cu_index.
* readelf.c (find_section_in_set): New function.
(usage): Add --debug-dump=addr, --debug_dump=cu_index.
(process_section_headers): Check do_debug_addr and do_debug_cu_index.
(section_subset): New global variable.
(load_debug_section): Restrict search to section subset.
(display_debug_section): Add section index as paramter.  Select subset
of sections when dumping a .dwp file.  Update caller.

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

12 years ago PR bootstrap/54820
Eric Botcazou [Tue, 23 Oct 2012 23:02:33 +0000 (23:02 +0000)]
PR bootstrap/54820
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
* configure: Regenerate.

12 years agodaily update
Alan Modra [Tue, 23 Oct 2012 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agogold/
Cary Coutant [Tue, 23 Oct 2012 21:41:37 +0000 (21:41 +0000)]
gold/
* dwarf_reader.cc (Dwarf_ranges_table::read_range_list): Call
Dwarf_info_reader::read_from_pointer.
(Dwarf_pubnames_table::read_header): Likewise.
(Dwarf_pubnames_table::next_name): Likewise.
(Dwarf_die::read_attributes): Likewise.
(Dwarf_die::skip_attributes): Likewise.
(Dwarf_info_reader::read_from_pointer): New function template.
* dwarf_reader.h (Dwarf_ranges_table): Add dwinfo_.
(Dwarf_pubnames_table): Likewise.
(Dwarf_info_reader::read_from_pointer): New function template.
* gdb-index.cc (Gdb_index_info_reader): Adjust call to
Dwarf_pubnames_table ctor.

12 years agogold/
Cary Coutant [Tue, 23 Oct 2012 21:37:26 +0000 (21:37 +0000)]
gold/
* dwarf_reader.cc (Dwarf_info_reader::do_parse): Use stored
abbrev_shndx.
* dwarf_reader.h (Dwarf_info_reader::Dwarf_info_reader): Initialize
abbrev_shndx_.
(Dwarf_info_reader::set_abbrev_shndx): New method.
(Dwarf_info_reader::abbrev_shndx_): New data member.

12 years agogold/
Cary Coutant [Tue, 23 Oct 2012 21:34:58 +0000 (21:34 +0000)]
gold/
* dwarf_reader.cc (make_elf_reloc_mapper): Check size and endianness
from object, not parameters.
(Dwarf_info_reader::parse): Likewise.
* object.h (Relobj::elfsize, Relobj::is_big_endian): New methods.
(Relobj::do_elfsize, Relobj::do_is_big_endian): New methods.
(Sized_relobj::do_elfsize, Sized_relobj::do_is_big_endian): New
methods.

12 years agogold/
Cary Coutant [Tue, 23 Oct 2012 21:29:20 +0000 (21:29 +0000)]
gold/
* fileread.cc (Input_file::Input_file): New constructor.
* fileread.h (class Input_file): Add new constructor.

12 years ago* gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800
Mark Kettenis [Tue, 23 Oct 2012 18:25:25 +0000 (18:25 +0000)]
* gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800
are now fixed.

12 years agoPR gdb/12796
Mark Kettenis [Tue, 23 Oct 2012 18:16:55 +0000 (18:16 +0000)]
PR gdb/12796
PR gdb/12798
PR gdb/12800
* amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
AMD64_FTAG_REGNUM.
* amd64-tdep.c (amd64_classify): Classify complex types.
(amd64_return_value): Handle the COMPLEX_X87 class.

12 years agobinutils
Tom Tromey [Tue, 23 Oct 2012 17:46:44 +0000 (17:46 +0000)]
binutils
* readelf.c (get_note_type): Handle NT_SIGINFO, NT_FILE.
(print_core_note): New function.
(process_note): Call it.
include/common/elf
* common.h (NT_SIGINFO, NT_FILE): New defines.

12 years agogdb/testsuite:
Yao Qi [Tue, 23 Oct 2012 15:49:11 +0000 (15:49 +0000)]
gdb/testsuite:

* gdb.base/info-os.exp: Resume the inferior until it exits.

12 years agoChange target-wide-charset to UTF-16 on ppc-aix.
Joel Brobecker [Tue, 23 Oct 2012 15:37:21 +0000 (15:37 +0000)]
Change target-wide-charset to UTF-16 on ppc-aix.

On ppc-aix, type wchar_t is 2 bytes long, so override the default
target-wide-charset (UTF-32) with UTF-16. This allows us to print
wide characters correctly.

gdb/ChangeLog:

        * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
        (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.

12 years agoSet default target-wide-charset setting to "UTF-16" for x86_64-windows.
Joel Brobecker [Tue, 23 Oct 2012 15:37:03 +0000 (15:37 +0000)]
Set default target-wide-charset setting to "UTF-16" for x86_64-windows.

Type wchar_t is only 2 bytes long on x86_64-windows.

gdb/ChangeLog:

        * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
        function.
        (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
        to amd64_windows_auto_wide_charset.

12 years ago bfd/
Nathan Sidwell [Tue, 23 Oct 2012 09:33:56 +0000 (09:33 +0000)]
bfd/
* bfd-in.h (bfd_elf_stack_segment_size): Declare.
* bfd-in2.h: Rebuilt.
* elfxx-target.h (elf_backend_stack_align): New.
(elfNN_bed): Add it.
* elf-bfd.h (struct elf_backend_data): Add stack_align field.
* elf.c (bfd_elf_map_sections_to_segments): Pay attention to
stack_align and stacksize for PT_GNU_STACK segment.
(assign_file_positions_for_non_load_sections): Set p_memsz for
PT_GNU_STACK segment.
(copy_elf_program_header): Copy PT_GNU_STACK size.
* elflink.c (bfd_elf_stack_segment_size): New function, taken from
uclinux backends.
(bfd_elf_size_dynamic_sections): Determine
PT_GNU_STACK requirements after calling backend.  Pay attention to
stacksize.
* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_bfinfdpic_modify_program_headers): Delete.
(elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-frv.c (frvfdpic_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_frvfdpic_modify_program_headers): Delete.
(elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-lm32.c (lm32_elf_always_size_sections): Leave
PT_GNU_STACK creation to underlying elf support.  Check
__stacksize here for backwards compatibility, and set it if
needed.
(lm32_elf_modify_segment_map): Delete.
(lm32_elf_modify_program_headers): Delete.
(elf_backend_stack_align): Override.
(elf_backend_modify_segment_map): Don't override.
(elf_backend_modify_program_headers): Don't override.
* elf32-sh.c (sh_elf_always_size_sections): Call
bfd_elf_stack_segment_size.
(sh_elf_modify_program_headers): Delete.
(sh_elf_copy_private_data): Don't copy PT_GNU_STACK
here.
(elf_backend_stack_align): Override.
(elf_backend_modify_program_headers): Don't override.
* elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
bfd_elf_stack_segment_size.
(elf32_tic6x_modify_program_headers): Delete.
(elf32_tic6x_copy_private_data): Delete.
(elf_backend_stack_align): Override.
(bfd_elf32_bfd_copy_private_bfd_data): Don't override.
(elf_backend_modify_program_headers): Don't override.

include/
* bfdlink.h (struct bfd_link_info): Add stacksize option.

ld/
* ld.texinfo (stack-size): New option.
* emultempl/elf32.em: Add stack-size option.

ld/testsuite/
* ld-elf/binutils.exp: Add -z stack-size=0.
* ld-elf/elf.exp: Add stack-exec and stack-size tests.
* ld-elf/orphan-region.d: Add stack-size option. Remove xfail.
* ld-elf/stack-exec.rd: New.
* ld-elf/stack-size.rd: New.
* ld-elf/stack.s: New.
* ld-scripts/empty-aligned.d: Add stack-size option.
* ld-sh/fdpic-stack-set.d: New.
* ld-tic6x/shlib-1.rd: Remove __stacksize symbol.
* ld-tic6x/shlib-1b.rd: Likewise.
* ld-tic6x/shlib-1r.rd: Likewise.
* ld-tic6x/shlib-1rb.rd: Likewise.
* ld-tic6x/shlib-app-1.rd: Likewise.
* ld-tic6x/shlib-app-1b.rd: Likewise.
* ld-tic6x/shlib-app-1r.rd: Likewise.
* ld-tic6x/shlib-app-1rb.rd: Likewise.
* ld-tic6x/shlib-noindex.rd: Likewise.
* ld-tic6x/static-app-1.rd: Likewise.
* ld-tic6x/static-app-1b.rd: Likewise.
* ld-tic6x/static-app-1r.rd: Likewise.
* ld-tic6x/static-app-1rb.rd: Likewise.

12 years agogdb/
Yao Qi [Tue, 23 Oct 2012 06:20:49 +0000 (06:20 +0000)]
gdb/
* event-top.c (mark_async_signal_handler_wrapper): Remove.
* event-top.h: Remove its declaration.
(async_request_quit): Call mark_async_signal_handler instead of
mark_async_signal_handler_wrapper.
(async_do_nothing, async_disconnect): Likewise.
(async_stop_sig): Likewise.
* remote.c (handle_remote_sigint): Likewise.
(handle_remote_sigint_twice): Likewise.

12 years agogdb/
Yao Qi [Tue, 23 Oct 2012 06:12:04 +0000 (06:12 +0000)]
gdb/
* event-top.c (sigint_token, sighup_token): Replace 'void *'
with 'static struct async_signal_handler *'.
(sighup_token, sigquit_token, sigstp_token): Likewise.

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

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

12 years agoopcodes/
Peter Bergner [Mon, 22 Oct 2012 16:04:28 +0000 (16:04 +0000)]
opcodes/
* ppc-opc.c (powerpc_opcodes) <vcfpsxws>: Fix opcode spelling.

gas/testsuite/
* gas/ppc/altivec.s <vcfpsxws>: Fix opcode spelling.

12 years agoAli Anwar <ali_anwar@codesourcery.com>
Ali Anwar [Mon, 22 Oct 2012 13:35:43 +0000 (13:35 +0000)]
Ali Anwar  <ali_anwar@codesourcery.com>

* gdbarch.sh (function_list): Use 'pstring' when printing a
variable which could return NULL.
* gdbarch.c: Regenerate.

12 years agoinclude/
Alan Modra [Mon, 22 Oct 2012 13:33:49 +0000 (13:33 +0000)]
include/
PR ld/14426
* bfdlink.h (bfd_link_info): Add ignore_hash.
ld/
PR ld/14426
* ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL.
* lexsup.c (parse_args): Likewise.
(ld_options): Describe --ignore-unresolved-symbol.
* ldmain.h (add_ignoresym): Declare.
* ldmain.c (add_ignoresym): New function, extracted from..
(undefined_symbol): ..here.  Return if the symbol is in ignore_hash.
(constructor_callback): Don't use global link_info here.
(reloc_overflow): Likewise.

12 years ago * as.c (dump_statistics): Compute data size as the delta between
Simon Baldwin [Mon, 22 Oct 2012 11:13:25 +0000 (11:13 +0000)]
* as.c (dump_statistics): Compute data size as the delta between
current sbrk(0) and start_sbrk.
* (main): Set start_sbrk to sbrk(0) on entry.

12 years ago PR bootstrap/54820
Eric Botcazou [Mon, 22 Oct 2012 07:32:04 +0000 (07:32 +0000)]
PR bootstrap/54820
* Makefile.tpl (STAGE1_FLAGS_TO_PASS): New variable.
(all-[+prefix+][+module+]): Pass stage1_args to sub-makes.
(all-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false.
(clean-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false.
(host_modules): Set stage1_args to STAGE1_FLAGS_TO_PASS.
* Makefile.in: Regenerate.
* configure.ac (have_static_libs): New variable and associated check.
(stage1-ldflags): Move to after stage1_libs and set to -static-libstdc++
-static-libgcc if stage1_libs is empty and have_static_libs is yes.
* configure: Regenerate.

12 years ago * plugin.c (plugin_load_plugins): Warning fix.
Alan Modra [Mon, 22 Oct 2012 04:54:25 +0000 (04:54 +0000)]
* plugin.c (plugin_load_plugins): Warning fix.

12 years ago * cache.c (cache_bmmap): Don't use void* arithmetic.
Alan Modra [Mon, 22 Oct 2012 04:51:52 +0000 (04:51 +0000)]
* cache.c (cache_bmmap): Don't use void* arithmetic.

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

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

12 years agoUpdate binutils-all/dw2-1.W
H.J. Lu [Sun, 21 Oct 2012 11:10:54 +0000 (11:10 +0000)]
Update binutils-all/dw2-1.W

* binutils-all/dw2-1.W: Updated.

12 years agoHandle x32 in dump_dwarf
H.J. Lu [Sun, 21 Oct 2012 10:56:00 +0000 (10:56 +0000)]
Handle x32 in dump_dwarf

* objdump.c (dump_dwarf): Handle bfd_mach_x64_32 and
bfd_mach_x64_32_intel_syntax.

12 years agobfd/
Alan Modra [Sun, 21 Oct 2012 09:06:07 +0000 (09:06 +0000)]
bfd/
* compress.c (bfd_cache_section_contents): New function.
* bfd-in2.h: Regenerate.
binutils/
* objdump.c (load_specific_debug_section): Use
bfd_cache_section_contents.

12 years agoCorrect last entry
Hans-Peter Nilsson [Sun, 21 Oct 2012 03:25:02 +0000 (03:25 +0000)]
Correct last entry

12 years ago * linker.c (_bfd_generic_link_output_symbols): Handle a
Hans-Peter Nilsson [Sun, 21 Oct 2012 03:23:37 +0000 (03:23 +0000)]
* linker.c (_bfd_generic_link_output_symbols): Handle a
no-longer-global symbol entered as a BFD_PLUGIN.

12 years ago*** empty log message ***
gdbadmin [Sun, 21 Oct 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agoAdd an objdump test on compress debug sections
H.J. Lu [Sat, 20 Oct 2012 22:14:08 +0000 (22:14 +0000)]
Add an objdump test on compress debug sections

* binutils-all/compress.exp: Add an objdump test.
* binutils-all/dw2-1.W: New file.

12 years ago * compress.c: Reinstate 2012-10-19 change.
Alan Modra [Sat, 20 Oct 2012 08:27:13 +0000 (08:27 +0000)]
* compress.c: Reinstate 2012-10-19 change.
(bfd_get_full_section_contents): Don't free unless we alloc.
Use proper decompress size.  Delete some vars, rename others.

12 years ago*** empty log message ***
gdbadmin [Sat, 20 Oct 2012 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agoppc-aix osabi sniffer: Turn test of bfd flavour into assertion
Joel Brobecker [Fri, 19 Oct 2012 19:58:18 +0000 (19:58 +0000)]
ppc-aix osabi sniffer: Turn test of bfd flavour into assertion

Due to the way this function is registers, we know that given bfd's
flavour should always be bfd_target_xcoff_flavour, thus making
the former test always true, which means that this function should
always return GDB_OSABI_AIX, and never return GDB_OSABI_UNKNOWN.

This patch also fixes a typo detected by Tom Tromey that caused
the test itself to be completely ineffective.

gdb/ChangeLog (by Tom Tromey and Joel Brobecker):

        * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
        inneffective if condition by gdb assertion.  Add function
        description comment.