binutils-gdb.git
14 years agodaily update
Alan Modra [Thu, 28 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago * gdb.mi/mi-nonstop.exp (mi_nonstop_resume): New function.
Daniel Jacobowitz [Thu, 28 Jan 2010 22:14:12 +0000 (22:14 +0000)]
* gdb.mi/mi-nonstop.exp (mi_nonstop_resume): New function.
(Top level): Use it to resume.
* lib/mi-support.exp (mi_send_resuming_command_raw): Recognize
the Thumb mode displaced stepping error as unsupported.

14 years ago * regcache.c (regcache_xmalloc): Add aspace argument. Use it
Daniel Jacobowitz [Thu, 28 Jan 2010 22:07:58 +0000 (22:07 +0000)]
* regcache.c (regcache_xmalloc): Add aspace argument.  Use it
for the new regcache.  All callers updated.
(regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
(get_thread_arch_regcache): Do not set aspace here.
* regcache.h (regcache_xmalloc): Update declaration.

* frame.c, infcall.c, ppc-linux-tdep.c: Calls to
regcache_xmalloc updated.

14 years ago * gas/pe/section-align-1.d: Don't test section flags.
Dave Korn [Thu, 28 Jan 2010 19:00:03 +0000 (19:00 +0000)]
* gas/pe/section-align-1.d: Don't test section flags.
* gas/pe/section-align-2.d: Likewise.

14 years ago2010-01-28 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Thu, 28 Jan 2010 17:58:02 +0000 (17:58 +0000)]
2010-01-28  Sami Wagiaalla  <swagiaal@redhat.com>

    * gdb.cp/nsusing.exp: Added more tests.
    * gdb.cp/nsrecurs.exp: Ditto.
    * gdb.cp/nsusing.cc: Added test functions.
    * gdb.cp/nsrecurs.cc: Ditto.

14 years agoAllow VL=1 on scalar FMA instructions.
H.J. Lu [Thu, 28 Jan 2010 15:33:23 +0000 (15:33 +0000)]
Allow VL=1 on scalar FMA instructions.

gas/testsuite/

2010-01-28  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/fma-scalar-intel.d: New.
* gas/i386/fma-scalar.d: Likewise.
* gas/i386/fma-scalar.s: Likewise.
* gas/i386/x86-64-fma-scalar-intel.d: Likewise.
* gas/i386/x86-64-fma-scalar.d: Likewise.
* gas/i386/x86-64-fma-scalar.s: Likewise.

* gas/i386/i386.exp: Run fma-scalar, fma-scalar-intel,
x86-64-fma-scalar and x86-64-fma-scalar-intel.

opcodes/

2010-01-28  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (EXVexWdqScalar): New.
(vex_scalar_w_dq_mode): Likewise.
(prefix_table): Update entries for PREFIX_VEX_3899,
PREFIX_VEX_389B, PREFIX_VEX_389D, PREFIX_VEX_389F,
PREFIX_VEX_38A9, PREFIX_VEX_38AB, PREFIX_VEX_38AD,
PREFIX_VEX_38AF, PREFIX_VEX_38B9, PREFIX_VEX_38BB,
PREFIX_VEX_38BD and PREFIX_VEX_38BF.
(intel_operand_size): Handle vex_scalar_w_dq_mode.
(OP_EX): Likewise.

14 years ago PR 11225
Nick Clifton [Thu, 28 Jan 2010 15:25:20 +0000 (15:25 +0000)]
    PR 11225
        * objdump.c (only): Replace with linked list.
        (only_size, only_used): Replace with only_list.
        (process_section_p): Set seen field on matches sections.
        (add_only): New function.
        (free_only_list): New function.
        (disassemble_section): Check only_list.
        (main): Use add_only and free_only_list.

        * gas/pe/aligncomm-c.d: Dump all sections.

        * ld-sh/refdbg-0-dso.d: Dump all sections.

14 years agoAnother -Wunused-function error in procfs.c (sparc-solaris)
Joel Brobecker [Thu, 28 Jan 2010 08:19:29 +0000 (08:19 +0000)]
Another -Wunused-function error in procfs.c (sparc-solaris)

        * procfs.c (insert_dbx_link_breakpoint): Delete declaration.  Move up.
        Only define if SYS_syssgi is defined.
        (remove_dbx_link_breakpoint): Delete declaration.  Move up.
        (dbx_link_addr, insert_dbx_link_bpt_in_file)
        (insert_dbx_link_bpt_in_region): Move up.  Only define if SYS_syssgi
        is itself defined.

14 years ago*** empty log message ***
gdbadmin [Thu, 28 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 27 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agogas/ChangeLog:
Dave Korn [Wed, 27 Jan 2010 22:01:38 +0000 (22:01 +0000)]
gas/ChangeLog:

* NEWS: Mention new feature.
* config/obj-coff.c (obj_coff_section): Accept digits and use
to override default section alignment power if specified.
* doc/as.texinfo (.section directive): Update documentation.

gas/testsuite/ChangeLog:

* gas/pe/section-align-1.s: New test source file.
* gas/pe/section-align-1.d: Likewise control script.
* gas/pe/section-align-2.s: Likewise ...
* gas/pe/section-align-2.d: ... and likewise.
* gas/pe/pe.exp: Invoke new testcases.

14 years agogdb/testsuite/
Jan Kratochvil [Wed, 27 Jan 2010 20:53:22 +0000 (20:53 +0000)]
gdb/testsuite/
* gdb.base/break-interp.exp: Use [file tail $filename] to omit any
absolute directory pathnames in gdb.sum file.

14 years ago* windows-nat.c (windows_initialization_done): New variable.
Christopher Faylor [Wed, 27 Jan 2010 19:57:54 +0000 (19:57 +0000)]
* windows-nat.c (windows_initialization_done): New variable.
(get_windows_debug_event): Issue error when process dies before completely
initializing.
(do_initial_windows_stuff): Set flag to indicate when we are done with the
initial steps of attaching to the child.

14 years ago2010-01-27 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Wed, 27 Jan 2010 18:04:57 +0000 (18:04 +0000)]
2010-01-27  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/namespace-using.exp: Rename to nsusing.exp.
* gdb.cp/namespace-using.cc: Rename to nsusing.cc.

14 years ago2010-01-27 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 27 Jan 2010 16:43:27 +0000 (16:43 +0000)]
2010-01-27  Tristan Gingold  <gingold@adacore.com>

* vms.h: Remove trailing spaces.
(struct hdr_struct): Remove unused hdr_c_cpr field.
(enum file_format_enum): Add comments.
* vms.c (vms_bfd_print_private_bfd_data): New function that
replaces the macro.
Remove trailing spaces.
* vms-misc.c: Improve comments.
(_bfd_vms_get_object_record): Also handle files without pads.
* vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
* vms-gsd.c (struct flagdescstruct): Make name field const.
(gsyflagdesc): Fix typo.

