binutils-gdb.git
11 years agobinutils/ChangeLog:
Andrew Pinski [Fri, 10 May 2013 01:08:48 +0000 (01:08 +0000)]
binutils/ChangeLog:
* doc/binutils.texi: Document -Mvirt disassembler option.

gas/ChangeLog:
* config/tc-mips.c (struct mips_set_options): New ase_virt field.
(mips_opts): Update for the new field.
(file_ase_virt): New variable.
(ISA_SUPPORTS_VIRT_ASE): New macro.
(ISA_SUPPORTS_VIRT64_ASE): New macro.
(MIPS_CPU_ASE_VIRT): New define.
(is_opcode_valid): Handle ase_virt.
(macro_build): Handle "+J".
(validate_mips_insn): Likewise.
(mips_ip): Likewise.
(enum options): Add OPTION_VIRT and OPTION_NO_VIRT.
(md_longopts): Add mvirt and mnovirt
(md_parse_option): Handle OPTION_VIRT and OPTION_NO_VIRT.
(mips_after_parse_args): Handle ase_virt field.
(s_mipsset): Handle "virt" and "novirt".
(mips_elf_final_processing): Add a comment about virt ASE might need a new flag.
(md_show_usage): Print out the usage of -mvirt and mno-virt options.
* doc/c-mips.texi: Document -mvirt and -mno-virt.
Document ".set virt" and ".set novirt".

gas/testsuite/ChangeLog:
* gas/mips/mips.exp: Run virt and virt64 testcases.
* gas/mips/virt.d: New file.
* gas/mips/virt.s: New file.
* gas/mips/virt64.d: New file.
* gas/mips/virt64.s: New file.

include/opcode/ChangeLog:
* mips.h (OP_MASK_CODE10): Correct definition.
(OP_SH_CODE10): Likewise.
Add a comment that "+J" is used now for OP_*CODE10.
(INSN_ASE_MASK): Update.
(INSN_VIRT): New macro.
(INSN_VIRT64): New macro

opcodes/ChangeLog:
* mips-dis.c (mips_arch_choices): Add INSN_VIRT to mips32r2 .
Add INSN_VIRT and INSN_VIRT64 to mips64r2.
(parse_mips_dis_option): Handle the virt option.
(print_insn_args): Handle "+J".
(print_mips_disassembler_options): Print out message about virt64.
* mips-opc.c (IVIRT): New define.
(IVIRT64): New define.
(mips_builtin_opcodes): Add dmfgc0, dmtgc0, hypcall, mfgc0, mtgc0,
tlbgr, tlbgwi, tlbginv, tlbginvf, tlbgwr, tlbgp VIRT instructions.
Move rfe to the bottom as it conflicts with tlbgp.

11 years agodaily update
Alan Modra [Fri, 10 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Fri, 10 May 2013 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
Doug Evans [Thu, 9 May 2013 18:03:28 +0000 (18:03 +0000)]
* symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
All callers updated.
(syms_from_objfile): Ditto.  Make static.
(symbol_file_add_with_addrs): Renamed from
symbol_file_add_with_addrs_or_offsets.  Delete args offsets,
num_offsets.  All callers updated.
* symfile.h (syms_from_objfile): Delete.

11 years ago * symfile.c (decrement_reading_symtab): Add assert.
Doug Evans [Thu, 9 May 2013 17:24:55 +0000 (17:24 +0000)]
* symfile.c (decrement_reading_symtab): Add assert.
(increment_reading_symtab): Ditto.

11 years agoUse fputc in place of putc to avoid -Wunused-value warning (AIX).
Joel Brobecker [Thu, 9 May 2013 06:58:16 +0000 (06:58 +0000)]
Use fputc in place of putc to avoid -Wunused-value warning (AIX).

Currently, bfd does not compile with -Wunused-value because
the following code:

        val = putc ('\n', f);

gets expanded into some code that triggers a warning:

        warning: value computed is not used [-Wunused-value]

This is because putc is implemented as a macro...

>#define putc(__x, __p)  (((!((__p)->_flag & 0xC000)) && \
>                        ((__p)->_flag = ((__p)->_flag  & 0x3FFF) | 0x8000)),\
>                        (--(__p)->_cnt < 0 ? \
>                        __flsbuf((unsigned char) (__x), (__p)) : \
>                        (int) (*(__p)->_ptr++ = (unsigned char) (__x))))

It's the first part, before the coma operator, which triggers
the unused-value warning.

This patch fixes the issue by simply avoiding the macro and using
fputc instead.

bfd/ChangeLog:

        * bfd.c (_bfd_default_error_handler): Replace use of putc
        by fputc.  Add comment explaining why.

11 years agosource.c: Use fgetc instead of getc.
Joel Brobecker [Thu, 9 May 2013 06:52:21 +0000 (06:52 +0000)]
source.c: Use fgetc instead of getc.

On AIX, getc is a macro which triggers an -Wunused-value warning.

gdb/ChangeLog:

        * source.c (forward_search_command): Replace call to getc
        by call to fgetc.
        (reverse_search_command): Likewise.

11 years ago * ppc-opc.c (extract_vlesi): Properly sign extend.
Alan Modra [Thu, 9 May 2013 04:32:55 +0000 (04:32 +0000)]
* ppc-opc.c (extract_vlesi): Properly sign extend.
(extract_vlensi): Likewise.  Comment reason for setting invalid.

11 years ago * config/tc-ppc.c (md_apply_fix): Sign extend fieldval under
Alan Modra [Thu, 9 May 2013 04:01:53 +0000 (04:01 +0000)]
* config/tc-ppc.c (md_apply_fix): Sign extend fieldval under
control of operand flag bits.

