binutils-gdb.git
14 years agomerge from gcc
DJ Delorie [Tue, 5 Jan 2010 21:10:30 +0000 (21:10 +0000)]
merge from gcc

14 years ago2010-01-05 Michael Snyder <msnyder@vmware.com>
Michael Snyder [Tue, 5 Jan 2010 20:55:18 +0000 (20:55 +0000)]
2010-01-05  Michael Snyder  <msnyder@vmware.com>

* infrun.c (handle_inferior_event): Fix typo in comment.

14 years ago * symtab.cc (Symbol_table::add_from_object): Rename def parameter
Ian Lance Taylor [Tue, 5 Jan 2010 19:29:15 +0000 (19:29 +0000)]
* symtab.cc (Symbol_table::add_from_object): Rename def parameter
to is_default_version.  Rename insdef to insdefault.
(Symbol_table::add_from_relobj): Rename def to is_default_version
and local to is_forced_local.
(Symbol_table::add_from_pluginobj): Likewise.
(Symbol_table::add_from_dynobj): Likewise.
(Symbol_table::define_special_symbol): Rename insdef to
insdefault.

14 years agogdb/
Jan Kratochvil [Tue, 5 Jan 2010 15:51:02 +0000 (15:51 +0000)]
gdb/
* symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.

14 years ago PR 10980
Ian Lance Taylor [Tue, 5 Jan 2010 05:56:28 +0000 (05:56 +0000)]
PR 10980
* options.h (class General_options): Add
--allow-multiple-definition and -z muldefs.
* resolve.cc (Symbol_table::should_override): Don't warn about a
multiple symbol definition if --allow-multiple-definition or -z
muldefs.

14 years agoUpdate copyright
H.J. Lu [Tue, 5 Jan 2010 00:41:54 +0000 (00:41 +0000)]
Update copyright

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

* objcopy.c: Update copyright.
* readelf.c: Likewise.