14 years ago * arm.cc: Added support for ARM group relocations.
Ian Lance Taylor [Wed, 27 Jan 2010 15:17:46 +0000 (15:17 +0000)]
* arm.cc: Added support for ARM group relocations.
(Target_arm::reloc_needs_sym_origin): New method.
(Arm_relocate_functions::calc_grp_kn): New method.
(Arm_relocate_functions::calc_grp_residual): New method.
(Arm_relocate_functions::calc_grp_gn): New method.
(Arm_relocate_functions::arm_grp_alu): New Method.
(Arm_relocate_functions::arm_grp_ldr): New Method.
(Arm_relocate_functions::arm_grp_ldrs): New Method.
(Arm_relocate_functions::arm_grp_ldc): New Method.
(Target_arm::Scan::local): Handle the ARM group relocations.
(Target_arm::Scan::global): Likewise.
(Target_arm::Relocate::relocate): Likewise.
(Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
Likewise.

14 years agoAllow VL=1 on AVX scalar instructions.
H.J. Lu [Wed, 27 Jan 2010 14:34:40 +0000 (14:34 +0000)]
Allow VL=1 on AVX scalar instructions.

gas/

2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (avxscalar): New.
(OPTION_MAVXSCALAR): Likewise.
(build_vex_prefix): Select vector_length for scalar instructions
based on avxscalar.
(md_longopts): Add OPTION_MAVXSCALAR.
(md_parse_option): Handle OPTION_MAVXSCALAR.
(md_show_usage): Add -mavxscalar=.

* doc/c-i386.texi: Document -mavxscalar=.

gas/testsuite/

2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/avx-scalar-intel.d: New.
* gas/i386/avx-scalar.d: Likewise.
* gas/i386/avx-scalar.s: Likewise.
* gas/i386/x86-64-avx-scalar-intel.d: Likewise.
* gas/i386/x86-64-avx-scalar.d: Likewise.
* gas/i386/x86-64-avx-scalar.s: Likewise.

* gas/i386/i386.exp: Run avx-scalar, avx-scalar-intel,
x86-64-avx-scalar and x86-64-avx-scalar-intel.

opcodes/

2010-01-27  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (XMScalar): New.
(EXdScalar): Likewise.
(EXqScalar): Likewise.
(EXqScalarS): Likewise.
(VexScalar): Likewise.
(EXdVexScalarS): Likewise.
(EXqVexScalarS): Likewise.
(XMVexScalar): Likewise.
(scalar_mode): Likewise.
(d_scalar_mode): Likewise.
(d_scalar_swap_mode): Likewise.
(q_scalar_mode): Likewise.
(q_scalar_swap_mode): Likewise.
(vex_scalar_mode): Likewise.
(vex_len_table): Duplcate entries for VEX_LEN_10_P_1,
VEX_LEN_10_P_3, VEX_LEN_11_P_1, VEX_LEN_11_P_3, VEX_LEN_2A_P_1,
VEX_LEN_2A_P_3, VEX_LEN_2C_P_3, VEX_LEN_2D_P_1, VEX_LEN_2E_P_0,
VEX_LEN_2E_P_2, VEX_LEN_2F_P_2, VEX_LEN_51_P_1, VEX_LEN_51_P_3,
VEX_LEN_52_P_1, VEX_LEN_53_P_1, VEX_LEN_58_P_1, VEX_LEN_58_P_3,
VEX_LEN_59_P_1, VEX_LEN_5A_P_1, VEX_LEN_5A_P_3, VEX_LEN_5C_P_1,
VEX_LEN_5C_P_3, VEX_LEN_5D_P_1, VEX_LEN_5D_P_3, VEX_LEN_5E_P_1,
VEX_LEN_5E_P_3, VEX_LEN_5F_P_1, VEX_LEN_5F_P_3, VEX_LEN_6E_P_2,
VEX_LEN_7E_P_1, VEX_LEN_7E_P_2, VEX_LEN_D6_P_2, VEX_LEN_C2_P_1,
VEX_LEN_C2_P_3, VEX_LEN_3A0A_P_2 and VEX_LEN_3A0B_P_2.
(vex_w_table): Update entries for VEX_W_10_P_1, VEX_W_10_P_3,
VEX_W_11_P_1, VEX_W_11_P_3, VEX_W_2E_P_0, VEX_W_2E_P_2,
VEX_W_2F_P_0, VEX_W_2F_P_2, VEX_W_51_P_1, VEX_W_51_P_3,
VEX_W_52_P_1, VEX_W_53_P_1, VEX_W_58_P_1, VEX_W_58_P_3,
VEX_W_59_P_1, VEX_W_59_P_3, VEX_W_5A_P_1, VEX_W_5A_P_3,
VEX_W_5C_P_1, VEX_W_5C_P_3, VEX_W_5D_P_1, VEX_W_5D_P_3,
VEX_W_5E_P_1, VEX_W_5E_P_3, VEX_W_5F_P_1, VEX_W_5F_P_3,
VEX_W_7E_P_1, VEX_W_D6_P_2  VEX_W_C2_P_1, VEX_W_C2_P_3,
VEX_W_3A0A_P_2 and VEX_W_3A0B_P_2.
(intel_operand_size): Handle d_scalar_mode, d_scalar_swap_mode,
q_scalar_mode, q_scalar_swap_mode.
(OP_XMM): Handle scalar_mode.
(OP_EX): Handle d_scalar_mode, d_scalar_swap_mode, q_scalar_mode
and q_scalar_swap_mode.
(OP_VEX): Handle vex_scalar_mode.

14 years ago PR ld/11217
Alan Modra [Wed, 27 Jan 2010 12:44:07 +0000 (12:44 +0000)]
PR ld/11217
* elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
(ppc64_elf_setup_section_lists): Init them.
(ppc64_elf_next_toc_section): Don't partition multi-toc between .got
and .toc on the same input file.
(ppc64_elf_relocate_section): Correct GOT entry offset.

14 years ago * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
Doug Evans [Wed, 27 Jan 2010 00:32:09 +0000 (00:32 +0000)]
* solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.

14 years agogdb/
Jan Kratochvil [Wed, 27 Jan 2010 00:15:59 +0000 (00:15 +0000)]
gdb/
* symtab.h (struct symbol <symtab>): New comment on NULL values.

14 years ago*** empty log message ***
gdbadmin [Wed, 27 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * breakpoint.c (bpstat_stop_status): Delete useless code.
Doug Evans [Tue, 26 Jan 2010 23:56:53 +0000 (23:56 +0000)]
* breakpoint.c (bpstat_stop_status): Delete useless code.

14 years agogdb/
Jan Kratochvil [Tue, 26 Jan 2010 23:40:13 +0000 (23:40 +0000)]
gdb/
* printcmd.c (display_uses_solib_p): Remove variable section.  Access
objfile via SYMBOL_SYMTAB.

14 years agodaily update
Alan Modra [Tue, 26 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago2010-01-26 Doug Kwan <dougkwan@google.com>
Doug Kwan [Tue, 26 Jan 2010 21:29:10 +0000 (21:29 +0000)]
2010-01-26  Doug Kwan  <dougkwan@google.com>

* arm.cc (set): Include.
(class Arm_exidx_fixup): Change type of last_input_section_ to const
pointer type.
  (Arm_output_section::Text_section_list): New type.
(Arm_output_section::append_text_sections_to_list): New method.
(Arm_output_section::fix_exidx_coverage): Ditto.
(Arm_relobj::Arm_relobj): Initialize exidx_section_map_.
    (Arm_relobj::convert_input_section_to_relaxed_section): Use
Relobj::set_section_offset() instead of
Sized_relobj::invalidate_section_offset().
    (Arm_relobj::section_needs_reloc_stub_scanning): Add an extra
parameter for section headers. Ignore relocation sections for
unallocated sections and EXIDX sections.
(Target_arm::fix_exidx_coverage): New method.
(Target_arm::output_section_address_less_than): New type.
(Arm_exidx_fixup::add_exidx_cantunwind_as_needed): Use index of the
linked text section instead of the EXIDX section.
(Arm_output_section::create_stub_group): Add an assertion to check
that this is not an EXIDX output section.
(Arm_output_section::append_text_sections_to_list): New method.
(Arm_output_section::fix_exidx_coverage): Ditto.
(Arm_relobj::scan_sections_for_stubs): Adjust call to
    Arm_relobj::section_needs_reloc_stub_scanning.
(Target_arm::do_relax): Fix EXIDX output section coverage in the
first pass.
(Target_arm::fix_exidx_coverage): New method.
* object.h (Relobj::set_output_section): New method.
(Sized_relobj::invalidate_section_offset): Remove method.
(Sized_relobj::do_invalidate_section_offset): Remove method.
(Sized_relobj::do_set_section_offset): Handle offset value -1.

14 years agogdb
Tom Tromey [Tue, 26 Jan 2010 16:53:44 +0000 (16:53 +0000)]
gdb
PR exp/7643:
* eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
coerce_array on result.
gdb/testsuite
PR exp/7643:
* gdb.base/printcmds.exp (test_print_string_constants): Remove
setup_kfail.

14 years ago 2010-01-14 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Tue, 26 Jan 2010 16:47:35 +0000 (16:47 +0000)]
 2010-01-14  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/nsrecurs.exp: New test.
* gdb.cp/nsrecurs.cc: New test program.
* gdb.cp/nsstress.exp: New test.
* gdb.cp/nsstress.cc: New test program.
* gdb.cp/nsdecl.exp: New test.
* gdb.cp/nsdecl.cc: New test program.

 2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>

* cp-namespace.c (cp_lookup_symbol_namespace): Added
search_parent argument.
(cp_add_using): Initialize 'searched' field.
(reset_directive_searched): New function.
* cp-support.h: Add 'searched' field to using_direct struct.
(cp_lookup_symbol_imports): Ditto.
* cp-namespace.c (cp_lookup_symbol_imports): Ditto.
Perform recursive search.
Implement non parent search.
* valops.c (value_maybe_namespace_elt): Updated.

14 years ago2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
Sami Wagiaalla [Tue, 26 Jan 2010 15:48:25 +0000 (15:48 +0000)]
2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>

* gdb.cp/namespace-using.exp: Add test for printing of namespaces
imported into file scope.
Marked test as xfail.
* gdb.cp/namespace-using.cc (marker5): New function.
* gdb.cp/shadow.exp: New test.
* gdb.cp/shadow.cc: New test program.
* gdb.cp/nsimport.exp: New test.
* gdb.cp/nsimport.cc: New test program.

2010-01-26  Sami Wagiaalla  <swagiaal@redhat.com>

PR gdb/10929:
* dwarf2read.c (read_lexical_block_scope): Create blocks for
scopes which contain using directives even if they contain no
declarations.
* symtab.c (lookup_symbol_aux): Pass lowest level block to
la_lookup_symbol_nonlocal.
* cp-namespace.c (cp_lookup_symbol_nonlocal): call
cp_lookup_symbol_namespace.
(cp_lookup_symbol_namespace): Perform an import lookup at every
block level.
(cp_lookup_symbol_imports): New function.
(cp_lookup_symbol_in_namespace): New function.

14 years ago2010-01-26 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 26 Jan 2010 13:42:26 +0000 (13:42 +0000)]
2010-01-26  Tristan Gingold  <gingold@adacore.com>

* targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
(bfd_target): Add _bfd_write_ar_hdr_fn field.
* archive.c (is_bsd44_extended_name): New macro.
(_bfd_generic_read_ar_hdr_mag): Use it.  Add extra_size.
(bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
name.
(_bfd_archive_bsd44_construct_extended_name_table): New function.
(_bfd_generic_write_ar_hdr): Ditto.
(_bfd_bsd44_write_ar_hdr): Ditto.
(_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
(bsd_write_armap): Adjust firstreal computation.
* libbfd-in.h (struct areltdata): Add extra_size field.
(_bfd_generic_write_ar_hdr): Add prototype.
(_bfd_bsd44_write_ar_hdr): Ditto.
(_bfd_write_ar_hdr): Define.
(_bfd_noarchive_write_ar_hdr): Ditto.
(_bfd_archive_bsd_write_ar_hdr): Ditto.
(_bfd_archive_coff_write_ar_hdr): Ditto.
(_bfd_archive_bsd44_slurp_armap): Ditto.
(_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
(_bfd_archive_bsd44_construct_extended_name_table): New prototype.
(_bfd_archive_bsd44_truncate_arname): Ditto.
(_bfd_archive_bsd44_write_armap): Ditto.
(_bfd_archive_bsd44_read_ar_hdr): Ditto.
(_bfd_archive_bsd44_write_ar_hdr): Ditto.
(_bfd_archive_bsd44_openr_next_archived_file): Ditto.
(_bfd_archive_bsd44_get_elt_at_index): Ditto.
(_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
(_bfd_archive_bsd44_update_armap_timestamp): Ditto.
* libbfd.h: Regenerate.
* oasys.c (oasys_write_ar_hdr): Define.
* libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
* ieee.c (ieee_write_ar_hdr): Define.
* elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
* coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
(bfd_pmac_xcoff_backend_data): Ditto.
* coff64-rs6000.c (rs6000coff64_vec): Ditto.
(bfd_xcoff_aix5_backend_data): Ditto.
* coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
* aout-target.h (MY_write_ar_hdr): Define it if not defined.
* aout-tic30.c (MY_write_ar_hdr): Ditto.
* mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
(bfd_mach_o_construct_extended_name_table)
(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
(bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
* mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
(bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
(bfd_mach_o_construct_extended_name_table)
(bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
(bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
(bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
* bfd-in2.h: Regenerate.

14 years agoProperly check undefined symbols when gc_sections is active.
H.J. Lu [Tue, 26 Jan 2010 13:21:36 +0000 (13:21 +0000)]
Properly check undefined symbols when gc_sections is active.

bfd/

2010-01-26  Alan Modra  <amodra@gmail.com>
    H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11218
* elflink.c (elf_link_output_extsym): Do not ignore undefined
symbols with ref_regular set when gc_sections is active.

ld/testsuite/

2010-01-26  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/11218
* ld-gc/dummy.s: New.
* ld-gc/pr11218-1.c: Likewise.
* ld-gc/pr11218-2.c: Likewise.
* ld-gc/pr11218.d: Likewise.

14 years ago2010-01-26 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 26 Jan 2010 13:13:33 +0000 (13:13 +0000)]
2010-01-26  Tristan Gingold  <gingold@adacore.com>

* Makefile.am (bin2c): Add libintl dependance and library.
* Makefile.in: Regenerate.

14 years ago*** empty log message ***
gdbadmin [Tue, 26 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Mon, 25 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agogdb
Tom Tromey [Mon, 25 Jan 2010 19:31:24 +0000 (19:31 +0000)]
gdb
PR gdb/11049:
* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
result.
gdb/testsuite
PR gdb/11049:
* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
with "set print null-stop on".

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Mon, 25 Jan 2010 18:06:22 +0000 (18:06 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Make inclusion of
target-libgomp conditional on libgomb being in target_configdirs.
* configure: Regenerate.

14 years ago2010-01-25 Doug Kwan <dougkwan@google.com>
Doug Kwan [Mon, 25 Jan 2010 17:30:29 +0000 (17:30 +0000)]
2010-01-25  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_exidx_merged_section::do_output_offset):
Fix warning due to signed and unsigned comparison on a 32-bit host.

14 years ago * configure.ac: Only use host_os part when disabling TUI on osf.
Rainer Orth [Mon, 25 Jan 2010 13:22:02 +0000 (13:22 +0000)]
* configure.ac: Only use host_os part when disabling TUI on osf.
Use test to check variables, prefix strings with x.
* configure: Regenerate.

* solib-osf.c (osf_current_sos): Initialize tail.

14 years ago2010-01-25 gingold <gingold@adacore.com>
Tristan Gingold [Mon, 25 Jan 2010 10:54:58 +0000 (10:54 +0000)]
2010-01-25  gingold  <gingold@adacore.com>

        * windows-nat.c (windows_continue): Use %x to print thread id.
        (get_windows_debug_event): Ditto.

14 years ago PR ld/11217
Alan Modra [Mon, 25 Jan 2010 06:47:16 +0000 (06:47 +0000)]
PR ld/11217
* elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
with relocations against undefined weak symbols.
(ppc64_elf_relocate_section): Don't optimize calls to undefined
weak functions if the symbol is dynamic.
(ppc64_elf_relocate_section): Edit tprel tls sequences.
* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
(_bfd_elf_ppc_at_tprel_transform): New function.
* bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
* bfd-in2.h: Regenerate.

14 years ago common/
Doug Evans [Mon, 25 Jan 2010 04:08:52 +0000 (04:08 +0000)]
common/
* cgen-accfp.c (fextsfdf): New arg how.  All callers updated.
(ftruncdfsf, floatsisf, flostsidf, ufloatsisf, fixsfsi, fixdfsi,
ufixsfsi): Ditto.
* cgen-fpu.h (CGEN_FPCONV_KIND): New enum.
(struct cgen_fp_ops): Update signatures of floating point conversion
operations.

frv/
* sem.c: Regenerate.

sh64/
* cpu.h: Regenerate.

14 years ago * desc-cpu.scm (cgen-desc.h): Don't print virtual enums.
Doug Evans [Mon, 25 Jan 2010 03:50:44 +0000 (03:50 +0000)]
* desc-cpu.scm (cgen-desc.h): Don't print virtual enums.
* sid-cpu.scm (cgen-desc.h): Ditto.
* enum.scm (enum-builtin!): New function.
* read.scm (reader-install-builtin!): Call it.
* rtl-c.scm (s-convop): Delete, replaced with ...
(s-int-convop, s-float-convop): ... new fns.
(ext, zext, trunc): Update.
(fext, ftrunc, float, ufloat, fix, ufix): Update.
* rtx-funcs.scm (fext, ftrunc, float, ufloat, fix, ufix): New parameter
`how'.
* cpu/mep-fmax.cpu (fcvtsw): Update.
* cpu/sh.cpu (h-fsd, h-fmov): Update.
* doc/rtl.texi (float-convop): Update.

* frv.cpu (floating-point-conversion): Update call to fp conv op.
(floating-point-dual-conversion, ne-floating-point-dual-conversion,
conditional-floating-point-conversion, ne-floating-point-conversion,
float-parallel-mul-add-double-semantics): Ditto.

14 years ago * Make-common.in (CGEN_SIM_DEPS): Define.
Doug Evans [Mon, 25 Jan 2010 00:48:17 +0000 (00:48 +0000)]
* Make-common.in (CGEN_SIM_DEPS): Define.
(CGEN_INCLUDE_DEPS): Use it.
(CGEN_MAIN_CPU_DEPS): Simplify.

14 years ago*** empty log message ***
gdbadmin [Mon, 25 Jan 2010 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

14 years agoRemove trailing { Bad_Opcode }.
H.J. Lu [Sun, 24 Jan 2010 23:22:43 +0000 (23:22 +0000)]
Remove trailing { Bad_Opcode }.

14 years agodaily update
Alan Modra [Sun, 24 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agoRemove trailing { Bad_Opcode } in vex_len_table.
H.J. Lu [Sun, 24 Jan 2010 21:35:13 +0000 (21:35 +0000)]
Remove trailing { Bad_Opcode } in vex_len_table.

2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (vex_len_table): Remove trailing { Bad_Opcode }.

14 years agoRemove trailing { Bad_Opcode }.
H.J. Lu [Sun, 24 Jan 2010 20:39:40 +0000 (20:39 +0000)]
Remove trailing { Bad_Opcode }.

2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (prefix_table): Remove trailing { Bad_Opcode }.

14 years agoRemove trailing "(bad)" entries and replace { "(bad)", { XX } }
H.J. Lu [Sun, 24 Jan 2010 18:24:23 +0000 (18:24 +0000)]
Remove trailing "(bad)" entries and replace { "(bad)", { XX } }
with { Bad_Opcode }.

2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>

* i386-dis.c (Bad_Opcode): New.
(bad_opcode): Likewise.
(dis386): Replace { "(bad)", { XX } } with { Bad_Opcode }.
(dis386_twobyte): Likewise.
(reg_table): Likewise.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(vex_len_table): Likewise.
(vex_w_table): Likewise.
(mod_table): Likewise.
(rm_table): Likewise.
(float_reg): Likewise.
(reg_table): Remove trailing "(bad)" entries.
(prefix_table): Likewise.
(x86_64_table): Likewise.
(vex_len_table): Likewise.
(vex_w_table): Likewise.
(mod_table): Likewise.
(rm_table): Likewise.
(get_valid_dis386): Handle bytemode 0.

14 years agoSet the first 3byte VEX prefix individually.
H.J. Lu [Sun, 24 Jan 2010 15:44:05 +0000 (15:44 +0000)]
Set the first 3byte VEX prefix individually.

2010-01-24  H.J. Lu  <hongjiu.lu@intel.com>

* config/tc-i386.c (build_vex_prefix): Set i.vex.bytes[0] to
0xc4 individually.

14 years agogdb/testsuite/
Jan Kratochvil [Sun, 24 Jan 2010 04:29:32 +0000 (04:29 +0000)]
gdb/testsuite/
* gdb.arch/i386-bp_permanent.exp (Disassemble function '$function'):
Adjust it for DISASSEMBLY_OMIT_FNAME.

14 years agoReplace "Vex" with "Vex=3" on AVX scalar instructions.
H.J. Lu [Sun, 24 Jan 2010 00:59:13 +0000 (00:59 +0000)]
Replace "Vex" with "Vex=3" on AVX scalar instructions.

2010-01-23  H.J. Lu  <hongjiu.lu@intel.com>

* i386-opc.h (VEXScalar): New.

* i386-opc.tbl: Replace "Vex" with "Vex=3" on AVX scalar
instructions.
* i386-tbl.h: Regenerated.

14 years ago*** empty log message ***
gdbadmin [Sun, 24 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Sat, 23 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years agoAdd more AVX tests.
H.J. Lu [Sat, 23 Jan 2010 18:04:05 +0000 (18:04 +0000)]
Add more AVX tests.

2010-01-23  H.J. Lu  <hongjiu.lu@intel.com>

* gas/i386/avx.s: Add more tests.
* gas/i386/x86-64-avx.s: Likewise.

* gas/i386/avx-intel.d: Updated.
* gas/i386/avx.d: Likewise.
* gas/i386/x86-64-avx-intel.d: Likewise.
* gas/i386/x86-64-avx.d: Likewise.

14 years agobfd/
Richard Sandiford [Sat, 23 Jan 2010 12:05:33 +0000 (12:05 +0000)]
bfd/
* coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
(_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
* coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
bitsize to 1.
(xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.

gas/
* write.h (fix_at_start): Declare.
* write.c (fix_new_internal): Add at_beginning parameter.
Use it instead of REVERSE_SORT_RELOCS.  Fix the handling of
seg_fix_tailP for the at_beginning/REVERSE_SORT_RELOCS case.
(fix_new, fix_new_exp): Update accordingly.
(fix_at_start): New function.
* config/tc-ppc.c (md_pseudo_table): Add .ref to the OBJ_XCOFF section.
(ppc_ref): New function, for OBJ_XCOFF.
(md_apply_fix): Handle BFD_RELOC_NONE for OBJ_XCOFF.
* config/te-i386aix.h (REVERSE_SORT_RELOCS): Remove #undef.

gas/testsuite/
* gas/ppc/xcoff-ref-1.s, gas/ppc/xcoff-ref-1.l: New test.
* gas/ppc/aix.exp: Run it.

ld/testsuite/
* ld-powerpc/aix-ref-1-32.od, ld-powerpc/aix-ref-1-64.od,
ld-powerpc/aix-ref-1.s: New tests.
* ld-powerpc/aix52.exp: Run them.

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Sat, 23 Jan 2010 11:32:15 +0000 (11:32 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Include target-libgomp.
* configure: Regenerate.

14 years ago2010-01-22 Doug Kwan <dougkwan@google.com>
Doug Kwan [Sat, 23 Jan 2010 01:07:59 +0000 (01:07 +0000)]
2010-01-22  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::do_relax): Record an output section for section
offset adjustment it contains any stub table that has changed.
* layout.cc (Layout::clean_up_after_relaxation): Adjust section
offsets in an output section if necessary.
* output.cc (Output_section::Output_section): Initialize
section_offsets_need_adjustments_.
(Output_section::add_input_section_for_script): Renamed to
Output_section::add_simple_input_section.
(Output_section::save_states): Add a comment.
(Output_section::discard_states): New method defintion.
(Output_section::adjust_section_offsets): Same.
* output.h (Output_section::add_input_section_for_script): Renamed to
Output_section::add_simple_input_section.
(Output_section::discard_states): New method declaration.
(Output_section::adjust_section_offsets): Same.
(Output_section::section_offsets_need_adjustment,
Output_section::set_section_offsets_need_adjustment): New method
definitions.
(Output_section::section_offsets_need_adjustment_): New data member.
* script-sections.cc
(Output_section_element_input::set_section_address): Adjust code for
renaming of Output_section::add_input_section_for_script.
(Orphan_output_section::set_section_address): Same.

14 years ago*** empty log message ***
gdbadmin [Sat, 23 Jan 2010 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Fri, 22 Jan 2010 23:00:04 +0000 (23:00 +0000)]
daily update

14 years ago2010-01-22 Viktor Kutuzov <vkutuzov@accesssoftek.com>
Doug Kwan [Fri, 22 Jan 2010 19:43:00 +0000 (19:43 +0000)]
2010-01-22  Viktor Kutuzov  <vkutuzov@accesssoftek.com>

* gold/arm.cc (Target_arm): Updated fix_v4bx method and usage of
Fix_v4bx enum values .
* gold/options.h (General_options): New option definitions.
(General_options::fix_v4bx): New method.
(General_options::Fix_v4bx): New enum.
* gold/options.cc (General_options::parse_fix_v4bx): New method.
(General_options::parse_fix_v4bx_interworking): New method.

14 years ago2010-01-22 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 22 Jan 2010 17:53:18 +0000 (17:53 +0000)]
2010-01-22  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_exidx_fixup): New class.

14 years agogdb
Tom Tromey [Fri, 22 Jan 2010 17:06:49 +0000 (17:06 +0000)]
gdb
PR symtab/11199:
* dwarf2read.c (quirk_gcc_member_function_pointer): Change return
type and arguments.  Use smash_to_methodptr_type.
(read_structure_type): Call quirk_gcc_member_function_pointer
later.
* gdbtypes.h (smash_to_methodptr_type): Declare.
* gdbtypes.c (smash_to_methodptr_type): New function.
(lookup_methodptr_type): Use it.
gdb/testsuite
2010-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

PR symtab/11199:
* gdb.dwarf2/member-ptr-forwardref.exp,
gdb.dwarf2/member-ptr-forwardref.S: New.

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Fri, 22 Jan 2010 16:28:25 +0000 (16:28 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (target_configdirs): Substitute.
* Makefile.def: Bootstrap target module libgomp.
Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
* configure, Makefile.in: Regenerate.

14 years ago * cgen-ops.h (SUBWORDXFSI): Fix word ordering.
Doug Evans [Fri, 22 Jan 2010 08:23:26 +0000 (08:23 +0000)]
* cgen-ops.h (SUBWORDXFSI): Fix word ordering.
(SUBWORDTFSI, JOINSIDI): Ditto.

14 years ago2010-01-21 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 22 Jan 2010 06:06:46 +0000 (06:06 +0000)]
2010-01-21  Doug Kwan  <dougkwan@google.com>

elfcpp/ChangeLog:

* arm.h (EXIDX_CANTUNWIND): New enum.

gold/ChangeLog:

* arm.cc (Arm_exidx_cantunwind, Arm_exidx_merged_section): New
classes.
(Arm_exidx_section_offset_map): New type.

14 years ago2010-01-21 Doug Kwan <dougkwan@google.com>
Doug Kwan [Fri, 22 Jan 2010 00:51:17 +0000 (00:51 +0000)]
2010-01-21  Doug Kwan  <dougkwan@google.com>

* arm.cc (Arm_exidx_input_section): New class.
(Arm_relobj::exidx_input_section_by_link,
Arm_relobj::exidx_input_section_by_shndx,
Arm_relobj::make_exidx_input_section): New methods.
(read_arm_attributes_section): Remove.
(Arm_relobj::do_read_symbols): Look for ARM.exidx sections and record
information about them.
(Arm_dynobj::do_read_symbols): Move code in read_arm_attributes_section
to here.

14 years ago*** empty log message ***
gdbadmin [Fri, 22 Jan 2010 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Thu, 21 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache
Pedro Alves [Thu, 21 Jan 2010 22:10:18 +0000 (22:10 +0000)]
* linux-ppc-low.c (ppc_arch_setup): Adjust to regcache
          changes.

14 years ago * config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
Rainer Orth [Thu, 21 Jan 2010 20:58:34 +0000 (20:58 +0000)]
* config/te-solaris.h (DWARF2_EH_FRAME_READ_ONLY): Make read-only
on 64-bit Solaris/x86.
Include obj-format.h earlier.

14 years agogdb/gdbserver/
Jan Kratochvil [Thu, 21 Jan 2010 19:26:49 +0000 (19:26 +0000)]
gdb/gdbserver/
* linux-s390-low.c (s390_collect_ptrace_register)
(s390_supply_ptrace_register): Adjust it for the new regcache parameter.

14 years ago * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
Doug Evans [Thu, 21 Jan 2010 18:35:42 +0000 (18:35 +0000)]
* linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
(PTRACE_ARG4_TYPE): New macro.
(handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
(linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
(fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
(usr_store_inferior_registers): Ditto.
(linux_read_memory, linux_write_memory): Ditto.
(linux_test_for_tracefork): Ditto.

14 years ago * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
Doug Evans [Thu, 21 Jan 2010 18:27:32 +0000 (18:27 +0000)]
* linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.

14 years agoCorrect month.
H.J. Lu [Thu, 21 Jan 2010 17:32:32 +0000 (17:32 +0000)]
Correct month.

14 years agoAdd xsave64 and xrstor64.
H.J. Lu [Thu, 21 Jan 2010 17:30:14 +0000 (17:30 +0000)]
Add xsave64 and xrstor64.

gas/testsuite/

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

* gas/i386/x86-64-xsave.s: Add tests for xsave64 and xrstor64.

* gas/i386/x86-64-xsave-intel.d: Updated.
* gas/i386/x86-64-xsave.d: Likewise.

opcodes/

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

* i386-dis.c (mod_table): Use FXSAVE on xsave and xrstor.

* i386-opc.tbl: Add xsave64 and xrstor64.
* i386-tbl.h: Regenerated.

14 years ago PR symtab/11198:
Tom Tromey [Thu, 21 Jan 2010 17:12:18 +0000 (17:12 +0000)]
PR symtab/11198:
* symtab.h (lookup_minimal_symbol_and_objfile): Declare.
* minsyms.c (lookup_minimal_symbol_and_objfile): New function.
* glibc-tdep.c (find_minsym_and_objfile): Remove.
(glibc_skip_solib_resolver): Use
lookup_minimal_symbol_and_objfile.

14 years ago * proc-service.c (ps_lgetregs): Don't refetch registers from the
Pedro Alves [Thu, 21 Jan 2010 15:33:19 +0000 (15:33 +0000)]
* proc-service.c (ps_lgetregs): Don't refetch registers from the
target.

14 years ago * elflink.c (elf_link_add_object_symbols): Look up name of
Nick Clifton [Thu, 21 Jan 2010 14:54:40 +0000 (14:54 +0000)]
    * elflink.c (elf_link_add_object_symbols): Look up name of
        undefined symbol both before and after versioning has been
        applied.  Do not bother with symbols that are weakly undefined.

14 years ago2010-01-21 Kai Tietz <kai.tietz@onevision.com>
Kai Tietz [Thu, 21 Jan 2010 14:26:12 +0000 (14:26 +0000)]
2010-01-21  Kai Tietz  <kai.tietz@onevision.com>

        * inflow.c (check_syscall): Guard by #if clause for GO32 and
        WIN32 targets.

14 years ago * spu-low.c (spu_fetch_registers, spu_store_registers): Change
Pedro Alves [Thu, 21 Jan 2010 14:11:21 +0000 (14:11 +0000)]
* spu-low.c (spu_fetch_registers, spu_store_registers): Change
  prototype to take a regcache.  Adjust.

14 years ago2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 21 Jan 2010 11:40:28 +0000 (11:40 +0000)]
2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390.h (EF_S390_HIGH_GPRS): Added macro definition.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (s390_elf_final_processing): New function.
* config/tc-s390.h (elf_tc_final_processing): New macro definition.
(s390_elf_final_processing): Added prototype.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.

14 years ago PR 4437
Nick Clifton [Thu, 21 Jan 2010 10:31:32 +0000 (10:31 +0000)]
    PR 4437
        * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
        a missing file or library.  Instead mark the entry as missing and
        set the global flag to indicate that missing files were
        encountered.
        * ldlang.c (missing_files): New exported variable.
        (load_symbols): Skip loading if the file is missing.
        (open_input_bfds): Terminate link if any input files were
        missing.
        * ldlang.h (struct lang_input_statement_struct): Add missing_file
        field.
        Add export of missing_file variable.

14 years agoImprove doc on how to execute a Python script from GDB.
Joel Brobecker [Thu, 21 Jan 2010 04:34:52 +0000 (04:34 +0000)]
Improve doc on how to execute a Python script from GDB.

        * gdb.texinfo (File Options): Adjust the documentation of this
        switch to refer to the "source" command rather than partially
        duplicating some of the relevant information.
        (Extending GDB): Introduce and document the set/show script-extension
        setting.
        (Command Files): Add note explaining that the "source" command
        is also used to evalute scripts written in other languages.
        Remove the short slightly incorrect reference to sourcing Python
        scripts.
        (Python Commands): Document how to execute a Python script from GDB.

14 years agomerge from gcc
DJ Delorie [Thu, 21 Jan 2010 02:05:11 +0000 (02:05 +0000)]
merge from gcc

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

14 years agodaily update
Alan Modra [Wed, 20 Jan 2010 23:00:05 +0000 (23:00 +0000)]
daily update

14 years ago * regcache.h (struct thread_info): Forward declare.
Pedro Alves [Wed, 20 Jan 2010 22:55:38 +0000 (22:55 +0000)]
* regcache.h (struct thread_info): Forward declare.
(struct regcache): New.
(new_register_cache): Adjust prototype.
(get_thread_regcache): Declare.
(free_register_cache): Adjust prototype.
(registers_to_string, registers_from_string): Ditto.
(supply_register, supply_register_by_name, collect_register)
(collect_register_as_string, collect_register_by_name): Ditto.
* regcache.c (struct inferior_regcache_data): Delete.
(get_regcache): Rename to ...
(get_thread_regcache): ... this.  Adjust.  Switch inferior before
fetching registers.
(regcache_invalidate_one): Adjust.
(regcache_invalidate): Fix prototype.
(new_register_cache): Return the new register cache.
(free_register_cache): Change prototype.
(realloc_register_cache): Adjust.
(registers_to_string): Change prototype to take a regcache.  Adjust.
(registers_from_string): Ditto.
(register_data): Ditto.
(supply_register): Ditto.
(supply_register_by_name): Ditto.
(collect_register): Ditto.
(collect_register_as_string): Ditto.
(collect_register_by_name): Ditto.
* server.c (process_serial_event): Adjust.
* linux-low.h (regset_fill_func, regset_store_func): Change
prototype.
(get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
Change prototype.
* linux-low.c (get_stop_pc): Adjust.
(check_removed_breakpoint): Adjust.
(linux_wait_for_event): Adjust.
(linux_resume_one_lwp): Adjust.
(fetch_register): Add regcache parameter.  Adjust.
(usr_store_inferior_registers): Ditto.
(regsets_fetch_inferior_registers): Ditto.
(regsets_store_inferior_registers): Ditto.
(linux_fetch_registers, linux_store_registers): Ditto.
* i387-fp.c (i387_cache_to_fsave): Change prototype to take a
regcache.  Adjust.
(i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
* i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
prototype to take a regcache.
(i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
* remote-utils.c (convert_ascii_to_int, outreg)
(prepare_resume_reply): Change prototype to take a regcache.
Adjust.
* target.h (struct target_ops) <fetch_registers, store_registers>:
Change prototype to take a regcache.
(fetch_inferior_registers, store_inferior_registers): Change
prototype to take a regcache.  Adjust.
* proc-service.c (ps_lgetregs): Adjust.
* linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
(x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
(x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
take a regcache.  Adjust.
* linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
(arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
(arm_store_vfpregset, arm_get_pc, arm_set_pc):
(arm_breakpoint_at): Change prototype to take a regcache.  Adjust.
* linux-cris-low.c (cris_get_pc, cris_set_pc)
(cris_cannot_fetch_register):
(cris_breakpoint_at): Change prototype to take a regcache.
Adjust.
* linux-crisv32-low.c (cris_get_pc, cris_set_pc,
cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
to take a regcache.  Adjust.
(cris_breakpoint_at, cris_insert_point, cris_remove_point):
Adjust.
* linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
take a regcache.  Adjust.
* linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
(m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
(m68k_set_pc): Change prototype to take a regcache.  Adjust.
* linux-mips-low.c (mips_get_pc):
(mips_set_pc): Change prototype to take a regcache.  Adjust.
(mips_reinsert_addr): Adjust.
(mips_collect_register): Change prototype to take a regcache.
Adjust.
(mips_supply_register):
(mips_collect_register_32bit, mips_supply_register_32bit)
(mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
(mips_store_fpregset): Ditto.
* linux-ppc-low.c (ppc_supply_ptrace_register, ppc_supply_ptrace_register):
Ditto.
(parse_spufs_run): Adjust.
(ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
(ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
(ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
take a regcache.  Adjust.
* linux-s390-low.c (s390_collect_ptrace_register)
(s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
(s390_set_pc): Change prototype to take a regcache.  Adjust.
(s390_arch_setup): Adjust.
* linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
(sh_fill_gregset): Change prototype to take a regcache.  Adjust.
* linux-sparc-low.c (sparc_fill_gregset_to_stack)
(sparc_fill_gregset, sparc_store_gregset_from_stack)
(sparc_store_gregset, sparc_get_pc): Change prototype to take a
regcache.  Adjust.
(sparc_breakpoint_at): Adjust.
* linux-xtensa-low.c (xtensa_fill_gregset):
(xtensa_store_gregset):
(xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
(xtensa_set_pc): Change prototype to take a regcache.  Adjust.
* nto-low.c (nto_fetch_registers, nto_store_registers): Change
prototype to take a regcache.  Adjust.
* win32-arm-low.c (arm_fetch_inferior_register)
(arm_store_inferior_register): Change prototype to take a
regcache.  Adjust.
* win32-i386-low.c (i386_fetch_inferior_register)
(i386_store_inferior_register): Change prototype to take a
regcache.  Adjust.
* win32-low.c (child_fetch_inferior_registers)
(child_store_inferior_registers): Change prototype to take a
regcache.  Adjust.
(win32_wait): Adjust.
(win32_fetch_inferior_registers): Change prototype to take a
regcache.  Adjust.
(win32_store_inferior_registers): Adjust.
* win32-low.h (struct win32_target_ops) <fetch_inferior_register,
store_inferior_register>: Change prototype to take a regcache.

14 years agogdb/testsuite/
Jan Kratochvil [Wed, 20 Jan 2010 21:09:30 +0000 (21:09 +0000)]
gdb/testsuite/
* gdb.threads/watchthreads-reorder.c (gdbstop_mutex): Remove.
(thread1_func): Protect thread1_tid with thread1_tid_cond by
thread1_tid_mutex.  Remove gdbstop_mutex handling.
(thread2_func): Protect thread2_tid with thread2_tid_cond by
thread2_tid_mutex.  Remove gdbstop_mutex handling.
(main): Move thread1_tid_mutex and thread2_tid_mutex locks before
pthread_create.  Remove gdbstop_mutex handling.  New comment.  Replace
pthread_cond_wait conditionalizations by while loops.

14 years ago* linux-low.c (W_STOPCODE): Provide definition if missing.
Doug Evans [Wed, 20 Jan 2010 18:29:39 +0000 (18:29 +0000)]
* linux-low.c (W_STOPCODE): Provide definition if missing.

14 years ago * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
Doug Evans [Wed, 20 Jan 2010 18:22:48 +0000 (18:22 +0000)]
* linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
#ifdef.
(linux_wait_for_event1, linux_init_signals): Ditto.

14 years agogdb
Tom Tromey [Wed, 20 Jan 2010 18:06:16 +0000 (18:06 +0000)]
gdb
PR backtrace/10770:
* valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
BINOP_GEQ.  Handle BINOP_NOTEQUAL in the signed case.
* dwarf2expr.c (new_dwarf_expr_context): Allocate
dwarf_stack_values, not CORE_ADDRs.
(execute_stack_op): Change DW_OP_div and comparison operators to
use signed operands.
gdb/testsuite
PR backtrace/10770:
* gdb.dwarf2/pr10770.exp: New file.
* gdb.dwarf2/pr10770.c: New file.
* gdb.dwarf2/Makefile.in (EXECUTABLES): Add pr10770.

14 years ago2010-01-20 Doug Kwan <dougkwan@google.com>
Doug Kwan [Wed, 20 Jan 2010 17:29:52 +0000 (17:29 +0000)]
2010-01-20  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::Arm_input_section_map): Change key type from
Input_section_specifier to Section_id.
(Target_arm::new_arm_input_section: Adjust code for change of key
type.
(Target_arm::find_arm_input_section): Ditto.
* gc.h (object.h): Include for Section_id nand Section_id_hash.
(Section_id): Remove.
(Garbage_collection::Section_id_hash): Remove.
* icf.h (object.h): Include for Section_id nand Section_id_hash.
(Section_id): Remove.
(Icf::Section_id_hash): Remove.
* object.h (Section_id, Const_section_id, Section_id_hash,
Const_section_id_hash): New type definitions.
* output.cc (Output_section::add_relaxed_input_section): Change to
use Const_section_id instead of Input_section_specifier as key type.
(Output_section::add_merge_input_section): Ditto.
(Output_section::build_relaxation_map): Change to use Section_id
instead of Input_section_specifier as key type.
  (Output_section::convert_input_sections_in_list_to_relaxed_sections):
Ditto.
(Output_section::convert_input_sections_to_relaxed_sections): Change
to use Const_section_id instead of Input_section_specifier as key type.
  (Output_section::find_merge_section): Ditto.
(Output_section::find_relaxed_input_section): Ditto.
* output.h (Input_section_specifier): Remove class.
(Output_section::Output_section_data_by_input_section_map): Change
key type to Const_section_id.
(Output_section::Output_relaxed_input_section_by_input_section_map):
Ditto.
(Output_section::Relaxation_map): Change key type to Section_id.

14 years ago * gold/arm.cc: Added support for R_ARM_V4BX relocation
Ian Lance Taylor [Wed, 20 Jan 2010 16:49:09 +0000 (16:49 +0000)]
* gold/arm.cc: Added support for R_ARM_V4BX relocation
(class Arm_v4bx_stub): New class.
(DEF_STUBS): Updated definition to support v4_veneer_bx.
(Stub_factory::make_arm_v4bx_stub): New method.
(Stub_factory::elf32_arm_stub_v4_veneer_bx): New veneer template.
(Stub_table::empty): Handle v4bx stubs.
(Stub_table::add_arm_v4bx_stub): New method.
(Stub_table::find_arm_v4bx_stub): New method.
(Arm_relocate_functions::v4bx): New method.
(Target_arm::fix_v4bx): New method.
(Target_arm::Target_arm): Handle R_ARM_V4BX.
(Stub_table::relocate_stubs): Likewise.
(Stub_table::do_write): Likewise.
(Stub_table::update_data_size_and_addralign): Likewise.
(Stub_table::finalize_stubs):  Likewise.
(Target_arm::Scan::local): Likewise.
(Target_arm::Scan::global): Likewise.
(Target_arm::do_finalize_sections): Likewise.
(Target_arm::Relocate::relocate): Likewise.
(Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
Likewise.
(Target_arm::scan_reloc_for_stub): Likewise.
(Target_arm::scan_reloc_section_for_stubs): Likewise.

14 years ago * gdb.mi/mi-async.exp: Remove check for 'async' target, because
Vladimir Prus [Wed, 20 Jan 2010 14:54:23 +0000 (14:54 +0000)]
* gdb.mi/mi-async.exp: Remove check for 'async' target, because
that target was removed, and the test always runs native anyway.

14 years ago Per-inferior args and tty and environment.
Vladimir Prus [Wed, 20 Jan 2010 14:23:07 +0000 (14:23 +0000)]
Per-inferior args and tty and environment.

* infcmd.c (inferior_args): Rename to ...
(inferior_args_scratch): ... this.
(inferior_io_terminal): Rename to ...
(inferior_io_terminal_scratch): ... this.
(inferior_argc, inferior_argv): Remove.
(set_inferior_io_terminal, get_inferior_io_terminal): Store
inside current_inferior().
(set_inferior_tty_command, show_inferior_tty_command): New.
(get_inferior_args, set_inferior_args): Store inside
current_inferior().
(notice_args_set): Likewise and rename to...
(set_args_command): ... this.
(set_inferior_args_vector): Likewise.
(notice_args_read): Rename to...
(show_args_command): ...new.
(tty_command): Remove.
(run_command_1): Don't free old args, as they are freed by
set_inferior_arg now.
(run_no_args_command): Likewise.
(inferior_environ): Remove.
(run_command_1): Use environment of the current inferior.
(environment_info, set_environment_command)
(unset_environment_command, path_info, path_command): Likewise.
(_initialize_infcmd): Adjust for function and variable renames.
Do not init inferior_environ.
* inferior.h (set_inferior_arg): Adjust prototype.
(struct inferior): New fields args, argc, argv, terminal, environment.
(inferior_environ): Remove declaration.
* inferior.c (free_inferior): Free new fields.
(add_inferior_silent): Initialize 'environment' field.
* main.c (captured_main): Set arguments only after the initial
inferior has been created.  Set set_inferior_io_terminal,
not tty_command.
* mi/mi-main.c (mi_cmd_env_path): Use environment of the current
inferior.
(_initialize_mi_cmd_env): Adjust for disappearance of global
inferior_environ.
* solib.c (solib_find): Use environment of the current inferior.

14 years agoAdd changelog entries for PR 11109. Patch itself was accidentally committed earlier.
Nick Clifton [Wed, 20 Jan 2010 11:21:37 +0000 (11:21 +0000)]
Add changelog entries for PR 11109.  Patch itself was accidentally committed earlier.
Remove Spurious whitespace in ChangeLog-2009.

14 years ago PR 11170
Nick Clifton [Wed, 20 Jan 2010 10:54:03 +0000 (10:54 +0000)]
    PR 11170
        * arm-dis.c (print_arm_address): Do not ignore negative bit in PC
        based post-indexed addressing.

14 years agogdb/
Jan Kratochvil [Wed, 20 Jan 2010 06:36:38 +0000 (06:36 +0000)]
gdb/
* varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
HAVE_PYTHON.
(instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.

14 years ago* m32c.opc (MATH_OP): When doing subtraction, also set carry if
DJ Delorie [Wed, 20 Jan 2010 05:52:19 +0000 (05:52 +0000)]
* m32c.opc (MATH_OP): When doing subtraction, also set carry if
the result is zero.

14 years agoGet rid of ada-lang.c:function_name_from_pc.
Joel Brobecker [Wed, 20 Jan 2010 03:34:25 +0000 (03:34 +0000)]
Get rid of ada-lang.c:function_name_from_pc.

        * ada-lang.c: Add "stack.h" #include.
        (function_name_from_pc): Delete.
        (is_known_support_routine): Replace call to function_name_from_pc
        by call to find_frame_funname.
        (ada_unhandled_exception_name_addr_from_raise): Likewise.