11 years ago*** empty log message ***
gdbadmin [Thu, 9 May 2013 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Thu, 9 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years ago * elflink.c (elf_link_add_object_symbols): Don't omit reading
Alan Modra [Wed, 8 May 2013 23:31:38 +0000 (23:31 +0000)]
* elflink.c (elf_link_add_object_symbols): Don't omit reading
of symbols when hashes already exist.

11 years ago * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
Doug Evans [Wed, 8 May 2013 22:38:19 +0000 (22:38 +0000)]
* psymtab.c (expand_symtabs_matching_via_partial): Fix file name
matching test.

11 years ago * gdb.base/solib-search.exp: Set test name for "set
Tom Tromey [Wed, 8 May 2013 18:56:02 +0000 (18:56 +0000)]
* gdb.base/solib-search.exp: Set test name for "set
solib-search-path" test.

11 years ago2013-05-08 Hafiz Abid Qadeer <abidh@codesourcery.com>
Hafiz Abid Qadeer [Wed, 8 May 2013 16:15:02 +0000 (16:15 +0000)]
2013-05-08  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* gdb.trace/circ.exp: Remove unnecessary 'if then' checks.
(set_a_tracepoint): Set tracepoint before prologue.
(run_trace_experiment): Test setup_tracepoints and 'break end'
in it.
(trace_buffer_normal): Remove.
(gdb_trace_circular_tests): Remove.  Move tests to...
(top level): ...here.  Call 'runto_main' before checking for
trace support.  Use commands to check the support for circular
trace buffer and changing of trace buffer size.  Add test
to calculate size of single frame.  Use this size to
calculate the size of trace buffer.  Use 'tfind pc func9'
instead of 'tfind 9'.  Use 'with_test_prefix'.

11 years agoAvoid duplicating text in sol-thread.c:info_cb
Joel Brobecker [Wed, 8 May 2013 06:25:21 +0000 (06:25 +0000)]
Avoid duplicating text in sol-thread.c:info_cb

This is a minor cleanup that helps avoiding duplicating the output
of a command when handling alternative situations.

gdb/ChangeLog:

        * sol-thread.c (info_cb): Factorize the code a little.

11 years agoImprove output of "maintenance info sol-threads" command.
Joel Brobecker [Wed, 8 May 2013 06:23:50 +0000 (06:23 +0000)]
Improve output of "maintenance info sol-threads" command.

This patch does the following:
  - Puts the startfunc and "Sleep func" info on the same line;
  - Renames "Sleep func" into "sleepfunc" to be consistent with
    "startfunc"
  - Avoids the use of a '-' as a separate before the "sleepfunc"
    output, because the '-' looks odd and out of place when the
    "startfunc" field is not printed (ti.ti_startfunc is nul).
  - Use a '=' instead of ':' and avoids the space between
    the name of the value and its value, mostly to help group
    the value with its name.

For the record, this is how the new outout now looks like:

    (gdb) maintenance info sol-threads
    user   thread #1, lwp 1, (active)
    system thread #2, lwp 2, (active)
    system thread #3, lwp 0, (asleep)    sleepfunc=0xff32d9e0
    user   thread #4, lwp 4, (asleep)    startfunc=[...].task_wrapper   sleepfunc=0xff3290f0
    system thread #5, lwp 7, (active)    startfunc=_co_timerset
    user   thread #6, lwp 8, (active)    startfunc=[...].task_wrapper

gdb/ChangeLog:

        * sol-thread.c (info_cb): Rework the output of the "maintenance
        info sol-threads" command a bit.

11 years agoti.ti_pc vs ti.ti_startfunc copy-pasto in sol-thread.c:info_cb
Joel Brobecker [Wed, 8 May 2013 06:19:32 +0000 (06:19 +0000)]
ti.ti_pc vs ti.ti_startfunc copy-pasto in sol-thread.c:info_cb

gdb/ChangeLog:

        * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
        Replace ti.ti_startfunc by ti.ti_pc.

Probably OK to commit without approval, so will likely do so in the
next few days.

11 years agoDummy implementation of solib_aix_free_library_list if libexpat missing.
Joel Brobecker [Wed, 8 May 2013 06:10:03 +0000 (06:10 +0000)]
Dummy implementation of solib_aix_free_library_list if libexpat missing.

gdb/ChangeLog:

        * solib-aix.c (solib_aix_free_library_list): New function
        for the case where HAVE_LIBEXPAT is not defined.

11 years ago[doco] Document the XML format used for AIX shared lib support.
Joel Brobecker [Wed, 8 May 2013 05:50:47 +0000 (05:50 +0000)]
[doco] Document the XML format used for AIX shared lib support.

gdb/doc/ChangeLog:

        * gdbint.texinfo (Native Debugging): Add "AIX Shared Library
        Support" subsection documenting the XML format used to transfer
        shared library info on AIX.

11 years agoDocument set/show debug aix-solib.
Joel Brobecker [Wed, 8 May 2013 05:40:44 +0000 (05:40 +0000)]
Document set/show debug aix-solib.

gdb/doc/ChangeLog:

        * gdb.texinfo (Debugging Output): Add documentation of
        "set debug aix-solib" and "show debug aix-solib" commands.

11 years agodaily update
Alan Modra [Wed, 8 May 2013 00:00:06 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Wed, 8 May 2013 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago * lib/selftest-support.exp: New file.
Tom Tromey [Tue, 7 May 2013 18:06:16 +0000 (18:06 +0000)]
* lib/selftest-support.exp: New file.
* gdb.gdb/complaints.exp: Load selftest-support.exp.  Use
do_self_tests.
(setup_test, find_gdb): Remove.
* gdb.gdb/observer.exp: Load selftest-support.exp.  Use
do_self_tests.
(setup_test, find_gdb): Remove.
(test_observer): Don't call setup_test.  Remove argument.
* gdb.gdb/selftest.exp: Load selftest-support.exp.
(find_gdb): Remove.
* gdb.gdb/complaints.exp: Load selftest-support.exp.  Use
do_self_tests.
(setup_test, find_gdb): Remove.
(test_with_self): Don't call setup_test.  Remove argument.

11 years agoMerge gdb.arch/system-gcore.exp into gdb.base/gcore.exp
Pedro Alves [Tue, 7 May 2013 17:51:42 +0000 (17:51 +0000)]
Merge gdb.arch/system-gcore.exp into gdb.base/gcore.exp

The test case gdb.arch/system-gcore.exp is almost an identical copy of
gdb.base/gcore.exp.  The only functional change is the additional
comparison of the "info reg system" command output.

It should be safe to perform this comparison on all architectures.
Thus the patch removes the arch-specific version and adds "info reg
system" to the common gcore test case instead.

Tested on i686-linux and s390x-linux.

gdb/testsuite/Changelog:
2013-05-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>

* gdb.arch/system-gcore.exp: Remove.
* gdb.arch/gcore.c: Remove.
* gdb.base/gcore.exp: Add "info reg system".

11 years agogdb/
Sergio Durigan Junior [Tue, 7 May 2013 17:04:29 +0000 (17:04 +0000)]
gdb/
2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>

PR breakpoints/15413:
* breakpoint.c (condition_completer): Simplify the code to
disconsider multiple locations of breakpoints when completing the
"condition" command.

gdb/testsuite/
2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>

PR breakpoints/15413:
* gdb.base/pending.exp: Add test for completion of the "condition"
command for pending breakpoints.
* gdb.linespec/linespec.ex: Add test for completion of the
"condition" command when dealing with multiple locations.

11 years agobfd/elf-ifunc.c: Add header size arg to _bfd_elf_allocate_ifunc_dyn_relocs.
Will Newton [Tue, 7 May 2013 17:03:52 +0000 (17:03 +0000)]
bfd/elf-ifunc.c: Add header size arg to _bfd_elf_allocate_ifunc_dyn_relocs.

bfd/ChangeLog:

2013-05-07  Will Newton  <will.newton@linaro.org>

* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
plt_header_size argument for ports where it differs from
plt_entry_size.
* elf-bfd.h: Likewise.
* elf32-i386.c: Pass plt_header_size to
_bfd_elf_allocate_ifunc_dyn_relocs.
* elf64-x86-64.c: Likewise.

11 years agobfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.
Will Newton [Tue, 7 May 2013 17:01:12 +0000 (17:01 +0000)]
bfd/elf-ifunc.c: Remove unused function _bfd_elf_create_ifunc_dyn_reloc.

bfd/ChangeLog:

2013-05-07  Will Newton  <will.newton@linaro.org>

        * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
function.
* elf-bfd.h: Likewise.

11 years ago * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
Pierre Muller [Tue, 7 May 2013 13:04:58 +0000 (13:04 +0000)]
* common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
instead of <sys/wait.h>.

11 years ago * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
Pierre Muller [Tue, 7 May 2013 13:02:19 +0000 (13:02 +0000)]
* nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
trailing new line from warning message.

11 years ago * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
Pierre Muller [Tue, 7 May 2013 13:00:07 +0000 (13:00 +0000)]
* contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
(PC_SOLIB): Change type from ari_deprecate to ari_regression.

11 years agoAdd missing ChangeLog entries...
Joel Brobecker [Tue, 7 May 2013 12:40:08 +0000 (12:40 +0000)]
Add missing ChangeLog entries...

... for the following commits:

2013-05-07  Joel Brobecker  <brobecker@adacore.com>

       * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
       error message (ARI fix).

2013-05-07  Joel Brobecker  <brobecker@adacore.com>

       * features/library-list-aix.dtd: Replace library-list by
       library-list-aix.
       * rs6000-nat.c: Replace library-list by library-list-aix
       throughout.
       * solib-aix.c: Likewise.

2013-05-07  Joel Brobecker  <brobecker@adacore.com>

       * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
       Renames TARGET_OBJECT_AIX_LIBRARIES.
       * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
       TARGET_OBJECT_LIBRARIES_AIX throughout.
       * solib-aix.c: Likwise.

There were added, but accidently not checked in.

11 years agors6000-nat.c:rs6000_core_ldinfo: Remove \n at end of error message.
Joel Brobecker [Tue, 7 May 2013 12:36:13 +0000 (12:36 +0000)]
rs6000-nat.c:rs6000_core_ldinfo: Remove \n at end of error message.

gdb/ChangeLog:

        * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
        error message (ARI fix).

11 years agoAIX: Change XML to use library-list-aix instead of library-list.
Joel Brobecker [Tue, 7 May 2013 09:50:49 +0000 (09:50 +0000)]
AIX: Change XML to use library-list-aix instead of library-list.

This is more consistent with what we do with other similar XML lists,
and avoids a potential confusion with the library-list XML list.

gdb/ChangeLog:

        * features/library-list-aix.dtd: Replace library-list by
        library-list-aix.
        * rs6000-nat.c: Replace library-list by library-list-aix
        throughout.
        * solib-aix.c: Likewise.

11 years agoRename TARGET_OBJECT_AIX_LIBRARIES to TARGET_OBJECT_LIBRARIES_AIX
Joel Brobecker [Tue, 7 May 2013 09:50:41 +0000 (09:50 +0000)]
Rename TARGET_OBJECT_AIX_LIBRARIES to TARGET_OBJECT_LIBRARIES_AIX

More consistent with the name of other similar object names.

gdb/ChangeLog:

* target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
Renames TARGET_OBJECT_AIX_LIBRARIES.
* rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
TARGET_OBJECT_LIBRARIES_AIX throughout.
* solib-aix.c: Likwise.

11 years agogdb/
Yao Qi [Tue, 7 May 2013 09:26:09 +0000 (09:26 +0000)]
gdb/
* solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
(get_dsbt_info, enable_break, dsbt_clear_solib): Update.

11 years agogdb/
Yao Qi [Tue, 7 May 2013 09:23:28 +0000 (09:23 +0000)]
gdb/
* solib-dsbt.c (enable_break): Declare.
(dsbt_current_sos): Remove call to enable_break2.
(enable_break2): Rename to enable_break.  Set solib breakpoint
on '_dl_debug_state'.
(enable_break): Remove.

11 years ago gdb/
Luis Machado [Tue, 7 May 2013 07:43:33 +0000 (07:43 +0000)]
gdb/
* ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
debug state prior to replicating existing hardware watchpoints or
breakpoints.

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

11 years agogdb/
Jan Kratochvil [Tue, 7 May 2013 01:38:04 +0000 (01:38 +0000)]
gdb/
* gcore.c (gcore_create_callback): Ignore sections with
separate_debug_objfile_backlink != NULL.

11 years ago2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Tue, 7 May 2013 01:12:41 +0000 (01:12 +0000)]
2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.xml/tdesc-regs.exp: Add case for nios2.

11 years ago2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Tue, 7 May 2013 01:11:16 +0000 (01:11 +0000)]
2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
    Andrew Jenner  <andrew@codesourcery.com>