14 years ago2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
Daniel Gutson [Tue, 5 Jan 2010 00:40:07 +0000 (00:40 +0000)]
2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>

        * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
        before including procfs.h.
        (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
        * configure.in: Added autoconf probe for the pr_fpreg member.
        * configure: Regenerated.
        * config.in: Regenerated.
        * elf.c: Define _STRUCTURE_PROC before including procfs.h.

14 years agoRemove "Warning: " from error message
H.J. Lu [Tue, 5 Jan 2010 00:39:47 +0000 (00:39 +0000)]
Remove "Warning: " from error message

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

PR binutils/11130
* objcopy.c (copy_object): Remove "Warning: " from error
message.

14 years ago PR 10980
Ian Lance Taylor [Tue, 5 Jan 2010 00:32:22 +0000 (00:32 +0000)]
PR 10980
* options.h (class General_options): Add --add-needed and
--copy-dt-needed-entries.  Tweak --as-needed help entry.
* object.cc (Input_objects::check_dynamic_dependencies): Give an
error if --copy-dt-needed-entries aka --add-needed is used and
would cause a change in behaviour.

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

14 years ago PR 10980
Ian Lance Taylor [Mon, 4 Jan 2010 23:59:13 +0000 (23:59 +0000)]
PR 10980
* options.h (class General_options): Add -G as a short version of
--shared.  Add no-op options -assert, -g, and -i.

14 years ago2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
Daniel Gutson [Mon, 4 Jan 2010 23:31:04 +0000 (23:31 +0000)]
2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>

        gas/
        * config/tc-arm.c (do_neon_logic): Accept imm value
        in the third operand too.
        (operand_parse_code): OP_RNDQ_IMVNb renamed to
        OP_RNDQ_Ibig.
        (parse_operands): OP_NILO case removed, applied renaming.
        (insns): Neon shape changed for some logic instructions.

        gas/testsuite/
        * gas/arm/neon-logic.d: New test case.
        * gas/arm/neon-logic.s: New file.

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

14 years ago2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
Daniel Gutson [Mon, 4 Jan 2010 22:19:03 +0000 (22:19 +0000)]
2010-01-04  Daniel Gutson  <dgutson@codesourcery.com>
    gas/
    * config/tc-arm.c (do_neon_ldx_stx): Added
    validation for vector load/store insns.

    gas/testsuite/
    * gas/arm/neon-addressing-bad.d: New test case.
    * gas/arm/neon-addressing-bad.s: New file.
    * gas/arm/neon-addressing-bad.l: New file.

14 years ago * gc.h (gc_process_relocs): Call is_section_foldable_candidate to
Sriraman Tallam [Mon, 4 Jan 2010 19:08:39 +0000 (19:08 +0000)]
* gc.h (gc_process_relocs): Call is_section_foldable_candidate to
check for .text or .gnu.linkonce.t sections.
* icf.cc (Icf::find_identical_sections): Ditto.
Change the detection for mangled function name within the section
name.
* icf.h (is_section_foldable_candidate): New function.

14 years agoFix ChangeLog typo.
Ulrich Weigand [Mon, 4 Jan 2010 15:06:09 +0000 (15:06 +0000)]
Fix ChangeLog typo.

14 years ago * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
Ulrich Weigand [Mon, 4 Jan 2010 15:03:01 +0000 (15:03 +0000)]
    * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
and s390x-linux64.
(s390-linux32-expedite): Define.
(s390-linux64-expedite): Define.
(s390x-linux64-expedite): Define.
* features/s390-acr.xml: New file.
* features/s390-fpr.xml: New file.
* features/s390-core32.xml: New file.
* features/s390-core64.xml: New file.
* features/s390x-core64.xml: New file.
* features/s390-linux32.xml: New file.
* features/s390-linux64.xml: New file.
* features/s390x-linux64.xml: New file.
* features/s390-linux32.c: New generated file.
* features/s390-linux64.c: New generated file.
* features/s390x-linux64.c: New generated file.

* regformats/s390-linux32.dat: New generated file.
* regformats/s390-linux64.dat: New generated file.
* regformats/s390x-linux64.dat: New generated file.
* regformats/reg-s390.dat: Remove.
* regformats/reg-s390x.dat: Remove.

* s390-nat.c: Include "auxv.h" and <elf.h>.
(HWCAP_S390_HIGH_GPRS): Define if undefined.
(s390_target_wordsize): New function.
(s390_auxv_parse): Likewise.
(s390_get_hwcap): Likewise.
(s390_read_description): Likewise.
(_initialize_s390_nat): Install s390_auxv_parse and
s390_read_description.

* s390-tdep.c: Include "features/s390-linux32.c",
"features/s390-linux64.c", and "features/s390x-linux64.c".
(struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
(s390_register_call_saved): New function.
(s390_register_name): Remove.
(s390_register_type): Remove.
(s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
(s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
(s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
(s390_pseudo_register_name): New function.
(s390_pseudo_register_type): New function.
(s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
Handle full GPR pesudos and varying pseudo register numbers.
(s390_pseudo_register_write): Likewise
(s390x_pseudo_register_read): Remove.
(s390x_pseudo_register_write): Likewise.
(s390_register_group): Remove.
(s390_pseudo_register_group): New function.
(s390_regmap_gregset): Add GPR upper halves.
(s390x_regmap_gregset): Likewise.
(s390_regmap_fpregset): Likewise.
(s390_regmap_upper): New global variable.
(s390_upper_regset): New global variable.
(s390_upper_regset_sections): New global variable.
(s390_regset_from_core_section): Handle GPR upper halves.
(s390_core_read_description): New function.
(s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
register information.  Handle varying pseudo register numbers.
(s390_backchain_frame_unwind_cache): Likewise.
(s390_frame_prev_register): Unwind full GPRs to show lower halves.
(s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
(s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
PC and CC pseudos.  Unwind upper halves and full GPRs as appropriate.
Handle varying pseudo register numbers.
(s390_unwind_pc): Handle varying pseudo register numbers.
(s390_dwarf2_prev_register): New function.
(s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
register information.  Handle varying pseudo register numbers.
Install s390_dwarf2_prev_register to unwind full GPRs.
(s390_gdbarch_init): Handle target descriptions.  Assign varying
pseudo register numbers.  Install s390_adjust_frame_regnum.
(_initialize_s390_tdep): Initialize target descriptions.

* s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
(S390_NUM_REGS): Redefine to include upper half registers.
(S390_PC_REGNUM, S390_CC_REGNUM): Remove.
(S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
(tdesc_s390_linux32): Add declaration.
(tdesc_s390_linux64): Likewise.
(tdesc_s390x_linux64): Likewise.

gdb/testsuite/
* gdb.xml/tdesc-regs.exp: Support s390*-*-* targets.

gdbserver/
* Makefile.in (clean): Remove new generated files.
(reg-s390.o, reg-s390.c): Remove rules.
(reg-s390x.o, reg-s390x.c): Likewise.
(s390-linux32.o, s390-linux32.c): Add rules.
(s390-linux64.o, s390-linux64.c): Likewise.
(s390x-linux64.o, s390x-linux64.c): Likewise.
* configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
* linux-s390-low.c: Include <elf.h>.
(HWCAP_S390_HIGH_GPRS): Define if undefined.
(init_registers_s390): Remove prototype.
(init_registers_s390x): Likewise.
(init_registers_s390_linux32): Add prototype.
(init_registers_s390_linux64): Likewise.
(init_registers_s390x_linux64): Likewise.
(s390_num_regs_3264): New define.
(s390_regmap_3264): New global variable.
(s390_cannot_fetch_register): Remove obsolete check.
(s390_cannot_store_register): Likewise.
(s390_collect_ptrace_register): Handle upper/lower register halves.
(s390_supply_ptrace_register): Likewise.
(s390_fill_gregset): Update to register number changes.
(s390_get_hwcap): New routine.
(s390_arch_setup): Detect 32-bit process running on 64-bit system.
Install appropriate regmap and register set.

14 years ago * regset.h (struct core_regset_section): Add HUMAN_NAME.
Ulrich Weigand [Mon, 4 Jan 2010 14:57:44 +0000 (14:57 +0000)]
* regset.h (struct core_regset_section): Add HUMAN_NAME.
* i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
* ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
(ppc_linux_vmx_regset_sections): Likewise.
(ppc_linux_fp_regset_sections): Likewise.

* corelow.c (get_core_register_section): Constify arguments.
(get_core_registers): Use gdbarch_core_regset_sections instead
of hard-coded platform-specific register section names.

14 years ago * dwarf2loc.c (read_pieced_value): If a piece occupies part of
Ulrich Weigand [Mon, 4 Jan 2010 14:56:16 +0000 (14:56 +0000)]
* dwarf2loc.c (read_pieced_value): If a piece occupies part of
a register, assume the least-signficant part is used.
(write_pieced_value): Likewise.

14 years ago * printcmd.c: Include "arch-utils.h".
Ulrich Weigand [Mon, 4 Jan 2010 14:55:08 +0000 (14:55 +0000)]
* printcmd.c: Include "arch-utils.h".
(do_one_display): Re-parse expression if current architecture changed.

14 years ago PR 11128
Nick Clifton [Mon, 4 Jan 2010 13:39:58 +0000 (13:39 +0000)]
    PR 11128
        * readelf.c (dump_section_as_strings): Use two separate
        invocations of printf() in order to work around bugs in
        the Solaris 8 implementation.

14 years ago Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
Joel Brobecker [Mon, 4 Jan 2010 11:44:30 +0000 (11:44 +0000)]
    Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
        * dwarf2.c (concat_filename): Rename dirname with dir_name
        to void shadowing the dirname function.
        Rename subdirname with subdir_name to stay consistent with
        the new dir_name variable name.

14 years agoUpdated Russian translation.
Nick Clifton [Mon, 4 Jan 2010 10:26:44 +0000 (10:26 +0000)]
Updated Russian translation.

14 years ago PR 11123
Nick Clifton [Mon, 4 Jan 2010 10:18:32 +0000 (10:18 +0000)]
    PR 11123
        * arm-dis.c (print_insn_coprocessor): Initialise value.

14 years agobfd/
Alan Modra [Mon, 4 Jan 2010 02:32:56 +0000 (02:32 +0000)]
bfd/
* archures.c: Add bfd_mach_ppc_e500mc64.
* bfd-in2.h: Regenerate.
* cpu-powerpc.c (bfd_powerpc_archs): Add entry for
bfd_mach_ppc_e500mc64.
gas/
* config/tc-ppc.c (md_show_usage): Document -me500mc64.
opcodes/
* ppc-dis.c (ppc_opts): Add entry for "e500mc64".

14 years ago2010-01-03 Daniel Gutson <dgutson@codesourcery.com>
Daniel Gutson [Mon, 4 Jan 2010 00:39:28 +0000 (00:39 +0000)]
2010-01-03  Daniel Gutson  <dgutson@codesourcery.com>

    gas/
    * config/tc-arm.c (struct arm_it): New flag 'is_neon'.
    (NEON_ENC_*): Macros renamed to _NEON_ENC_*.
    (NEON_ENCODE): New macro.
    (check_neon_suffixes): New macro.
    (do_vfp_cond_or_thumb): Set the 'is_neon' flag.
    (do_vfp_nsyn_opcode): Likewise.
    (do_vfp_nsyn_nmul): Use the new 'NEON_ENCODE' macro.
    (do_vfp_nsyn_cmp): Likewise.
    (do_neon_shl_imm): Likewise.
    (do_neon_qshl_imm): Likewise.
    (neon_dyadic_misc): Likewise.
    (do_neon_mac_maybe_scalar): Likewise.
    (do_neon_qdmulh): Likewise.
    (do_neon_qmovn): Likewise.
    (do_neon_qmovun): Likewise.
    (do_neon_movn): Likewise.
    (neon_mac_reg_scalar_long): Likewise.
    (do_neon_vmull): Likewise.
    (do_neon_trn): Likewise.
    (do_neon_ldx_stx): Likewise.
    (neon_dp_fixup): Changed signature and set the flag.
    (neon_three_same): Call the above with new signature.
    (neon_two_same): Likewise.
    (neon_imm_shift): Likewise.
    (neon_mul_mac): Likewise.
    (do_neon_abs_neg): Likewise.
    (neon_mixed_length): Likewise.
    (do_neon_ext): Likewise.
    (do_neon_mov): Likewise.
    (do_neon_tbl_tbx): Likewise.
    (do_neon_logic): Likewise, and use the new 'NEON_ENCODE' macro.
    (neon_compare): Likewise.
    (do_neon_shll): Likewise.
    (do_neon_cvt): Likewise.
    (do_neon_mvn): Likewise.
    (do_neon_dup): Likewise.
    (md_assemble): Call check_neon_suffixes ().

    gas/testsuite/
    * gas/arm/neon-suffix-bad.d: New test case.
    * gas/arm/neon-suffix-bad.s: New file.
    * gas/arm/neon-suffix-bad.l: New file.

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

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

14 years agogdb/
Jan Kratochvil [Sun, 3 Jan 2010 18:55:32 +0000 (18:55 +0000)]
gdb/
* gdbtypes.c (check_typedef): New comment on type length.
* value.c (allocate_value_lazy): Remove the unused atype variable.  New
comment on type length.
(value_primitive_field): Keep the original TYPE value, new comment.

gdb/testsuite/
* gdb.mi/var-cmd.c (do_bitfield_tests): Change "V.sharable" type to
"uint_for_mi_testing".

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

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

14 years agoRegenerate cgen files, update copyright year.
Doug Evans [Sat, 2 Jan 2010 19:09:21 +0000 (19:09 +0000)]
Regenerate cgen files, update copyright year.

14 years ago * cgen-asm.in: Update copyright year.
Doug Evans [Sat, 2 Jan 2010 18:50:59 +0000 (18:50 +0000)]
* cgen-asm.in: Update copyright year.
* cgen-dis.in: Update copyright year.
* cgen-ibld.in: Update copyright year.
* fr30-asm.c, * fr30-desc.c, * fr30-desc.h, * fr30-dis.c,
* fr30-ibld.c, * fr30-opc.c, * fr30-opc.h, * frv-asm.c, * frv-desc.c,
* frv-desc.h, * frv-dis.c, * frv-ibld.c, * frv-opc.c, * frv-opc.h,
* ip2k-asm.c, * ip2k-desc.c, * ip2k-desc.h, * ip2k-dis.c,
* ip2k-ibld.c, * ip2k-opc.c, * ip2k-opc.h, * iq2000-asm.c,
* iq2000-desc.c, * iq2000-desc.h, * iq2000-dis.c, * iq2000-ibld.c,
* iq2000-opc.c, * iq2000-opc.h, * lm32-asm.c, * lm32-desc.c,
* lm32-desc.h, * lm32-dis.c, * lm32-ibld.c, * lm32-opc.c, * lm32-opc.h,
* lm32-opinst.c, * m32c-asm.c, * m32c-desc.c, * m32c-desc.h,
* m32c-dis.c, * m32c-ibld.c, * m32c-opc.c, * m32c-opc.h, * m32r-asm.c,
* m32r-desc.c, * m32r-desc.h, * m32r-dis.c, * m32r-ibld.c,
* m32r-opc.c, * m32r-opc.h, * m32r-opinst.c, * mep-asm.c, * mep-desc.c,
* mep-desc.h, * mep-dis.c, * mep-ibld.c, * mep-opc.c, * mep-opc.h,
* mt-asm.c, * mt-desc.c, * mt-desc.h, * mt-dis.c, * mt-ibld.c,
* mt-opc.c, * mt-opc.h, * openrisc-asm.c, * openrisc-desc.c,
* openrisc-desc.h, * openrisc-dis.c, * openrisc-ibld.c,
* openrisc-opc.c, * openrisc-opc.h, * xc16x-asm.c, * xc16x-desc.c,
* xc16x-desc.h, * xc16x-dis.c, * xc16x-ibld.c, * xc16x-opc.c,
* xc16x-opc.h, * xstormy16-asm.c, * xstormy16-desc.c,
* xstormy16-desc.h, * xstormy16-dis.c, * xstormy16-ibld.c,
* xstormy16-opc.c, * xstormy16-opc.h: Regenerate.

14 years ago * m32c.opc (parse_signed16): Fix typo.
Doug Evans [Sat, 2 Jan 2010 18:37:59 +0000 (18:37 +0000)]
* m32c.opc (parse_signed16): Fix typo.

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

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

14 years agotweak wording of previous checkin
Doug Evans [Fri, 1 Jan 2010 21:45:18 +0000 (21:45 +0000)]
tweak wording of previous checkin

14 years agocris/
Doug Evans [Fri, 1 Jan 2010 21:40:50 +0000 (21:40 +0000)]
cris/
* mloop.in: Fix copyright update snafu.
iq2000/
* mloop.in: Fix copyright update snafu.

14 years agoMove 2009 binutils ChangeLog to ChangeLog-2009.
H.J. Lu [Fri, 1 Jan 2010 18:06:10 +0000 (18:06 +0000)]
Move 2009 binutils ChangeLog to ChangeLog-2009.

14 years agoFix -Wshadow warnings (seen on ppc-aix)
Joel Brobecker [Fri, 1 Jan 2010 13:42:26 +0000 (13:42 +0000)]
Fix -Wshadow warnings (seen on ppc-aix)

        * xcofflink.c: Replace finfo by flinfo throughout.

14 years ago Update the "Start of New Year Procedure".
Joel Brobecker [Fri, 1 Jan 2010 11:38:33 +0000 (11:38 +0000)]
    Update the "Start of New Year Procedure".
        * gdbint.texinfo: Add the list of files that need to be updated
        manually.  Minor reformatting.

14 years ago * refcard.tex: Update copyright year in header and text.
Joel Brobecker [Fri, 1 Jan 2010 11:20:05 +0000 (11:20 +0000)]
    * refcard.tex: Update copyright year in header and text.

14 years agoTest indented comment in file being sourced.
Joel Brobecker [Fri, 1 Jan 2010 11:11:34 +0000 (11:11 +0000)]
Test indented comment in file being sourced.

        * gdb.base/commands.exp: Test indented comment in file being sourced.

14 years agogdb/
Jan Kratochvil [Fri, 1 Jan 2010 10:58:56 +0000 (10:58 +0000)]
gdb/
* cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
p_start.  Change != comparisons to > and < comparisons.

14 years agogdb/
Jan Kratochvil [Fri, 1 Jan 2010 10:57:43 +0000 (10:57 +0000)]
gdb/
* cli/cli-script.c (process_next_line): Check P2 overrun.

14 years agoUpdate copyright notices to add year 2010.
Joel Brobecker [Fri, 1 Jan 2010 10:03:36 +0000 (10:03 +0000)]
Update copyright notices to add year 2010.

14 years agoUpdate the copyright header of most if not all files that have not been
Joel Brobecker [Fri, 1 Jan 2010 09:44:07 +0000 (09:44 +0000)]
Update the copyright header of most if not all files that have not been
updated yet.

14 years ago * gdb.arch/gdb1291.s, gdb.arch/gdb1431.s: Update year in copyright
Joel Brobecker [Fri, 1 Jan 2010 09:27:06 +0000 (09:27 +0000)]
    * gdb.arch/gdb1291.s, gdb.arch/gdb1431.s: Update year in copyright
        notice.

14 years agogdb/testsuite/
Jan Kratochvil [Fri, 1 Jan 2010 07:57:56 +0000 (07:57 +0000)]
gdb/testsuite/
* lib/mi-support.exp (mi_expect_stop <stopped at wrong place>): Insert
missing $after_stopped and comma (,) expectation.

14 years agoUpdate copyright years in all relevant texinfo documents.
Joel Brobecker [Fri, 1 Jan 2010 07:54:37 +0000 (07:54 +0000)]
Update copyright years in all relevant texinfo documents.

        * agentexpr.texi: Add 2010 to the list of copyright years.
        * annotate.texinfo: Likewise.
        * gdb.texinfo: Likewise.
        * gdbint.texinfo: Likewise.
        * observer.texi: Likewise.
        * stabs.texinfo: Likewise.

14 years agoUpdate copyright year in most headers.
Joel Brobecker [Fri, 1 Jan 2010 07:32:07 +0000 (07:32 +0000)]
Update copyright year in most headers.

Automatic update by copyright.sh.

14 years agoFix build failure in inf-ptrace.c.
Joel Brobecker [Fri, 1 Jan 2010 07:03:54 +0000 (07:03 +0000)]
Fix build failure in inf-ptrace.c.

        * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.

14 years ago * server.c (gdbserver_version): Update copyright year to 2010.
Joel Brobecker [Fri, 1 Jan 2010 06:59:28 +0000 (06:59 +0000)]
    * server.c (gdbserver_version): Update copyright year to 2010.
        * gdbreplay.c (gdbreplay_version): Likewise.

14 years ago * top.c (print_gdb_version): Update copyright year.
Joel Brobecker [Fri, 1 Jan 2010 06:56:04 +0000 (06:56 +0000)]
    * top.c (print_gdb_version): Update copyright year.

14 years agoChangeLog rotation for 2010.
Joel Brobecker [Fri, 1 Jan 2010 06:53:34 +0000 (06:53 +0000)]
ChangeLog rotation for 2010.

14 years agoFix break *FUN'address thread NUM.
Joel Brobecker [Fri, 1 Jan 2010 06:29:10 +0000 (06:29 +0000)]
Fix break *FUN'address thread NUM.

        * ada-lex.l (task): Expand rule to also match the thread keyword.

14 years agoFix break *FUN'address task NUM.
Joel Brobecker [Fri, 1 Jan 2010 06:06:49 +0000 (06:06 +0000)]
Fix break *FUN'address task NUM.

        * ada-lex.l (task): New rule.
        * ada-lang.c (valid_task_id): Make sure the Ada task list has
        been built before using it.

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

14 years agodaily update
Alan Modra [Thu, 31 Dec 2009 23:00:32 +0000 (23:00 +0000)]
daily update

14 years ago Add new tracepoint action teval.
Stan Shebs [Thu, 31 Dec 2009 17:47:43 +0000 (17:47 +0000)]
Add new tracepoint action teval.
* tracepoint.c (teval_pseudocommand): New function.
(validate_actionline): Add teval action case.
(encode_actions): Ditto.
(_initialize_tracepoint): Define teval pseudocommand.
* NEWS: Mention teval.

* gdb.texinfo (Tracepoint Actions): Describe teval.

* gdb.trace/actions.exp: Test teval action.

14 years ago * tracepoint.c (trace_find_command): Error out if trace running.
Stan Shebs [Thu, 31 Dec 2009 17:39:53 +0000 (17:39 +0000)]
* tracepoint.c (trace_find_command): Error out if trace running.
(trace_find_pc_command): Ditto.
(trace_find_tracepoint_command): Ditto.
(trace_find_line_command): Ditto.
(trace_find_range_command): Ditto.
(trace_find_outside_command): Ditto.

14 years ago * objcopy.c (add_redefine_syms_file): Avoid symbol buffer
Nick Clifton [Thu, 31 Dec 2009 14:40:36 +0000 (14:40 +0000)]
    * objcopy.c (add_redefine_syms_file): Avoid symbol buffer
        overrun.

14 years ago * dwarf2.c (struct line_sequence): New struct.
Nick Clifton [Thu, 31 Dec 2009 14:10:29 +0000 (14:10 +0000)]
    * dwarf2.c (struct line_sequence): New struct.
        (struct line_info_table): Add num_sequences, remove last_line,
        add sequences.
        (add_line_info): Add new sequences as necessary.
        (compare_sequences): New function.
        (sort_line_sequences): New function.
        (decode_line_info): Initialize new fields in line table.
        Call sort_line_sequences.
        (lookup_address_in_line_info_table): Binary search for proper
        sequence.

14 years agoFix a typo.
Joel Brobecker [Thu, 31 Dec 2009 11:04:39 +0000 (11:04 +0000)]
Fix a typo.

14 years agoInternal error while loading core on alpha-tru64.
Joel Brobecker [Thu, 31 Dec 2009 10:57:30 +0000 (10:57 +0000)]
Internal error while loading core on alpha-tru64.

        * corelow.c (core_open): Delete unused local variables.
        Use inferior_appeared instead of add_inferior_silent.

14 years ago PR 10980
Ian Lance Taylor [Thu, 31 Dec 2009 06:05:49 +0000 (06:05 +0000)]
PR 10980
* options.h (class General_options): Permit two dashes with
--retain-symbols-file.

14 years ago PR 10979
Ian Lance Taylor [Thu, 31 Dec 2009 05:43:29 +0000 (05:43 +0000)]
PR 10979
* layout.cc (Layout::relaxation_loop_body): If -Ttext was used,
don't put the file header and segment headers in the text
segment.

14 years ago PR 10979
Ian Lance Taylor [Thu, 31 Dec 2009 05:07:22 +0000 (05:07 +0000)]
PR 10979
* common.cc (Sort_commons::operator()): Stabilize sort when both
entries are NULL.
(Symbol_table::do_allocate_commons_list): When allocating common
symbols, skip a symbol which is no longer common.
* symtab.h (Symbol::is_common): Test whether the symbol comes from
an object before checking its type.
* testsuite/common_test_2.c: New file.
* testsuite/common_test_3.c: New file.
* testsuite/Makefile.am (check_PROGRAMS): Add common_test_2.
(common_test_2_SOURCES, common_test_2_DEPENDENCIES): Define.
(common_test_2_LDFLAGS, common_test_2_LDADD): Define.
(common_test_2_pic.o, common_test_2.so): New targets.
(common_test_3_pic.o, common_test_3.so): New targets.
* testsuite/Makefile.in: Rebuild.

14 years ago PR 10979
Ian Lance Taylor [Thu, 31 Dec 2009 03:48:46 +0000 (03:48 +0000)]
PR 10979
* script.cc (read_input_script): If we see a new SECTIONS clause,
and we have added an input section, give an error.
* layout.h (class Layout): Add have_added_input_section function.
Add have_added_input_section_ field.
* layout.cc (Layout::Layout): Initialize
have_added_input_section_.
(Layout::layout): Set have_added_input_section_.
(Layout::layout_eh_frame): Likewise.

14 years ago PR 10931
Ian Lance Taylor [Thu, 31 Dec 2009 01:57:55 +0000 (01:57 +0000)]
PR 10931
* options.h (class General_options): Add --sort-common option.
* symtab.h (class Symbol_table): Define Sort_commons_order enum.
* common.cc (Sort_common): Add sort_order parameter to
constructor.  Add sort_order_ field.
(Sort_commons::operator): Check sort_order_.
(Symbol_table::allocate_commons): Determine the sort order.
(Symbol_table::do_allocate_commons): Add sort_order parameter.
Change all callers.
(Symbol_table::do_allocate_commons_list): Likewise.

14 years ago PR 10916
Ian Lance Taylor [Thu, 31 Dec 2009 01:14:34 +0000 (01:14 +0000)]
PR 10916
* symtab.cc (Symbol_table::add_from_relobj): When not exporting
symbols from this object, don't change the visibility of an
undefined symbol.
* testsuite/exclude_libs_test_1.c (lib1_ref): New function.

14 years ago*** empty log message ***
gdbadmin [Thu, 31 Dec 2009 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

14 years agodaily update
Alan Modra [Wed, 30 Dec 2009 23:00:28 +0000 (23:00 +0000)]
daily update

14 years ago PR 10861
Ian Lance Taylor [Wed, 30 Dec 2009 22:35:49 +0000 (22:35 +0000)]
PR 10861
* script.h (class Version_script_info): Define Language enum.
Update declarations.  Define Glob, Exact, and Lookup types.  Add
new fields globals_, locals_, and is_finalized_.
* script.cc: Various formatting fixes.
(class Parser_closure): Change language_stack_ from a vector of
std::string to one of Version_script_info::Language.  Adjust all
uses accordingly.
(class Lazy_demangler): Remove.
(struct Version_expression): Change language from std::string to
Version_script_info::Language.
(Version_script_info::Version_script_info): New function.
(Version_script_info::~Version_script_info): Don't call clear.
(Version_script_info::finalize): New function.
(Version_script_info::build_lookup_tables): New function.
(Version_script_info::build_expression_list_lookup): New
function.
(Version_script_info::get_symbol_version_helper): Rewrite to use
lookup tables.
(Version_script_info::print_expression_list): Adjust to use
Version_script_info::Language.
(script_push_lex_into_version_mode): Check that the version script
has not been finalized.
(version_script_push_lang): Change language string to
Version_script_info::Language.
* options.cc (Command_line::version_script): New function.
* options.h (class General_options): Add finalize_dynamic_list
function.  Change version_script from declaration to definition.
* testsuite/ver_test_4.script: Remove duplicate def of t2_2.
* testsuite/version_script.map: Remove duplicate def of foo.
* testsuite/Makefile.am (ver_matching_def.so): Depend upon
version_script.map.
* testsuite/Makefile.in: Rebuild.

14 years ago * tracepoint.c (trace_status_command): Add some status output.
Stan Shebs [Wed, 30 Dec 2009 22:32:03 +0000 (22:32 +0000)]
* tracepoint.c (trace_status_command): Add some status output.

14 years ago PR 10843
Ian Lance Taylor [Wed, 30 Dec 2009 20:35:52 +0000 (20:35 +0000)]
PR 10843
* target-reloc.h (relocate_for_relocatable): When copying a reloc,
if the input symbol index is 0, make the output symbol index 0.

14 years ago PR 10670
Ian Lance Taylor [Wed, 30 Dec 2009 20:23:29 +0000 (20:23 +0000)]
PR 10670
* options.h (class General_options): Add -x/--discard-all.
* object.cc (Sized_relobj::do_count_local_symbols): Handle
--discard-all.  If the local symbol needs a dynamic entry, check
that before handling --discard-locals.

14 years ago20090-12-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Thiago Jung Bauermann [Wed, 30 Dec 2009 20:11:49 +0000 (20:11 +0000)]
20090-12-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
     Thiago Jung Bauermann  <bauerman@br.ibm.com>

* breakpoint.c (update_watchpoint): Change b->type to
bp_watchpoint before calling hw_watchpoint_used_count.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 19:29:20 +0000 (19:29 +0000)]
PR 10450
* output.cc (Output_segment::Output_segment): If PT_TLS, set the
flags to PF_R.
(Output_segment::add_output_section): Don't change the flags if
the type is PT_TLS.

14 years ago * breakpoint.c (watchpoint_check): Expand the function description.
Joel Brobecker [Wed, 30 Dec 2009 19:16:30 +0000 (19:16 +0000)]
    * breakpoint.c (watchpoint_check): Expand the function description.

14 years agogdb/
Thiago Jung Bauermann [Wed, 30 Dec 2009 17:33:35 +0000 (17:33 +0000)]
gdb/
* valarith.c (value_equal_contents): New function.
* value.h (value_equal_contents): Declare.
* breakpoint.c (watchpoint_check): Use value_equal_contents
instead of value_equal.

gdb/testsuite/
* gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): New function.
(top level): Call test_watchpoint_in_big_blob.
* gdb.base/watchpoint.c (buf): Change size to value too big for hardware
watchpoints.
(func3): Write to buf.

14 years ago Add default-collect variable.
Stan Shebs [Wed, 30 Dec 2009 16:11:08 +0000 (16:11 +0000)]
Add default-collect variable.
* tracepoint.c (default_collect): New global.
(encode_actions): Use it.
(download_tracepoint): Test it, for otherwise
action-less tracepoints.
(_initialize_tracepoint): Add set/show.
* NEWS: Mention default-collect.

* gdb.texinfo (Tracepoint Actions): Describe default-collect.

* gdb.trace/actions.exp: Test default-collect.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 08:29:37 +0000 (08:29 +0000)]
PR 10450
* dynobj.cc (Dynobj::create_gnu_hash_table): Add symbols to the
GNU hash table if they need a dynamic value.  Otherwise, don't add
them if they are defined in a dynamic object or are forced local.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 07:45:32 +0000 (07:45 +0000)]
PR 10450
* layout.cc (Layout::create_dynamic_symtab): Only set entsize of
.gnu.hash table for a 32-bit target.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 07:40:01 +0000 (07:40 +0000)]
PR 10450
* symtab.h (Symbol::needs_dynsym_entry): A symbol in both a
regular and a dynamic object only needs a dynamic symbol table
entry if it is externally visible.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 07:22:06 +0000 (07:22 +0000)]
PR 10450
* i386.cc (class Target_i386): Initialize global_offset_table_ in
constructor.  Add global_offset_table_ field.
(Target_i386::got_section): Set global_offset_table_.
(Target_i386::do_finalize_sections): Set global_offset_table_
size.
* x86_64.cc (class Target_x86_64): Initialize global_offset_table_
in constructor.  Add global_offset_table_ field.
(Target_x86_64::got_section): Set global_offset_table_.
(Target_x86_64::do_finalize_sections): Set global_offset_table_
size.

14 years ago * layout.cc (Layout::Layout): Initialize increase_relro_.
Ian Lance Taylor [Wed, 30 Dec 2009 06:57:17 +0000 (06:57 +0000)]
* layout.cc (Layout::Layout): Initialize increase_relro_.
(Layout::get_output_section): Add is_relro, is_last_relro, and
is_first_non_relro parameters.  Change all callers.
(Layout::choose_output_section): Likewise.
(Layout::add_output_section_data): Likewise.
(Layout::make_output_section): Likewise.
(Layout::set_segment_offsets): Clear increase_relro when using a
linker script.
* layout.h (class Layout): Add increase_relro method.  Add
increase_relro_ field.  Update declarations.
* output.cc (Output_section::Output_section): Initialize
is_last_relro_ and is_first_non_relro_.
(Output_segment::add_output_section): Group relro sections is
do_sort is true.  Handle is_last_relro and is_first_non_relro.
(Output_segment::maximum_alignment): Remove relro handling.
(Output_segment::set_section_addresses): Add increase_relro
parameter.  Change all callers.  Add initial alignment to align
relro sections on separate page.  Remove old relro handling.
(Output_segment::set_section_list_addresses): Remove in_relro
parameter.  Change all callers.
(Output_segment::set_offset): Add increase parameter.  Change all
callers.  Remove old relro handling.
* output.h (class Output_section): Add new methods: is_last_relro,
set_is_last_relro, is_first_non_relro, set_is_first_non_relro.
Add is_last_relro_ and is_first_non_relro_ fields.
* i386.cc (Target_i386::got_section): Don't call set_is_relro.
Create separate .got.plt section.  Call increase_relro.
* x86_64.cc (Target_x86_64::got_section): Likewise.
* testsuite/relro_script_test.t: Add .got.plt.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 04:16:50 +0000 (04:16 +0000)]
PR 10450
* layout.cc (Layout::Layout): Initialize dynamic_symbol_ field.
(Layout::create_initial_dynamic_sections): Set dynamic_symbol_.
(Layout::finalize): Call set_dynamic_symbol_size.
(Layout::set_dynamic_symbol_size): New function.
* layout.h (class Layout): Add dynamic_symbol_ field.  Declare
set_dynamic_symbol_size.

14 years ago PR 10450
Ian Lance Taylor [Wed, 30 Dec 2009 04:00:21 +0000 (04:00 +0000)]
PR 10450
* output.h (class Output_section): Add is_entsize_zero_ field.
* output.cc (Output_section::Output_section): Initialize
is_entsize_zero_.
(Output_section::set_entsize): If two different entsizes are
requested, force it to zero.
(Output_section::add_input_section): Set flags for .debug_str
before updating section flags.  Set entsize.
(Output_section::update_flags_for_input_section): Set SHF_MERGE
and SHF_STRING if all input sections have those flags.

14 years ago*** empty log message ***
gdbadmin [Wed, 30 Dec 2009 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

14 years ago * language.c (pointer_type): Un-comment out.
Stan Shebs [Tue, 29 Dec 2009 23:57:59 +0000 (23:57 +0000)]
* language.c (pointer_type): Un-comment out.
* ax-gdb.c: Include language.h, use pointer_type throughout
instead of testing TYPE_CODE_PTR.
(gen_fetch): Include TYPE_CODE_REF.
(gen_cast): Ditto.

14 years ago2009-12-29 Rafael Espindola <espindola@google.com>
Rafael Ávila de Espíndola [Tue, 29 Dec 2009 23:45:10 +0000 (23:45 +0000)]
2009-12-29   Rafael Espindola  <espindola@google.com>

* main.cc (main): Fix the sys time reporting.
* workqueue.cc (Workqueue::find_and_run_task): Fix the sys time reporting.

14 years ago * ax-gdb.c (gen_expr): Handle logical and, logical or, and
Stan Shebs [Tue, 29 Dec 2009 23:21:38 +0000 (23:21 +0000)]
* ax-gdb.c (gen_expr): Handle logical and, logical or, and
conditional expressions.

14 years ago* options.cc (General_options::parse_version): Allow -v to exit
Sriraman Tallam [Tue, 29 Dec 2009 23:12:15 +0000 (23:12 +0000)]
* options.cc (General_options::parse_version): Allow -v to exit
without an error if there is nothing to link.

14 years agodaily update
Alan Modra [Tue, 29 Dec 2009 23:00:25 +0000 (23:00 +0000)]
daily update

14 years ago * configure.ac: Set the MCMODEL_MEDIUM conditional to false if
Ian Lance Taylor [Tue, 29 Dec 2009 22:49:13 +0000 (22:49 +0000)]
* configure.ac: Set the MCMODEL_MEDIUM conditional to false if
using a version of gcc before 4.1.
* configure: Rebuild.

14 years ago2009-12-28 Chris Demetriou <cgd@google.com>
Chris Demetriou [Tue, 29 Dec 2009 06:09:03 +0000 (06:09 +0000)]
2009-12-28  Chris Demetriou  <cgd@google.com>

        * attributes.cc (Output_attributes_section_data::do_write): Use
        std::vector::front rather than std::vector::data.

14 years ago * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.
Joel Brobecker [Tue, 29 Dec 2009 04:12:11 +0000 (04:12 +0000)]
    * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.

14 years ago * symtab.h (class Symbol_table): Add enum Defined.
Ian Lance Taylor [Tue, 29 Dec 2009 00:31:48 +0000 (00:31 +0000)]
* symtab.h (class Symbol_table): Add enum Defined.
* resolve.cc (Symbol_table::should_override): Add defined
parameter.  Change all callers.  Test whether object is NULL
before calling a method on it.
(Symbol_table::report_resolve_problem): Add defined parameter.
Change all callers.
(Symbol_table::should_override_with_special): Likewise.
* symtab.cc (Symbol_table::define_in_output_data): Add defined
parameter.  Change all callers.
(Symbol_table::do_define_in_output_data): Likewise.
(Symbol_table::define_in_output_segment): Likewise.
(Symbol_table::do_define_in_output_segment): Likewise.
(Symbol_table::define_as_constant): Likewise.
(Symbol_table::do_define_as_constant): Likewise.
* script.h (class Symbol_assignment): Add is_defsym parameter to
constructor; change all callers.
* script.cc (Script_options::add_symbol_assignment): Add is_defsym
parameter.  Change all callers.  Add is_defsym_ field.
(class Parser_closure): Add parsing_defsym parameter to
constructor; change all callers.  Add parsing_defsym accessor
function.  Add parsing_defsym_ field.

14 years ago * object.cc (Relobj::is_section_name_included): Fix formatting.
Ian Lance Taylor [Tue, 29 Dec 2009 00:24:31 +0000 (00:24 +0000)]
* object.cc (Relobj::is_section_name_included): Fix formatting.