OSDN Git Service

pf3gnuchains/pf3gnuchains4x.git
13 years agomerge from gcc
dj [Sat, 23 Oct 2010 04:01:25 +0000 (04:01 +0000)]
merge from gcc

13 years ago*** empty log message ***
gdbadmin [Sat, 23 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Fri, 22 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago ld:
ro [Fri, 22 Oct 2010 12:08:24 +0000 (12:08 +0000)]
ld:
* emulparams/elf32_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf32-sparc-sol2.
* emulparams/elf64_sparc_sol2.sh (OUTPUT_FORMAT): Set to
elf64-sparc-sol2.

gas:
* config/tc-sparc.h [TE_SOLARIS] (ELF_TARGET_FORMAT): Define as
elf32-sparc-sol2.
(ELF64_TARGET_FORMAT): Define as elf64-sparc-sol2.

bfd:
* elfxx-sparc.c (tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.

* elf32-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf32_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf32-sparc-sol2.
(elf32_bed): Redefine to elf32_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 8.
Include elf32-target.h.
(elf_backend_static_tls_alignment): Undef again for VxWorks.

* elf64-sparc.c (TARGET_BIG_SYM): Redefine to
bfd_elf64_sparc_sol2_vec.
(TARGET_BIG_NAME): Redefine to elf64-sparc-sol2.
(ELF_OSABI): Undef.
(elf64_bed): Redefine to elf64_sparc_sol2_bed.
(elf_backend_static_tls_alignment): Redefine to 16.
Include elf64-target.h.

* config.bfd (sparc-*-solaris2.[0-6]): Split from sparc-*-elf*.
Set targ_defvec to bfd_elf32_sparc_sol2_vec.
[BFD64] (sparc-*-solaris2*): Set targ_defvec to
bfd_elf32_sparc_sol2_vec.
Replace bfd_elf64_sparc_vec by bfd_elf64_sparc_sol2_vec in
targ_selvecs.

* configure.in: Handle bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.
* configure: Regenerate.

* targets.c (bfd_elf32_sparc_sol2_vec): Declare.
(bfd_elf64_sparc_sol2_vec): Declare.
(_bfd_target_vector): Add bfd_elf32_sparc_sol2_vec,
bfd_elf64_sparc_sol2_vec.

13 years ago * gas/all/fwdexp.d: Also look for f8ffffff.
nickc [Fri, 22 Oct 2010 08:13:58 +0000 (08:13 +0000)]
    * gas/all/fwdexp.d: Also look for f8ffffff.
        * gas/arm/msr-reg-thumb.d: Skip for non-ELF based targets.
        * gas/arm/vldr.d: Likewise.
        * gas/arm/thumb2_ldmstm.d: Allow for extra NOPs at the end of the disassembly.
        * gas/cfi/cfi.exp (cfi-arm-1): Only run for ELF based ARM targets.

13 years ago*** empty log message ***
gdbadmin [Fri, 22 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * Makefile.am (CLEANFILES): Add stamp-lm32. Sort.
amodra [Thu, 21 Oct 2010 23:50:57 +0000 (23:50 +0000)]
* Makefile.am (CLEANFILES): Add stamp-lm32.  Sort.
* Makefile.in: Regenerate.

13 years ago * Makefile.in (install): Remove dependency of install-only and
jiez [Thu, 21 Oct 2010 23:50:42 +0000 (23:50 +0000)]
* Makefile.in (install): Remove dependency of install-only and
recursively invoke make for install-only.
* data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
(install): Pass FLAGS_TO_PASS when recursively make install-only.

gdbserver/
* Makefile.in: Add FLAGS_TO_PASS variable.
(install): Remove dependency of install-only and recursively
invoke make for install-only.

13 years ago * ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
amodra [Thu, 21 Oct 2010 23:28:06 +0000 (23:28 +0000)]
* ldwrite.c (build_link_order <lang_data_statement_enum>): Don't
output when section has no contents.
(build_link_order <lang_reloc_statement_enum>): Likewise.

13 years agodaily update
amodra [Thu, 21 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agobfd:
jsm28 [Thu, 21 Oct 2010 21:16:49 +0000 (21:16 +0000)]
bfd:
* elf32-tic6x.c (elf32_tic6x_merge_arch_attributes): Update for
attribute renaming.
(elf_backend_obj_attrs_section): Change to ".c6xabi.attributes".

binutils:
* readelf.c (display_tic6x_attribute): Update for attribute
renaming.

gas:
* config/tc-tic6x.c (tic6x_arch_attribute, tic6x_arches,
md_assemble, tic6x_set_attributes): Update for attribute renaming.
* doc/c-tic6x.texi: Update for attribute renaming.

gas/testsuite:
* gas/tic6x/attr-arch-directive-1.d,
gas/tic6x/attr-arch-directive-2.d,
gas/tic6x/attr-arch-directive-3.d,
gas/tic6x/attr-arch-directive-4.d,
gas/tic6x/attr-arch-directive-4.s,
gas/tic6x/attr-arch-directive-5.d,
gas/tic6x/attr-arch-directive-5.s,
gas/tic6x/attr-arch-opts-c62x.d, gas/tic6x/attr-arch-opts-c64x+.d,
gas/tic6x/attr-arch-opts-c64x.d, gas/tic6x/attr-arch-opts-c674x.d,
gas/tic6x/attr-arch-opts-c67x+.d, gas/tic6x/attr-arch-opts-c67x.d,
gas/tic6x/attr-arch-opts-none-1.d,
gas/tic6x/attr-arch-opts-none-2.d,
gas/tic6x/attr-arch-opts-override-1.d,
gas/tic6x/attr-arch-opts-override-2.d: Update for attribute
renaming and renumbering.

include/elf:
* tic6x-attrs.h (Tag_C6XABI_Tag_CPU_arch): Change to Tag_ISA,
value 4.
* tic6x.h (Values for Tag_C6XABI_Tag_CPU_arch): Rename for
attribute renaming.

ld:
* emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Use
.c6xabi.attributes, not __TI_build_attributes.

ld/testsuite:
* ld-tic6x/attr-arch-c62x-c62x.d, ld-tic6x/attr-arch-c62x-c64x+.d,
ld-tic6x/attr-arch-c62x-c64x.d, ld-tic6x/attr-arch-c62x-c674x.d,
ld-tic6x/attr-arch-c62x-c67x+.d, ld-tic6x/attr-arch-c62x-c67x.d,
ld-tic6x/attr-arch-c64x+-c62x.d, ld-tic6x/attr-arch-c64x+-c64x+.d,
ld-tic6x/attr-arch-c64x+-c64x.d, ld-tic6x/attr-arch-c64x+-c674x.d,
ld-tic6x/attr-arch-c64x+-c67x+.d, ld-tic6x/attr-arch-c64x+-c67x.d,
ld-tic6x/attr-arch-c64x-c62x.d, ld-tic6x/attr-arch-c64x-c64x+.d,
ld-tic6x/attr-arch-c64x-c64x.d, ld-tic6x/attr-arch-c64x-c674x.d,
ld-tic6x/attr-arch-c64x-c67x+.d, ld-tic6x/attr-arch-c64x-c67x.d,
ld-tic6x/attr-arch-c674x-c62x.d, ld-tic6x/attr-arch-c674x-c64x+.d,
ld-tic6x/attr-arch-c674x-c64x.d, ld-tic6x/attr-arch-c674x-c674x.d,
ld-tic6x/attr-arch-c674x-c67x+.d, ld-tic6x/attr-arch-c674x-c67x.d,
ld-tic6x/attr-arch-c67x+-c62x.d, ld-tic6x/attr-arch-c67x+-c64x+.d,
ld-tic6x/attr-arch-c67x+-c64x.d, ld-tic6x/attr-arch-c67x+-c674x.d,
ld-tic6x/attr-arch-c67x+-c67x+.d, ld-tic6x/attr-arch-c67x+-c67x.d,
ld-tic6x/attr-arch-c67x-c62x.d, ld-tic6x/attr-arch-c67x-c64x+.d,
ld-tic6x/attr-arch-c67x-c64x.d, ld-tic6x/attr-arch-c67x-c674x.d,
ld-tic6x/attr-arch-c67x-c67x+.d, ld-tic6x/attr-arch-c67x-c67x.d:
Update for attribute renaming.

13 years ago * elf-bfd.h (struct elf_backend_data): New member
ro [Thu, 21 Oct 2010 12:29:00 +0000 (12:29 +0000)]
* elf-bfd.h (struct elf_backend_data): New member
static_tls_alignment.
* elfxx-target.h (elf_backend_static_tls_alignment): Provide
default.
(elfNN_bed): Initialize static_tls_alignment.
* elflink.c (bfd_elf_final_link): Don't round end of TLS section
if static TLS has special alignment requirements.
* elf32-i386.c (elf_i386_tpoff): Define bed, static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for VxWorks.
* elf64-x86-64.c (elf64_x86_64_tpoff):  Define bed,
static_tls_size.
Consider static_tls_alignment.
(elf_backend_static_tls_alignment): Redefine for Solaris 2.
Undef again for Intel L1OM.

13 years ago*** empty log message ***
gdbadmin [Thu, 21 Oct 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago2010-10-20 Michael Snyder <msnyder@vmware.com>
msnyder [Wed, 20 Oct 2010 23:58:06 +0000 (23:58 +0000)]
2010-10-20  Michael Snyder  <msnyder@vmware.com>

* gdb.threads/fork-child-threads.exp: Don't run on remote target.

13 years agodaily update
amodra [Wed, 20 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * gdbint.texinfo (Misc Guidelines): Renamed from Coding.
devans [Wed, 20 Oct 2010 22:53:36 +0000 (22:53 +0000)]
* gdbint.texinfo (Misc Guidelines): Renamed from Coding.
All references updated.  Correct sections marked as subsections.
(Coding Standards): New chapter.  Move the coding standard related
subsections here.  Add section on Python coding standards.

13 years agocvs add smartp.cc smartp.exp
swagiaal [Wed, 20 Oct 2010 18:56:09 +0000 (18:56 +0000)]
cvs add smartp.cc smartp.exp

Original changelog:
Support overloading of 'operator->'.
[...]
2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.

13 years ago * plugin.c (get_symbols): Check symbol type correctly.
davek [Wed, 20 Oct 2010 17:01:05 +0000 (17:01 +0000)]
* plugin.c (get_symbols): Check symbol type correctly.

13 years ago * Makefile.def (target_modules): Set lib_path to src/.libs for
ian [Wed, 20 Oct 2010 15:43:39 +0000 (15:43 +0000)]
* Makefile.def (target_modules): Set lib_path to src/.libs for
libstdc++-v3 module.
* Makefile.tpl: Fix typo in TARGET_LIB_PATH comment.
* Makefile.in: Rebuild.

13 years ago2010-10-20 Doug Kwan <dougkwan@google.com>
dougkwan [Wed, 20 Oct 2010 15:30:53 +0000 (15:30 +0000)]
2010-10-20  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_relobj::do_read_symbols): Warn about ARM EXIDX sections
without SHF_LINK_ORDER flags.
* layout.cc (Layout::choose_output_section): Do not filter
SHF_LINK_ORDER flag in a relocatable link.

13 years ago * ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
davek [Wed, 20 Oct 2010 14:40:30 +0000 (14:40 +0000)]
* ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
no suitable target compiler is available.

13 years ago2010-10-20 Hui Zhu <teawater@gmail.com>
teawater [Wed, 20 Oct 2010 14:03:16 +0000 (14:03 +0000)]
2010-10-20  Hui Zhu  <teawater@gmail.com>

* tracepoint.c (tfile_get_traceframe_address): Call
extract_signed_integer.
(tfile_trace_find): Call extract_signed_integer and
extract_unsigned_integer.  Change data_size to unsigned int.
(tfile_fetch_registers): Call extract_unsigned_integer.
(tfile_xfer_partial): Ditto.
(tfile_get_trace_state_variable_value): Call
extract_signed_integer and extract_unsigned_integer.

13 years ago * remote.c (remote_get_threadlist): If we got empty
vprus [Wed, 20 Oct 2010 09:10:46 +0000 (09:10 +0000)]
* remote.c (remote_get_threadlist): If we got empty
response, bail out immediately, and don't emit any
warnings.

13 years ago*** empty log message ***
gdbadmin [Wed, 20 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Tue, 19 Oct 2010 23:00:08 +0000 (23:00 +0000)]
daily update

13 years ago * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
uweigand [Tue, 19 Oct 2010 21:30:53 +0000 (21:30 +0000)]
* arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
for "mov pc, REG" as well.
(thumb_instruction_changes_pc): Likewise.

13 years ago * gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.
uweigand [Tue, 19 Oct 2010 21:29:23 +0000 (21:29 +0000)]
* gdb.base/watch_thread_num.exp: Revert 2008-09-03 change.
Skip test completely if gdb,no_hardware_watchpoints.

13 years ago * gdb.base/foll-fork.exp: Make regexps to match catchpoint hits more
uweigand [Tue, 19 Oct 2010 21:28:33 +0000 (21:28 +0000)]
* gdb.base/foll-fork.exp: Make regexps to match catchpoint hits more
strict, but do not check for any particular function name within libc.

13 years agoSupport overloading of 'operator->'.
swagiaal [Tue, 19 Oct 2010 20:53:13 +0000 (20:53 +0000)]
Support overloading of 'operator->'.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

 PR C++/11500:
* valarith.c (value_x_unop): Handle STRUCTOP_PTR.
* eval.c (evaluate_subexp_standard): Check for overload of
'operator->'.
* valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
(value_x_unop): Ditto.
* valops.c: Include "exceptions.h".
(find_overload_match): Throw NOT_FOUND_ERROR.
(value_struct_elt): Ditto.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/smartp.exp: New test.
* gdb.cp/smartp.cc : New test.

13 years ago * python/py-cmd.c (cmdpy_function): Unreference exception state.
tromey [Tue, 19 Oct 2010 20:11:33 +0000 (20:11 +0000)]
* python/py-cmd.c (cmdpy_function): Unreference exception state.

13 years agoAdd testcase for PR gas/12049.
hjl [Tue, 19 Oct 2010 17:13:30 +0000 (17:13 +0000)]
Add testcase for PR gas/12049.

2010-10-19  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12049
* gas/i386/i386.exp: Run relax-1 and relax-2.

* gas/i386/relax-1.d: New.
* gas/i386/relax-1.s: Likewise.
* gas/i386/relax-2.d: Likewise.
* gas/i386/relax-2.s: Likewise.

13 years agoSupport pointer to bool conversion.
swagiaal [Tue, 19 Oct 2010 16:07:19 +0000 (16:07 +0000)]
Support pointer to bool conversion.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
* gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
for conversion.
Make all other conversions illegal.

2010-10-19  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/converts.exp: Test pointer to bool conversion.
Test pointer to long conversion.
* gdb.cp/oranking.exp: Removed relevant kfail.

13 years ago * write.c (relax_segment): Correct address on frag added to stop
amodra [Tue, 19 Oct 2010 12:14:22 +0000 (12:14 +0000)]
* write.c (relax_segment): Correct address on frag added to stop
leb128/align frags bouncing.

13 years ago PR gas/12049
amodra [Tue, 19 Oct 2010 12:00:33 +0000 (12:00 +0000)]
PR gas/12049
* frags.h (struct frag): Add "region" field.
* write.c (relax_frag): Don't add "stretch" to forward reference
target if there is an intervening org or align.
(relax_segment): Set region.

13 years ago PR gas/12049
amodra [Tue, 19 Oct 2010 11:59:18 +0000 (11:59 +0000)]
PR gas/12049
* frags.h (struct frag): Add "region" field.
* write.c (relax_frag): Don't add "stretch" to forward reference
target if there is an intervening org or align.
(relax_segment): Set region.

13 years ago * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
devans [Tue, 19 Oct 2010 04:22:16 +0000 (04:22 +0000)]
* c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
assumptions of when this case happens.  Print "<unnamed typedef>".

13 years ago*** empty log message ***
gdbadmin [Tue, 19 Oct 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Mon, 18 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago2010-10-18 Marco Atzeri <marco_atzeri@yahoo.it>
jjohnstn [Mon, 18 Oct 2010 22:40:23 +0000 (22:40 +0000)]
2010-10-18  Marco Atzeri  <marco_atzeri@yahoo.it>

        * libm/Makefile.am: added complex functions documentation
        * libm/libm.texinfo: ditto
        * libm/complex/Makefile.am: Ditto
        * libm/complex/complex.tex: Ditto
        * libm/complex/(cabs.c, cacos.c, cacosh.c, carg.c,
        casin.c, casinh.c, catan.c, catanh.c, ccos.c, ccosh.c,
        cexp.c, cimag.c, clog.c, conj.c, cpow.c, cproj.c, creal.c,
        csin.c, csinh.c, csqrt.c, ctan.c, ctanh.c): Ditto
        * libm/Makefile.in: Regenerate
        * libm/complex/Makefile.in: Ditto

13 years agogdb
tromey [Mon, 18 Oct 2010 19:14:01 +0000 (19:14 +0000)]
gdb
* valprint.c (val_print_string): Pass 'encoding' to
LA_PRINT_STRING.
gdb/testsuite
* gdb.python/py-prettyprint.exp (run_lang_tests): Test encoding
argument to lazy_string.
* gdb.python/py-prettyprint.py (pp_ls_encoding): New global.
(pp_ls.to_string): Use it.
* gdb.python/py-prettyprint.c (main): Move declarations to top.
Add "estring2" local.

13 years agomerge from gcc
dj [Mon, 18 Oct 2010 17:08:53 +0000 (17:08 +0000)]
merge from gcc

13 years ago* winsup/cygwin/cygwin.din: Add llround and llroundf.
cgf [Mon, 18 Oct 2010 15:14:16 +0000 (15:14 +0000)]
* winsup/cygwin/cygwin.din: Add llround and llroundf.

13 years ago2010-10-18 Kai Tietz <kaI.tietz@onevision.com>
ktietz [Mon, 18 Oct 2010 05:50:30 +0000 (05:50 +0000)]
2010-10-18  Kai Tietz  <kaI.tietz@onevision.com>

        * gas/i386/disp32.d: Adjust initial symbol check.
        * gas/i386/x86-64-disp32.d: Likewise.

13 years ago * output.h (Output_segment::set_section_addresses): Change function
ccoutant [Mon, 18 Oct 2010 05:39:22 +0000 (05:39 +0000)]
* output.h (Output_segment::set_section_addresses): Change function
signature.  Update all callers.
* output.cc (Output_segment::is_first_section_relro): Ignore TLS
sections.
(Output_segment::set_section_addresses): Align after last TLS
section.  Add padding before last relro section instead of after.

13 years ago * gas/mips/ld.d: Spell out section offsets and addends
macro [Mon, 18 Oct 2010 01:35:05 +0000 (01:35 +0000)]
* gas/mips/ld.d: Spell out section offsets and addends
explicitly.  Clean up some regexps.
* gas/mips/ld-ilocks.d: Likewise.  Add missing "$" prefixes to
the names of FP registers.
* gas/mips/ld-ilocks-addr32.d: Likewise.
* gas/mips/ld.s: Align sections to 4k, adjust padding.

13 years ago * gas/mips/ld.d: Use wildcard address matching.
macro [Mon, 18 Oct 2010 00:55:23 +0000 (00:55 +0000)]
* gas/mips/ld.d: Use wildcard address matching.
* gas/mips/ld-ilocks.d: Likewise.
* gas/mips/ld-ilocks-addr32.d: Likewise.

13 years ago * gas/mips/mips.exp (run_dump_test_arch): Get the name of the
macro [Mon, 18 Oct 2010 00:44:18 +0000 (00:44 +0000)]
* gas/mips/mips.exp (run_dump_test_arch): Get the name of the
architecture to check against for an architecture-specific test
from the properties instead of the name passed.

13 years ago * config/tc-mips.c (macro)[ldd_std]: Fix the relaxation variant
macro [Mon, 18 Oct 2010 00:17:43 +0000 (00:17 +0000)]
* config/tc-mips.c (macro)[ldd_std]: Fix the relaxation variant
for absolute addressing.

13 years ago opcodes/
macro [Mon, 18 Oct 2010 00:15:33 +0000 (00:15 +0000)]
opcodes/
* mips-opc.c (mips_builtin_opcodes): Move M_LD_OB and M_SD_OB
macros before their corresponding MIPS III hardware instructions.

gas/
* config/tc-mips.c (macro)[M_LD_OB, M_SD_OB]: Handle 64-bit ABIs.

gas/testsuite/
* gas/mips/lineno.s: Convert to o32.
* gas/mips/lineno.d: Adjust patterns accordingly.  Force the o32
ABI.

13 years ago * config/tc-mips.c (mips_pseudo_table): Add "sbss".
macro [Mon, 18 Oct 2010 00:11:06 +0000 (00:11 +0000)]
* config/tc-mips.c (mips_pseudo_table): Add "sbss".
(s_change_sec): Handle it.

13 years ago*** empty log message ***
gdbadmin [Mon, 18 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years agolibgloss: bfin: sync headers to VDSP 5.0 Update 8
vapier [Sun, 17 Oct 2010 23:52:49 +0000 (23:52 +0000)]
libgloss: bfin: sync headers to VDSP 5.0 Update 8

A new release of VDSP means syncing random updates to the libgloss headers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agodaily update
amodra [Sun, 17 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogdb/testsuite/
jkratoch [Sun, 17 Oct 2010 18:55:09 +0000 (18:55 +0000)]
gdb/testsuite/
Fix s390x compatibility.
* gdb.dwarf2/pr11465.S (DW_TAG_pointer_type): Use PTRBITS.  Twice.
* gdb.dwarf2/pr11465.exp: Set ptrbits, use it for -DPTRBITS.

13 years agogdb/
jkratoch [Sun, 17 Oct 2010 18:49:46 +0000 (18:49 +0000)]
gdb/
Fix the `stopped language detection' testcase for gcc-4.5.
* dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
* symfile.c (set_initial_language): Move variable filename to a more
inner block.  Prefer LANGUAGE_OF_MAIN.
* symtab.c (language_of_main): New variable.
(set_main_name): Always reset LANGUAGE_OF_MAIN.
* symtab.h (language_of_main): New declaration.

13 years agogdb/
jkratoch [Sun, 17 Oct 2010 18:24:46 +0000 (18:24 +0000)]
gdb/
* gdbthread.h (currently_stepping): New declaration.
* infrun.c (currently_stepping): Remove the forward declaration.
(currently_stepping): Make it global.
* linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
variables tp and step, initialized them.  Pass STEP to to_resume.
Print also possibly "PTRACE_SINGLESTEP" if STEP.  Initialize LP->STEP.
* remote.c (currently_stepping_callback): New.
(remote_vcont_resume)
<ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
New variable tp.  Call currently_stepping_callback and step such
thread.

gdb/testsuite/
* gdb.threads/sigstep-threads.exp: New file.
* gdb.threads/sigstep-threads.c: New file.

13 years agogdb/
jkratoch [Sun, 17 Oct 2010 17:45:16 +0000 (17:45 +0000)]
gdb/
* infrun.c (follow_exec): Replace symbol_file_add_main by
symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
breakpoint_re_set.
* m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
clear_symtab_users.
* objfiles.c (free_all_objfiles): Likewise.
* remote-m32r-sdi.c (m32r_load): Likewise.
* solib-som.c (som_solib_create_inferior_hook): Likewise.
* symfile.c (new_symfile_objfile): New comment for add_flags.  Call
clear_symtab_users with ADD_FLAGS.
(reread_symbols): Use parameter 0 for clear_symtab_users.
(clear_symtab_users): New parameter add_flags.  Do not call
breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
(clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
* symtab.h (clear_symtab_users): New parameter add_flags.

gdb/testsuite/
* gdb.base/pie-execl.exp: New file.
* gdb.base/pie-execl.c: New file.

13 years ago2010-10-17 Doug Kwan <dougkwan@google.com>
dougkwan [Sun, 17 Oct 2010 15:12:50 +0000 (15:12 +0000)]
2010-10-17  Doug Kwan  <dougkwan@google.com>

* gold/arm.cc (Target_arm::got_section): Use correct order and set
GOT output section to be writable.

13 years agogdb/
jkratoch [Sun, 17 Oct 2010 08:43:45 +0000 (08:43 +0000)]
gdb/
Fix GCC false warning.
* varobj.c (value_get_print_value) <str_addr>: Initialize it.

13 years ago*** empty log message ***
gdbadmin [Sun, 17 Oct 2010 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Sat, 16 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agoAdd CpuNop to CPU_GENERIC64_FLAGS.
hjl [Sat, 16 Oct 2010 21:53:16 +0000 (21:53 +0000)]
Add CpuNop to CPU_GENERIC64_FLAGS.

gas/testsuite/

2010-10-16  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run x86-64-nops-1-g64.

* gas/i386/x86-64-nops-1.d: Remove -mtune=generic64.

* gas/i386/x86-64-nops-1-g64.d: New.

opcodes/

2010-10-16  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (cpu_flag_init): Add CpuNop to CPU_GENERIC64_FLAGS.

* i386-init.h: Regenerated.

13 years ago2010-10-16 Kai Tietz <kai.tietz@onevision.com>
ktietz [Sat, 16 Oct 2010 20:11:39 +0000 (20:11 +0000)]
2010-10-16  Kai Tietz  <kai.tietz@onevision.com>

        * ld-pe/pe-run2.exp: Prefix --enable-auto-import by -Wl.

13 years agofix dates
cgf [Sat, 16 Oct 2010 17:58:48 +0000 (17:58 +0000)]
fix dates

13 years agolibgloss: bfin: add support for bf592 processors
vapier [Sat, 16 Oct 2010 17:06:54 +0000 (17:06 +0000)]
libgloss: bfin: add support for bf592 processors

Import the headers from VisualDSP and add a linker script for them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago * layout.cc (Layout::set_segment_offsets): Don't try to realign data
ccoutant [Sat, 16 Oct 2010 00:37:24 +0000 (00:37 +0000)]
* layout.cc (Layout::set_segment_offsets): Don't try to realign data
segment that has been aligned for relro.
* output.cc (Output_segment::set_section_addresses): Change signature;
adjust all callers.  Account for alignment when totalling
size of relro sections.
* output.h (Output_segment::set_section_addresses): Change signature.
* testsuite/Makefile.am (relro_test.sh, relro_test.stdout): New
targets.
* testsuite/Makefile.in: Regenerate.
* testsuite/relro_test.cc: Add alignment attributes to test proper
alignment of relro sections when padding is necessary.
* testsuite/relro_test.sh: New script.

13 years ago*** empty log message ***
gdbadmin [Sat, 16 Oct 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

13 years ago * p-typeprint.c (pascal_type_print_method_args): Fix problem in
muller [Fri, 15 Oct 2010 23:08:04 +0000 (23:08 +0000)]
* p-typeprint.c (pascal_type_print_method_args): Fix problem in
display of type of method arguments.

13 years agodaily update
amodra [Fri, 15 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years agogas: blackfin: add tests for recent loop label fixes
vapier [Fri, 15 Oct 2010 20:53:28 +0000 (20:53 +0000)]
gas: blackfin: add tests for recent loop label fixes

Signed-off-by: David Gibson <david.gibson@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: add illegal insn tests
vapier [Fri, 15 Oct 2010 20:52:36 +0000 (20:52 +0000)]
gas: blackfin: add illegal insn tests

Make sure all illegal insns get assembled & decoded correctly.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: fix encoding of BYTEOP2M insn
vapier [Fri, 15 Oct 2010 20:44:45 +0000 (20:44 +0000)]
gas: blackfin: fix encoding of BYTEOP2M insn

The BYTEOP2M parser incorrectly calls BYTEOP2P to generate the opcode.
Once we've fixed that, it's easy to see that the disassembler also likes
to decode this insn incorrectly.  So fix that and then add some tests.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agogas: blackfin: generalize matching in the video tests
vapier [Fri, 15 Oct 2010 20:43:15 +0000 (20:43 +0000)]
gas: blackfin: generalize matching in the video tests

The exact symbol addresses are not important to these tests.  We only
care about the opcodes and the disassembly output.  This makes adding
more insns to these tests easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: add support for bf50x processors
vapier [Fri, 15 Oct 2010 20:32:10 +0000 (20:32 +0000)]
libgloss: bfin: add support for bf50x processors

Import the headers from VisualDSP and add linker scripts for them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago PR python/11948:
tromey [Fri, 15 Oct 2010 18:54:10 +0000 (18:54 +0000)]
PR python/11948:
* varobj.c (value_get_print_value): Use val_print_string to print
lazy strings.
* python/py-prettyprint.c (print_string_repr): Use
val_print_string to print lazy strings.  Fix cleanup logic.
(print_children): Likewise.
* python/python-internal.h (gdbpy_extract_lazy_string): Update.
* python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
Change return type to 'void', add 'addr' argument.
* value.h (val_print_string): Update.
* valprint.c (val_print_string): Add 'encoding' argument.
* printcmd.c (print_formatted): Update.
* p-valprint.c (pascal_val_print): Update.
* m2-valprint.c (print_unpacked_pointer): Update.
(m2_print_array_contents): Likewise.
* jv-valprint.c (java_value_print): Update.
* f-valprint.c (f_val_print): Update.
* c-valprint.c (c_val_print): Update.
* auxv.c (fprint_target_auxv): Update.

13 years agogdb/
jkratoch [Fri, 15 Oct 2010 17:48:40 +0000 (17:48 +0000)]
gdb/
PR exp/12117
* gdbtypes.c (check_typedef): Clean up function comment.
Keep track of instance flags as we strip typedefs and create a new
type to preserve them if necessary.
* gdbtypes.h (type) <instance_flags>: Extend the comment.

gdb/testsuite/
PR exp/12117
* gdb.cp/ptype-cv-cp.cc: New file.
* gdb.cp/ptype-cv-cp.exp: New file.

13 years agoProvide win32-based dlapi replacements on windows platforms without dlfcn.h.
davek [Fri, 15 Oct 2010 16:21:40 +0000 (16:21 +0000)]
Provide win32-based dlapi replacements on windows platforms without dlfcn.h.

ld/ChangeLog:

* configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
* configure: Regenerate.
* config.in: Likewise.
* plugin.c [!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlopen): Provide
trival LoadLibrary-based replacement for Windows systems.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise trivial
replacement based on GetProcAddress.
[!HAVE_DLFCN_H && HAVE_WINDOWS_H] (dlsym): Likewise FreeLibrary.
* sysdep.h: Don't infer presence of <dlfcn.h> from ENABLE_PLUGINS
anymore, use its own guard.

13 years agoFix potential use-after-free bugs.
davek [Fri, 15 Oct 2010 16:09:36 +0000 (16:09 +0000)]
Fix potential use-after-free bugs.

ld/ChangeLog:

* plugin.c (add_input_file): Take copy of input string.
(add_input_library): Likewise.
(set_extra_library_path): Likewise.

13 years agoAvoid testsuite errors when no cross compiler is available.
davek [Fri, 15 Oct 2010 16:07:06 +0000 (16:07 +0000)]
Avoid testsuite errors when no cross compiler is available.

ld/testsuite/ChangeLog:

* ld-plugin/plugin.exp: Don't error out if there is no target compiler
available, make tests UNSUPPORTED instead.

13 years ago * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
muller [Fri, 15 Oct 2010 15:42:50 +0000 (15:42 +0000)]
* p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.

13 years agochangelogs for previous blackfin commits
vapier [Fri, 15 Oct 2010 05:43:16 +0000 (05:43 +0000)]
changelogs for previous blackfin commits

13 years agolibgloss: bfin: handle L1 sections in linker scripts
vapier [Fri, 15 Oct 2010 05:41:53 +0000 (05:41 +0000)]
libgloss: bfin: handle L1 sections in linker scripts

Make sure gcc L1 attributes work with the default Blackfin linker scripts.

Signed-off-by: Stuart Henderson <stuart.henderson@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agolibgloss: bfin: drop BF541 headers
vapier [Fri, 15 Oct 2010 05:38:51 +0000 (05:38 +0000)]
libgloss: bfin: drop BF541 headers

The BF541 never actually existed, so punt it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years ago*** empty log message ***
gdbadmin [Fri, 15 Oct 2010 00:00:04 +0000 (00:00 +0000)]
*** empty log message ***

13 years agoRemove CheckRegSize from movq.
hjl [Thu, 14 Oct 2010 23:16:19 +0000 (23:16 +0000)]
Remove CheckRegSize from movq.

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Remove CheckRegSize from movq.
* i386-tbl.h: Regenerated.

13 years agodaily update
amodra [Thu, 14 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago * debug.h (DEBUG_INCREMENTAL): New flag.
ccoutant [Thu, 14 Oct 2010 22:10:21 +0000 (22:10 +0000)]
* debug.h (DEBUG_INCREMENTAL): New flag.
(debug_string_to_enum): Add DEBUG_INCREMENTAL).
* gold.cc (queue_initial_tasks): Check parameters for incremental link
mode.
* incremental.cc (report_command_line): Ignore all forms of
--incremental.
* layout.cc (Layout::Layout): Check parameters for incremental link
mode.
* options.cc (General_options::parse_incremental): New function.
(General_options::parse_no_incremental): New function.
(General_options::parse_incremental_full): New function.
(General_options::parse_incremental_update): New function.
(General_options::incremental_mode_): New data member.
(General_options::finalize): Check incremental_mode_.
* options.h (General_options): Update help text for --incremental.
Add --no-incremental, --incremental-full, --incremental-update.
(General_options::Incremental_mode): New enum type.
(General_options::incremental_mode): New function.
(General_options::incremental_mode_): New data member.
* parameters.cc (Parameters::incremental_mode_): New data member.
(Parameters::set_options): Set incremental_mode_.
(Parameters::set_incremental_full): New function.
(Parameters::incremental): New function.
(Parameters::incremental_update): New function.
(set_parameters_incremental_full): New function.
* parameters.h (Parameters::set_incremental_full): New function.
(Parameters::incremental): New function.
(Parameters::incremental_update): New function.
(Parameters::incremental_mode_): New data member.
(set_parameters_incremental_full): New function.
* plugin.cc (Plugin_manager::add_input_file): Check parameters for
incremental link mode.
* reloc.cc (Sized_relobj::do_read_relocs): Likewise.
(Sized_relobj::do_relocate_sections): Likewise.
* testsuite/Makefile.am (incremental_test): Use --incremental-full
option.
* testsuite/Makefile.in: Regenerate.
* testsuite/incremental_test.sh: Filter all forms of --incremental.

13 years agoRemove CheckRegSize from instructions with 0, 1 or fixed operands.
hjl [Thu, 14 Oct 2010 21:37:30 +0000 (21:37 +0000)]
Remove CheckRegSize from instructions with 0, 1 or fixed operands.

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.tbl: Remove CheckRegSize from instructions with
0, 1 or fixed operands.
* i386-tbl.h: Regenerated.

13 years ago2010-10-14 Craig Howland <howland@LGSInnovations.com>
jjohnstn [Thu, 14 Oct 2010 20:14:33 +0000 (20:14 +0000)]
2010-10-14  Craig Howland <howland@LGSInnovations.com>

        * libc/include/math.h:  Delete cabs() and cabs() prototypes
        (c.f. 2010-10-08 change by Corinna).

13 years agoAdd CheckRegSize to instructions which require register size check.
hjl [Thu, 14 Oct 2010 18:45:07 +0000 (18:45 +0000)]
Add CheckRegSize to instructions which require register size check.

gas/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (match_template): Check checkregsize
instead of w for register size check.

gas/testsuite/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/i386.exp: Run inval-reg.

* gas/i386/inval-reg.l: New.
* gas/i386/inval-reg.s: Likewise.

opcodes/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* i386-gen.c (opcode_modifiers): Add CheckRegSize.

* i386-opc.h (CheckRegSize): New.
(i386_opcode_modifier): Add checkregsize.

* i386-opc.tbl: Add CheckRegSize to instructions which
require register size check.
* i386-tbl.h: Regenerated.

13 years ago * lwp-pool.c (hash_find): Initialize `do_step' in the newly allocated
kevinb [Thu, 14 Oct 2010 18:08:13 +0000 (18:08 +0000)]
* lwp-pool.c (hash_find): Initialize `do_step' in the newly allocated
lwp struct.

13 years agoFixed void* vs int* overload issue (PR C++/10343).
swagiaal [Thu, 14 Oct 2010 16:13:35 +0000 (16:13 +0000)]
Fixed void* vs int* overload issue (PR C++/10343).

2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>

* gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
* gdbtypes.c (rank_one_type): Move type comparison code out of here
to...
(types_equal): ...here. And changed it as follows:
Outside of typedefs type must be of the same TYPE_CODE.
When compairing two pointers or references they are equal if their
targets are equal.
Correct pointer conversions.

2010-10-14  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/converts.cc: New test program.
* gdb.cp/converts.exp: New test.
* gdb.cp/overload.exp: Added test for void* vs int*.
* gdb.cp/overload.exp: Ditto.
* gdb.cp/oranking.exp: Removed related kfail.

13 years ago * p-lang.c (is_pascal_string_type): Avoid crashes on structures
muller [Thu, 14 Oct 2010 15:18:53 +0000 (15:18 +0000)]
* p-lang.c (is_pascal_string_type): Avoid crashes on structures
having fields without names.

13 years agoAdd .d32 encoding suffix.
hjl [Thu, 14 Oct 2010 13:31:11 +0000 (13:31 +0000)]
Add .d32 encoding suffix.

gas/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (_i386_insn): Add disp32_encoding.
(md_assemble): Don't call optimize_disp if disp32_encoding is
set.
(parse_insn): Support .d32 to force 32bit displacement.
(output_branch): Use BIG if disp32_encoding is set.

* doc/c-i386.texi: Document .d32 encoding suffix.

gas/testsuite/

2010-10-14  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/disp32.d: New.
* gas/i386/disp32.s: Likewise.
* gas/i386/x86-64-disp32.d: Likewise.
* gas/i386/x86-64-disp32.s: Likewise.

* gas/i386/i386.exp: Run disp32 and x86-64-disp32.

13 years agoApplied patch series for LD plugin interface (six parts).
davek [Thu, 14 Oct 2010 01:31:25 +0000 (01:31 +0000)]
Applied patch series for LD plugin interface (six parts).

[PATCH] Add infrastructure for plugin API; functionality to follow.

    include/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* plugin-api.h (LDPT_GNU_LD_VERSION): New ld_plugin_tag enum member.

    ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* configure.in: Add AC_CHECKs for file io and dlfcn headers and
functions and AC_SEARCH for -ldl.
(enable_plugins): New shell variable set if above tests find dlopen
functionality.
(ENABLE_PLUGINS): Add related automake conditional.
* configure: Regenerate.
* config.in: Likewise.
* Makefile.am (PLUGIN_C): Declare plugin C source file, conditional
on ENABLE_PLUGINS being defined.
(PLUGIN_H): Likewise for header file.
(PLUGIN_OBJECT): Likewise for object file.
(PLUGIN_CFLAGS): Likewise -D flag required to compile plugin support.
(AM_CPPFLAGS): Use PLUGIN_CFLAGS.
(CFILES): Use PLUGIN_C.
(HFILES): Use PLUGIN_H.
(OFILES): Use PLUGIN_OBJECT.
(ld_new_SOURCES): Use PLUGIN_C.
(noinst_LTLIBRARIES)[ENABLE_PLUGINS]: Declare test plugin.
(libldtestplug_la_SOURCES)[ENABLE_PLUGINS]: Add automake definition
for test plugin.
(libldtestplug_la_CFLAGS)[ENABLE_PLUGINS]: Likewise.
(libldtestplug_la_LDFLAGS)[ENABLE_PLUGINS]: Likewise.
* Makefile.in: Regenerate.
* sysdep.h: Include stdarg.h, unistd.h and one of fcntl.h or
sys/file.h where available.  Include dlfcn.h when ENABLE_PLUGINS.
(O_RDONLY): Supply default definition likewise to bfd's sysdep.h
(O_WRONLY): Likewise.
(O_RDWR): Likewise.
(O_ACCMODE): Likewise.
(O_BINARY): Likewise.
(SEEK_SET): Likewise.
(SEEK_CUR): Likewise.
(SEEK_END): Likewise.
* ldmisc.c (vfinfo): Make non-static.  Add %p format char.
* ldmisc.h (vfinfo): Declare extern prototype.
* lexsup.c (enum option_values)[ENABLE_PLUGINS]: Add new entries for
OPTION_PLUGIN and OPTION_PLUGIN_OPT.
(ld_options[])[ENABLE_PLUGINS]: Add option data for the above two.
(parse_args)[ENABLE_PLUGINS]: Handle them, and load all plugins once
option parsing is complete.
* ldmain.c (main)[ENABLE_PLUGINS]: Call plugin cleanup hooks just
after lang_finish.
* plugin.c: New source file.
* plugin.h: Likewise new header.
* testplug.c: New source file.

    ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 1/6).
* ld-bootstrap/bootstrap.exp: Skip static tests also if LD plugins
are enabled.
* lib/ld-lib.exp (proc regexp_diff): Extend verbose debug output.
(proc set_file_contents): Write a file with the supplied content.
(run_ld_link_tests): Add new 'ld' action to test linker output.
(proc check_plugin_api_available): Return true if linker under test
supports the plugin API.
* ld-plugin/func.c: New test source file.
* ld-plugin/main.c: Likewise.
* ld-plugin/text.c: Likewise.
* ld-plugin/plugin-1.d: New dump test output pattern script.
* ld-plugin/plugin-2.d: Likewise.
* ld-plugin/plugin-3.d: Likewise.
* ld-plugin/plugin-4.d: Likewise.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin.exp: New test control script.
---
[PATCH] Implement claim file and all symbols read hooks and add symbols callback.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 2/6).
* ldfile.c (ldfile_try_open_bfd)[ENABLE_PLUGINS]: Don't return early
during compat checks if they pass, instead offer any successfully
opened and accepted file to the plugin claim file hooks chain.  Create
a dummy bfd to accept symbols added by the plugin, if the plugin
claims the file.
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Call plugin all symbols
read hook chain before ldemul_after_open.
* ldlang.h (struct lang_input_statement_struct): Add new single-bit
'claimed' flag.
* plugin.c (IRONLY_SUFFIX): New macro for dummy bfd file suffix.
(IRONLY_SUFFIX_LEN): Length of the above string.
(plugin_get_ir_dummy_bfd): New function to create the dummy bfd used
to store symbols for ir-only files.
(is_ir_dummy_bfd): New function to check if a bfd is ir-only.
(asymbol_from_plugin_symbol): New function converts symbol formats.
(add_symbols): Call it to convert plugin syms to bfd syms and add
them to the dummy bfd.
* plugin.h: Add missing include guards.
(plugin_get_ir_dummy_bfd): Add prototype.
(is_ir_dummy_bfd): Likewise.
* testplug.c (TV_MESSAGE): New helper macro.
(struct claim_file): New struct.
(claim_file_t): New typedef.
(tag_names[]): Make static and const.
(claimfiles_list): New variable.
(claimfiles_tail_chain_ptr): Likewise.
(last_claimfile): Likewise.
(record_claim_file): Record a file to claim on a singly-linked list.
(parse_symdefstr): Parse an ASCII representation of a symbol from a
plugin option into the fields of a struct ld_plugin_symbol.
(record_claimed_file_symbol):  Use it to parse plugin option for
adding a symbol.
(parse_option): Parse claim file and add symbol options.
(dump_tv_tag): Use TV_MESSAGE.
(onload): Likewise.
(onclaim_file): Make static.  Use TV_MESSAGE.  Scan list of files to
claim and claim this file if required, adding any symbols specified.
(onall_symbols_read): Make static and use TV_MESSAGE.
(oncleanup): Likewise.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 2/6).
* ld-plugin/plugin-3.d: Enable regexes for new functionality.
* ld-plugin/plugin-5.d: Likewise.
* ld-plugin/plugin-6.d: New testcase.
* ld-plugin/plugin-7.d: Likewise.
* ld-plugin/plugin.exp: Use 'nm' on compiled test objects to determine
whether symbols in plugin arguments need an underscore prefix.  Add
new plugin-6.d and plugin-7.d testcases.
---
[PATCH] Implement get symbols callback.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 3/6).
* ldmain.c (notice)[ENABLE_PLUGINS]: Call plugin_notice.
* plugin.c (non_ironly_hash): Add new bfd hash table.
(plugin_load_plugins): Exit early if no plugins to load.  If plugins
do load successfully, set notice_all flag in link info.
(get_symbols): Implement.
(plugin_load_plugins): Exit early if no plugins to load, else after
loading plugins successfully enable notice_all mode.
(init_non_ironly_hash): Lazily init non_ironly_hash table.
(plugin_notice): Record symbols referenced from non-IR files in the
non_ironly_hash.  Suppress tracing, cref generation and nocrossrefs
tracking for symbols from dummy IR bfds.
* plugin.h: Fix formatting.
(plugin_notice): Add prototype.
* testplug.c (dumpresolutions): New global var.
(parse_options): Accept "dumpresolutions".
(onall_symbols_read): Get syms and dump resolutions if it was given.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 3/6).
* ld-plugin/plugin-8.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Implement add input file, add input lib and set extra lib path callbacks.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 4/6).
* ldlang.c (lang_process)[ENABLE_PLUGINS]: Move invocation of
plugin_call_all_symbols_read to before setting of gc_sym_list, and
open any new input files that may have been added during it.
* ldmain.c (multiple_definition)[ENABLE_PLUGINS]: Call out to
plugin_multiple_definition and let it have first say over what to do
with the clashing definitions.
* plugin.c (no_more_claiming): New boolean variable.
(plugin_cached_allow_multiple_defs): Likewise.
(add_input_file): Implement.
(add_input_library): Likewise.
(set_extra_library_path): Likewise.
(plugin_call_claim_file): Don't do anything when no_more_claiming set.
(plugin_call_all_symbols_read): Set it.  Disable link info
"allow_multiple_definition" flag, but cache its value.
(plugin_multiple_definition): New function.
* plugin.h (plugin_multiple_definition): Add prototype.
* testplug.c (addfile_enum_t): New enumerated typedef.
(add_file_t): New struct typedef.
(addfiles_list): New variable.
(addfiles_tail_chain_ptr): Likewise.
(record_add_file): New function.
(parse_option): Parse "add:", "lib:" and "dir:" options and call it.
(onall_symbols_read): Iterate the list of new files, libs and dirs,
adding them.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 4/6).
* ld-plugin/plugin-9.d: New testcase.
* ld-plugin/plugin.exp: Invoke it.
---
[PATCH] Add ELF symbol visibility support to plugin interface.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 5/6).
* plugin.c (asymbol_from_plugin_symbol): If the bfd is an ELF bfd,
find the elf symbol data and set the visibility in the st_other field.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 5/6).
* ld-plugin/plugin-ignore.d: New dump test control script.
* ld-plugin/plugin-vis-1.d: Likewise.
* ld-plugin/plugin.exp: Add list of ELF-only tests and run them if
testing on an ELF target.
---
[PATCH] Add archive support to plugin interface.

  bfd/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* aoutx.h (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* cofflink.c (coff_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(coff_link_check_archive_element): Handle substitute bfd if it
was set during add_archive_element callback in the above.
* ecoff.c (read_ext_syms_and_strs): New function holds symbol-reading
code factored-out from ecoff_link_check_archive_element.
(reread_ext_syms_and_strs): Clear old symbols and call it.
(ecoff_link_check_archive_element):  Use the above.  Handle substitute
BFD if one is set by add_archive_element callback.
(ecoff_link_add_archive_symbols): Likewise allow bfd substitution.
* elflink.c (elf_link_add_archive_symbols): Likewise.
* linker.c (generic_link_check_archive_element): Likewise.
* pdp11.c (aout_link_check_ar_symbols): Take new "subsbfd" reference
parameter and pass it when invoking add_archive_element callback.
(aout_link_check_archive_element): Handle substitute bfd if it was
set during add_archive_element callback in the above.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Handle substitute
BFD if one is set by add_archive_element callback.
* xcofflink.c (xcoff_link_check_dynamic_ar_symbols): Take new "subsbfd"
reference parameter and pass it when invoking add_archive_element
callback.
(xcoff_link_check_ar_symbols): Likewise.
(xcoff_link_check_archive_element): Handle bfd substitution if it was
set by callback in the above.

  include/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* bfdlink.h (struct_bfd_link_callbacks): Document new argument
to add_archive_element callback used to return a replacement bfd which
is to be added to the hash table in place of the original element.

  ld/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* ldlang.c (load_symbols): Handle bfd subsitution when calling the
add_archive_element callback.
* ldmain.c (add_archive_element)[ENABLE_PLUGINS]: Offer the archive
member to the plugins and if claimed set "subsbfd" output parameter to
point to the dummy IR-only BFD.

  ld/testsuite/ChangeLog:

2010-10-14  Dave Korn  <dave.korn.cygwin@gmail.com>

Apply LD plugin patch series (part 6/6).
* ld-plugin/plugin-10.d: New dump test control script.
* ld-plugin/plugin-11.d: Likewise.
* ld-plugin/plugin.exp: Run them.
---

13 years ago*** empty log message ***
gdbadmin [Thu, 14 Oct 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

13 years agodaily update
amodra [Wed, 13 Oct 2010 23:00:05 +0000 (23:00 +0000)]
daily update

13 years ago New python module gdb.types.
devans [Wed, 13 Oct 2010 20:08:39 +0000 (20:08 +0000)]
New python module gdb.types.
* NEWS: Document it.
* data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
* python/lib/gdb/types.py: New file.

testsuite/
* lib/gdb-python.exp (gdb_check_python_config): New function.
* gdb.python/Makefile.in (EXECUTABLES): Add lib-types.
* gdb.python/lib-types.cc: New file.
* gdb.python/lib-types.exp: New file.

doc/
* gdb.texinfo (Python): Add "Python modules".
(Types in Python): Add reference to gdb.types section.
(Python modules): New node.

13 years ago * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
tromey [Wed, 13 Oct 2010 17:38:05 +0000 (17:38 +0000)]
* language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.

13 years ago * c-typeprint.c: Whitespace cleanup.
devans [Wed, 13 Oct 2010 15:10:07 +0000 (15:10 +0000)]
* c-typeprint.c: Whitespace cleanup.
(cp_type_print_method_args): Remove unnecessary forward decl.
(cp_type_print_derivation_info): Ditto.
(c_type_print_varspec_prefix): Mark as static at definition.
(c_type_print_modifier): Fix arg descriptions.