gdb/gdbserver/
* Makefile.in (SFILES): Add linux-nios2-low.c.
(clean): Add action to delete nios2-linux.c.
(nios2-linux.c): New rule.
* configure.srv: Add nios2*-*-linux*.
* linux-nios2-low.c: New.

11 years ago2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Tue, 7 May 2013 01:09:29 +0000 (01:09 +0000)]
2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>
    Andrew Jenner  <andrew@codesourcery.com>
    Chung-Lin Tang  <cltang@codesourcery.com>
    Julian Brown  <julian@codesourcery.com>

Based on the nios2-elf port from Altera Corporation.

gdb/
* Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
nios2-linux-tdep.o.
(HFILES_NO_SRCDIR): Add nios2-tdep.h.
(ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
* configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
* nios2-tdep.h: New.
* nios2-tdep.c: New.
* nios2-linux-tdep.c: New.
* features/Makefile (WHICH): Add nios2-linux.
(nios2-linux-expedite): Set.
* features/nios2-cpu.xml: New.
* features/nios2.xml: New.
* features/nios2-linux.xml: New.
* features/nios2.c: New (autogenerated).
* features/nios2-linux.c: New (autogenerated).
* regformats/nios2-linux.dat: New (autogenerated).
* NEWS (Changes since GDB 7.6): Add new Nios II targets
and commands.

gdb/doc/
* gdb.texinfo (Nios II): New section.
(Nios II Features): New section.

11 years ago * symfile.c: Whitespace cleanup.
Doug Evans [Tue, 7 May 2013 00:02:12 +0000 (00:02 +0000)]
* symfile.c: Whitespace cleanup.

11 years agodaily update
Alan Modra [Tue, 7 May 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Tue, 7 May 2013 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago * config/tc-ppc.c (PPC_VLE_SPLIT16A): Delete unused macro.
Alan Modra [Mon, 6 May 2013 23:36:48 +0000 (23:36 +0000)]
* config/tc-ppc.c (PPC_VLE_SPLIT16A): Delete unused macro.
(PPC_VLE_SPLIT16D, PPC_VLE_LO16A, PPC_VLE_LO16D): Likewise.
(PPC_VLE_HI16A, PPC_VLE_HI16D): Likewise.
(PPC_VLE_HA16A, PPC_VLE_HA16D): Likewise.
(md_apply_fix): Set fx_no_overflow for assorted relocations.
Shift and sign-extend fieldval for use by some VLE reloc
operand->insert functions.

11 years ago * gdb.base/solib-search-lib1.c: New file.
Doug Evans [Mon, 6 May 2013 22:20:18 +0000 (22:20 +0000)]
* gdb.base/solib-search-lib1.c: New file.
* gdb.base/solib-search-lib2.c: New file.
* gdb.base/solib-search.c: New file.
* gdb.base/solib-search.h: New file.
* gdb.base/solib-search.exp: New file.

11 years ago * solist.h (struct target_so_ops): New member clear_so.
Doug Evans [Mon, 6 May 2013 22:18:39 +0000 (22:18 +0000)]
* solist.h (struct target_so_ops): New member clear_so.
* solib-svr4.c (svr4_clear_so): New function.
(_initialize_svr4_solib): Set svr4_so_ops.clear_so.
* solib.c (clear_so): Renamed from free_so_symbols.
All callers updated.  Call target clear_so if it exists.

11 years ago * lib/gdb.exp (gdb_core_cmd): New function.
Doug Evans [Mon, 6 May 2013 22:11:16 +0000 (22:11 +0000)]
* lib/gdb.exp (gdb_core_cmd): New function.
* gdb.arch/system-gcore.exp: Use it.
* gdb.arch/vsx-regs.exp: Ditto.
* gdb.base/gcore.exp: Ditto.
* gdb.threads/gcore-thread.exp: Ditto.

11 years ago * gdb.reverse/shr.h: New file.
Doug Evans [Mon, 6 May 2013 22:07:13 +0000 (22:07 +0000)]
* gdb.reverse/shr.h: New file.
* gdb.reverse/shr1.c: New file.
* gdb.reverse/shr2.c: #include "shr.h".
* gdb.reverse/solib-reverse.c: Remove #include <stdio.h>.
#include "shr.h".  Replace calls to printf,sleep to call shr1 instead.
* gdb.reverse/solib-precsave.exp: Build shr2.sl.
Update tests using sleep/printf to use shr2.sl instead.
* gdb.reverse/solib-reverse.exp: Ditt.o

11 years ago * ada-lang.c (ada_value_primitive_packed_val): Don't
Tom Tromey [Mon, 6 May 2013 19:46:15 +0000 (19:46 +0000)]
* ada-lang.c (ada_value_primitive_packed_val): Don't
call value_incref.
* value.c (set_value_parent): Incref the new parent and decref
the old parent.
(value_copy, value_primitive_field): Use set_value_parent.

11 years ago * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
Tom Tromey [Mon, 6 May 2013 19:44:04 +0000 (19:44 +0000)]
* dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
(indirect_pieced_value): Call dwarf2_fetch_constant_bytes
if needed.
* dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
* dwarf2read.c (write_constant_as_bytes)
(dwarf2_fetch_constant_bytes): New functions.
gdb/testsuite
* gdb.dwarf2/implptrconst.c: New file.
* gdb.dwarf2/implptrconst.exp: New file.
* lib/dwarf.exp (Dwarf::_nz_quote): New proc.
(Dwarf::_handle_DW_FORM): Handle DW_FORM_block1.
(Dwarf::_location): Handle DW_OP_GNU_implicit_pointer.

11 years ago * dwarf2read.c (dwarf2_const_value_data): Remove unused
Tom Tromey [Mon, 6 May 2013 19:39:09 +0000 (19:39 +0000)]
* dwarf2read.c (dwarf2_const_value_data): Remove unused
parameters.
(dwarf2_const_value_attr): Update.

11 years ago * somread.c (som_symfile_offsets): Add 'const' to addrs.
Tom Tromey [Mon, 6 May 2013 19:38:04 +0000 (19:38 +0000)]
* somread.c (som_symfile_offsets): Add 'const' to addrs.
* machoread.c (macho_symfile_offsets): Add 'const' to addrs.
* xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
Remove declaration.

11 years ago * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
Tom Tromey [Mon, 6 May 2013 19:28:36 +0000 (19:28 +0000)]
* dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
objfile's obstack.

11 years ago * dbxread.c (process_one_symbol): Constify section_offsets parameter.
Doug Evans [Mon, 6 May 2013 19:15:17 +0000 (19:15 +0000)]
* dbxread.c (process_one_symbol): Constify section_offsets parameter.
* stabsread.h (process_one_symbol): Update declaration.
* dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
* elfread.c (elf_symfile_relocate_probe): Ditto.
* psymtab.c (relocate_psymtabs): Ditto.
* objfiles.c (objfile_relocate1): Constify new_offsets parameter.
(objfile_relocate): Ditto.
* objfiles.h (objfile_relocate): Update declaration.
* symfile.c (relative_addr_info_to_section_offsets): Constify
addrs parameter.
(default_symfile_offsets): Ditto.
(syms_from_objfile_1): Constify offsets parameter.
(syms_from_objfile): Ditto.
(symbol_file_add_with_addrs_or_offsets): Ditto.
(symfile_map_offsets_to_segments): Constify data parameter.
* symfile.h (struct quick_symbol_functions): Constify new_offsets,
delta parameters of member relocate.
(struct sym_probe_fns): Constify new_offsets,
delta parameters of member sym_relocate_probe.
(struct sym_fns): Constify section_addr_info parameter of member
sym_offsets.
(relative_addr_info_to_section_offsets): Update declaration.
(default_symfile_offsets): Ditto.
(syms_from_objfile): Ditto.
(symfile_map_offsets_to_segments): Ditto.

11 years ago * symfile.c (syms_from_objfile_1): Use correct section count when
Doug Evans [Mon, 6 May 2013 18:50:08 +0000 (18:50 +0000)]
* symfile.c (syms_from_objfile_1): Use correct section count when
objfile->sf == NULL.

11 years ago2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
Jeff Johnston [Mon, 6 May 2013 18:31:56 +0000 (18:31 +0000)]
2013-05-06  Sandra Loosemore  <sandra@codesourcery.com>

        * COPYING.NEWLIB: Add Altera Corporation copyright.

11 years agogdb: btrace: fix indentation style
Mike Frysinger [Mon, 6 May 2013 18:03:33 +0000 (18:03 +0000)]
gdb: btrace: fix indentation style

Most of this func had the incorrect indentation level (starting with 4
spaces instead of 2).

11 years ago * psympriv.h (struct partial_symtab): Augment comment for member
Doug Evans [Mon, 6 May 2013 16:45:13 +0000 (16:45 +0000)]
* psympriv.h (struct partial_symtab): Augment comment for member
section_offsets.

11 years ago2013-05-06 Paul Brook <paul@codesourcery.com>
Catherine Moore [Mon, 6 May 2013 15:25:45 +0000 (15:25 +0000)]
2013-05-06  Paul Brook  <paul@codesourcery.com>

        include/elf/
        * mips.h (R_MIPS_PC32): Update comment.

        * elf64-mips.c (elf_mips_gnu_pcrel32): New.
        (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
        mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
        * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
        (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
        mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.

2013-05-06  Paul Brook  <paul@codesourcery.com>
    Catherine Moore  <clm@codesourcery.com>

        gas/
        * config/tc-mips.c (md_pcrel_from): Handle BFD_RELOC_32_PCREL.
        (limited_pcrel_reloc_p): Likewise.
(md_apply_fix): Likewise.
(tc_gen_reloc): Likewise.

11 years ago2013-05-06 Richard Sandiford <rdsandiford@googlemail.com>
Catherine Moore [Mon, 6 May 2013 15:00:01 +0000 (15:00 +0000)]
2013-05-06  Richard Sandiford  <rdsandiford@googlemail.com>

* config/tc-mips.c (limited_pcrel_reloc_p): New function.
(mips_fix_adjustable): Adjust pc-relative check to use
limited_pc_reloc_p.

11 years agoReimplement shared library support on ppc-aix...
Joel Brobecker [Mon, 6 May 2013 14:15:50 +0000 (14:15 +0000)]
Reimplement shared library support on ppc-aix...

... using the target_so_ops framework.

gdb/ChangeLog:

        * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
        * features/library-list-aix.dtd: New file.
        * solib-aix.h, solib-aix.c: New file.
        * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
        (rs6000_find_toc_address_hook): Delete.
        (rs6000_push_dummy_call): Rewrite code setting the TOC value.
        (rs6000_aix_init_osabi): Register solib_aix_so_ops.
        * rs6000-nat.c: Remove "xcoffsolib.h" include.  Include
        "xml-utils.h".
        (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
        (vmap_symtab, fixup_breakpoints): Delete.
        (rs6000_xfer_shared_libraries): New function.
        (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
        (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
        (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
        (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
        (rs6000_xfer_shared_library): New function.
        (find_toc_address): Delete.
        (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
        * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
        * xcoffread.c (record_minimal_symbol): Reloate symbol address
        before creating minimal symbol.  Adjust function description
        accordingly.
        (scan_xcoff_symtab): Replace call to
        prim_record_minimal_symbol_and_info by call to
        record_minimal_symbol.
        (xcoff_symfile_offsets): Reimplement mostly as a wrapper
        around default_symfile_offsets.
        * configure.tgt: Add solib-aix.o to gdb_target_obs for
        powerpc-aix targets.
        * config/rs6000/nm-rs6000.h: Delete.
        * config/powerpc/aix.mh (NAT_FILE): Delete.
        (NATDEPFILES): Remove xcoffsolib.o.
        * Makefile.in (XMLFILES): Add library-list-aix.dtd.
        (ALL_TARGET_OBS): Add solib-aix.o.
        (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
        config/rs6000/nm-rs6000.h.  Add solib-aix.h.
        (ALLDEPFILES): Add solib-aix.c.  Remove xcoffsolib.c.
        * xcoffsolib.h, xcoffsolib.c: Delete.

        * solib.c (reload_shared_libraries): Remove reference to
        SOLIB_CREATE_INFERIOR_HOOK.
        * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
        (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
        (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
        comment.
        * corelow.c (deprecated_core_resize_section_table): Delete.
        * exec.c: Remove include of xcoffsolib.h".
        (map_vmap, vmap): Delete.
        (exec_close_1): Remove references to vmap.
        (exec_file_attach): Remove vmap handling code, and reference
        to DEPRECATED_IBM6000_TARGET.
        (bfdsec_to_vmap): Delete.
        (exec_files_info): Remove block of code handling VMAP.
        * infcmd.c (post_create_inferior): Remove reference to
        SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
        * infrun.c (follow_exec): Remove reference to
        SOLIB_CREATE_INFERIOR_HOOK.
        * stack.c (print_frame): Remove reference to PC_SOLIB.
        * solib-dsbt.c (dsbt_current_sos): Adjust comment.
        (dsbt_relocate_main_executable): Likewise.
        * solib-frv.c (frv_current_sos): Likewise.

gdb/doc/ChangeLog:

        * gdbint.texinfo (Algorithms): Remove entries documenting
        DEPRECATED_IBM6000_TARGET, SOLIB_ADD, and
        SOLIB_CREATE_INFERIOR_HOOK.

11 years agoFix -Wpointer-sign warning in sol-thread.c
Joel Brobecker [Mon, 6 May 2013 12:55:52 +0000 (12:55 +0000)]
Fix -Wpointer-sign warning in sol-thread.c

gdb/ChangeLog:

        * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
        to target_write_memory and target_read_memory.

11 years agodarwin: warning resuming inferior after attach
Joel Brobecker [Mon, 6 May 2013 12:41:14 +0000 (12:41 +0000)]
darwin: warning resuming inferior after attach

This patch avoids a warning when resuming the execution of a program
that we attached to. For instance:

    (gdb) attach 29989
    (gdb) continue
    Continuing.
    warning: Mach error at "/[...]/darwin-nat.c:738" in function
             "darwin_resume_thread": (os/kern) failure (0x5)

The warning is relatively harmless, but worrisome for the average
user.  The warning comes from the fact that darwin_wait recorded
that the fake stop event corresponding to the suspend action was
caused by the main thread being suspended on a SIGTRAP. As a result
of this, when resuming the program's execution, we try to resume
the thread's execution as well.  This is where the issue occurs,
as the thread was not in fact suspended, thus triggering the warning.

gdb/ChangeLog:

        * darwin-nat.c (darwin_setup_fake_stop_event): New function.
        (darwin_attach): Adjust using darwin_setup_fake_stop_event.

11 years agodarwin-nat: Print all hex values with 0x prefix.
Joel Brobecker [Mon, 6 May 2013 12:37:52 +0000 (12:37 +0000)]
darwin-nat: Print all hex values with 0x prefix.

gdb/ChangeLog:

        * darwin-nat.c: Replace all "%x" instances in format strings
        into "0x%x" throughout.

11 years agodarwin-nat.c: Do not use gdb_assert on system call outcomes.
Joel Brobecker [Mon, 6 May 2013 12:35:46 +0000 (12:35 +0000)]
darwin-nat.c: Do not use gdb_assert on system call outcomes.

There were many cases were we make a system call which could fail
due to reasons outside of the debugger control. We should handle
these situations a little more gracefully than triggering an
internal error.

gdb/ChangeLog:

        * darwin-nat.c (darwin_mourn_inferior): Replace call to
        gdb_assert by call to MACH_CHECK_ERROR.
        (darwin_attach_pid): Raise an error rather than a failed
        assertion when various system calls failed.  Report a warning
        instead of raising a failed assertion when PREV_NOT is not NULL
        after call to mach_port_request_notification.
        (darwin_ptrace_me): Raise an error rather than a failed
        assertion when read returns nonzero.

11 years agoamd64-darwin-tdep.c: Remove #include "gdb_assert.h"
Joel Brobecker [Mon, 6 May 2013 12:33:00 +0000 (12:33 +0000)]
amd64-darwin-tdep.c: Remove #include "gdb_assert.h"

gdb_assert.h is already included from darwin-nat.h, so no need to
include it again...

gdb/ChangeLog:

        * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".

11 years agoMove ChangeLog entry from sim/ to sim/ppc/...
Joel Brobecker [Mon, 6 May 2013 10:26:41 +0000 (10:26 +0000)]
Move ChangeLog entry from sim/ to sim/ppc/...

... where it belongs.

11 years ago * elf64-ppc.c (opd_entry_value): Handle case where symbol
Alan Modra [Mon, 6 May 2013 09:32:55 +0000 (09:32 +0000)]
* elf64-ppc.c (opd_entry_value): Handle case where symbol
hashes are not available.

11 years ago * elflink.c (elf_link_add_object_symbols): Don't save symbol
Alan Modra [Mon, 6 May 2013 08:45:40 +0000 (08:45 +0000)]
* elflink.c (elf_link_add_object_symbols): Don't save symbol
hashes around loading as-needed library.  Zero them on allocation,
and restore to initial all-zero state if library not needed.
Arrange to reuse hashes if we load library again later.

11 years ago*** empty log message ***
gdbadmin [Mon, 6 May 2013 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Mon, 6 May 2013 00:00:06 +0000 (00:00 +0000)]
daily update

11 years agogdb/
Jan Kratochvil [Sun, 5 May 2013 16:56:07 +0000 (16:56 +0000)]
gdb/
* cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.

11 years agogdb/
Jan Kratochvil [Sun, 5 May 2013 16:54:26 +0000 (16:54 +0000)]
gdb/
* event-top.c (display_gdb_prompt): Call missing do_cleanups.
* infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
* symfile.c (symfile_bfd_open): New variable back_to.  Do not leave
a stale cleanup.  Fix double free of NAME.

11 years agodaily update
Alan Modra [Sun, 5 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Sun, 5 May 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agoAnnounce thread death on MS-Windows.
Eli Zaretskii [Sat, 4 May 2013 13:36:18 +0000 (13:36 +0000)]
Announce thread death on MS-Windows.

* windows-nat.c (windows_delete_thread): Accept an additional
argument, the thread's exit code, and announce thread death when
print_thread_events is non-zero and we are deleting a thread that
is not the main thread.
(get_windows_debug_event): Pass thread exit code to
windows_delete_thread.

11 years agogas/testsuite/
Richard Sandiford [Sat, 4 May 2013 10:11:30 +0000 (10:11 +0000)]
gas/testsuite/
* gas/mips/micromips-warn-branch-delay.d: Use numeric registers.

11 years agobfd/
Richard Sandiford [Sat, 4 May 2013 09:33:08 +0000 (09:33 +0000)]
bfd/
* elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
* elfn32-mips.c: Likewise.
* elf64-mips.c: Likewise.

11 years ago * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
Kevin Buettner [Sat, 4 May 2013 06:25:20 +0000 (06:25 +0000)]
* v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
(R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
(E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
(E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
(E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
(E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
(E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
(v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
(gdbarch_tdep): New struct.
(v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
E_NUM_REGS.
(v850e3v5_register_name): New function.
(v850_register_type): v850e3v5 vector registers are 64-bits wide.
(v850_use_struct_convention): Add `gdbarch' parameter.  Add new
code handling the struct return conventions for the RH850 ABI.
Update all callers.
(v850_eight_byte_align_p): New function.
(v850_push_call_dummy): Push structs by value, not by reference
for the RH850 ABI.  Add support for eight byte alignment.
(v850_dbtrap_breakpoint_from_pc): New function.
(v850_gdbarch_init): Add ABI detection code.  Register
v850e3v5_register_name for the v850e3v5 architecture.  Set the
number of registers for v850e3v5.  Register
v850_dbtrap_breakpoint_from_pc as appropriate.
(_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.

11 years ago * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
Doug Evans [Sat, 4 May 2013 06:19:31 +0000 (06:19 +0000)]
* objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
of bfd_count_sections.
* solib-target.c (solib_target_relocate_section_addresses): Ditto.
* symfile.c (default_symfile_offsets): Ditto.
(syms_from_objfile_1): Ditto.  Make dummy addrs list an array of
one entry, not bfd_count_sections entries.

11 years ago * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
Kevin Buettner [Sat, 4 May 2013 06:14:53 +0000 (06:14 +0000)]
* rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
`save' and `restore' register groups.  Don't include SPL
or SPH in these groups.
(rl78_dwarf_reg_to_regnum):  Adjust mapping for
RL78_PC_REGNUM.  Add mappings for RL78_PSW_REGNUM,
RL78_ES_REGNUM, and RL78_CS_REGNUM.
(rl78_gdbarch_init): Set `dwarf2_addr_size' to 4.  Invoke
dwarf2_append_unwinders().

11 years agodaily update
Alan Modra [Sat, 4 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Sat, 4 May 2013 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

11 years agoFix to handle properly 'catch signal SIGINT' and SIGTRAP
Philippe Waroquiers [Fri, 3 May 2013 19:16:56 +0000 (19:16 +0000)]
Fix to handle properly 'catch signal SIGINT' and SIGTRAP

11 years ago2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
Hafiz Abid Qadeer [Fri, 3 May 2013 15:43:58 +0000 (15:43 +0000)]
2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* tracepoint.c (cmd_qtinit): Call 'stop_tracing'.

2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* status-stop.exp (test_tstart_tstart): Check for error
returned by the second 'tstart' command.

11 years ago gold/
Maciej W. Rozycki [Fri, 3 May 2013 15:19:27 +0000 (15:19 +0000)]
    gold/
        PR ld/15365
        * layout.cc (Layout::finalize): Make __ehdr_start STV_HIDDEN.

        ld/
        PR ld/15365
        * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
        Restrict __ehdr_start's export class to no less than STV_HIDDEN.

        ld/testsuite/
        PR ld/15365
        * ld-elf/ehdr_start.d: Expect __ehdr_start to be STB_LOCAL.
        * ld-mips-elf/ehdr_start-1.nd: New test.
        * ld-mips-elf/ehdr_start-2.nd: New test.
        * ld-mips-elf/ehdr_start-1.ld: New test linker script.
        * ld-mips-elf/ehdr_start-2.ld: New test linker script.
        * ld-mips-elf/ehdr_start-new.s: New test source.
        * ld-mips-elf/ehdr_start-o32.s: New test source.
        * ld-mips-elf/mips-elf.exp: Run the new tests.

11 years ago * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Maciej W. Rozycki [Fri, 3 May 2013 15:01:19 +0000 (15:01 +0000)]
* emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
Only call lang_for_each_statement if an ELF hash table is used.

11 years ago * ld-elf/provide-hidden-s.nd: New test.
Maciej W. Rozycki [Fri, 3 May 2013 14:57:15 +0000 (14:57 +0000)]
* ld-elf/provide-hidden-s.nd: New test.
* ld-elf/provide-hidden-abs.nd: New test.
* ld-elf/provide-hidden-def.nd: New test.
* ld-elf/provide-hidden-dyn.nd: New test.
* ld-elf/provide-hidden-sec.nd: New test.
* ld-elf/provide-hidden-dynabs.nd: New test.
* ld-elf/provide-hidden-dynsec.nd: New test.
* ld-elf/provide-hidden-s.ld: New test linker script.
* ld-elf/provide-hidden-1.ld: New test linker script.
* ld-elf/provide-hidden-2.ld: New test linker script.
* ld-elf/provide-hidden-1.s: New test source.
* ld-elf/provide-hidden-2.s: New test source.
* ld-elf/provide-hidden-3.s: New test source.
* ld-elf/provide-hidden-4.s: New test source.
* ld-elf/provide-hidden.exp: New test script.

11 years ago2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
Hafiz Abid Qadeer [Fri, 3 May 2013 14:03:57 +0000 (14:03 +0000)]
2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

revert:
2013-04-19  Nathan Froyd  <froydnj@codesourcery.com>
* ppc-instructions (isel): New instruction.

11 years ago * merge.cc (Output_merge_string::do_add_input_section): Correct
Alan Modra [Fri, 3 May 2013 09:30:24 +0000 (09:30 +0000)]
* merge.cc (Output_merge_string::do_add_input_section): Correct
scan for number of strings.  Rename vars to avoid shadowing.
Include missing terminator in input_size_.

11 years agooops - omitted from previous delta
Nick Clifton [Fri, 3 May 2013 08:33:19 +0000 (08:33 +0000)]
oops - omitted from previous delta

11 years agodaily update
Alan Modra [Fri, 3 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Fri, 3 May 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agogas/
Richard Sandiford [Thu, 2 May 2013 22:30:11 +0000 (22:30 +0000)]
gas/
* config/tc-mips.c (mips_pseudo_table): Add stabd and stabs entries.
(s_mips_stab): Do not restrict to stabn only.

gas/testsuite/
* gas/mips/mips16-stabs.s, gas/mips/mips16-stabs.d: New test.
* gas/mips/mips.exp: Run it.

11 years ago * archures.c: Add some more MSP430 machine numbers.
Nick Clifton [Thu, 2 May 2013 21:06:15 +0000 (21:06 +0000)]
* archures.c: Add some more MSP430 machine numbers.
* config.bfd (msp430): Define targ_selvecs.
* configure.in: Add bfd_elf32_msp430_ti_vec.
* cpu-msp430.c: Add some more MSP430 machine numbers.
* elf32-msp430.c Add support for MSP430X relocations.
Add support for TI compiler generated relocations.
Add support for sym_diff relocations.
Add support for relaxing out of range short branches into long
branches.
Add support for MSP430 attribute section.
* reloc.c: Add MSP430X relocations.
* targets.c: Add bfd_elf32_msp430_ti_vec.
* bfd-in2.h: Regenerate.
* configure: Regenerate.
* libbfd.h: Regenerate.

* readelf.c: Add support for MSP430X architecture.

* readelf.exp: Expect -wi test to fail for the MSP430.

* config/tc-msp430.c: Add support for the MSP430X architecture.
Add code to insert a NOP instruction after any instruction that
might change the interrupt state.
Add support for the LARGE memory model.
Add code to initialise the .MSP430.attributes section.
* config/tc-msp430.h: Add support for the MSP430X architecture.
* doc/c-msp430.texi: Document the new -mL and -mN command line
options.
* NEWS: Mention support for the MSP430X architecture.

* gas/all/gas.exp: Skip the DIFF1 test for the MSP430.
Expect the FORWARD test to pass for the MSP430.
Skip the REDEF tests for the MSP430.
Expect the 930509A test to fail for the MSP430.
* gas/all/sleb128-4.d: Skip for the MSP430.
* gas/elf/elf.exp: Set target_machine to msp430 for the MSP430.
Skip the EHOPT0 test for the MSP430.
Skip the REDEF and EQU-RELOC tests for the MSP430.
* gas/elf/section2.e-msp430: New file.
* gas/lns/lns-big-delta.d: Remove expectation of 20-bit
addresses.
* gas/lns/lns.exp: Use alternate LNS COMMON test for the MSP430.
* gas/msp430/msp430x.s: New test.
* gas/msp430/msp430x.d: Expected disassembly.
* gas/msp430/msp430.exp: Run new test.
* gas/msp430/opcode.d: Update expected disassembly.

* msp430.h: Add MSP430X relocs.
Add some more MSP430 machine numbers.
Add values used by .MSP430.attributes section.

* msp430.h: Add patterns for MSP430X instructions.

* Makefile.am: Add emsp430X.c
* Makefine.in: Regenerate.
* configure.tgt (msp430): Add msp430X emulation.
* ldmain.c (multiple_definition): Only disable relaxation if it
was enabled by the user.
* ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
* emulparams/msp430all.sh: Add support for MSP430X.
* emultempl/generic.em: (before_parse): Enable relaxation for the
MSP430.
* scripttempl/msp430.sc: Reorganize sections.  Add .rodata
section.
* scripttempl/msp430_3.sc: Likewise.
* NEWS: Mention support for MSP430X.

* ld-elf/flags1.d: Expect this test to pass on the MSP430.
* ld-elf/init-fini-arrays.d: Expect this test to fail on the
MSP430.
* ld-elf/merge.d: Expect this test to pass on the MSP430.
* ld-elf/sec64k.exp: Skip these tests for the MSP430.
* ld-gc/pr13683.d: Expect this test to fail on the MSP430.
* ld-srec/srec.exp: Expect these tests to fail on the MSP430.
* ld-undefined/undefined.exp: Expect the UNDEFINED LINE test to
fail on the MSP430.

* msp430-dis.c: Add support for MSP430X instructions.

11 years ago * dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
Nick Clifton [Thu, 2 May 2013 10:18:38 +0000 (10:18 +0000)]
* dwarf.c (display_debug_lines_raw): Do not treat .debug_line.dwo
sections as if they were fragmentary .debug_line sections.
(display_debug_lines_decoded): Likewise.

11 years ago*** empty log message ***
gdbadmin [Thu, 2 May 2013 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Thu, 2 May 2013 00:00:05 +0000 (00:00 +0000)]
daily update