external/binutils.git
12 years ago*** empty log message ***
gdbadmin [Mon, 2 Apr 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 2 Apr 2012 00:00:05 +0000 (00:00 +0000)]
daily update

12 years agosim: bfin: throw VEC_ILGAL_I with 32bit insn in group1/group2 slots
Mike Frysinger [Sun, 1 Apr 2012 04:31:46 +0000 (04:31 +0000)]
sim: bfin: throw VEC_ILGAL_I with 32bit insn in group1/group2 slots

Parallel insns can only do one 32bit, then two 16bits.  So if we see
a 2nd 32bit insn after the first 32bit in a parallel insn, abort.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: bfin: simplify field width processing and fix build warnings
Mike Frysinger [Sun, 1 Apr 2012 04:23:40 +0000 (04:23 +0000)]
sim: bfin: simplify field width processing and fix build warnings

This fix the build time warning:
warning: format not a string literal, argument types not checked [-Wformat-nonliteral]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: bfin: fix unused bfrom handling for BF535
Mike Frysinger [Sun, 1 Apr 2012 04:21:03 +0000 (04:21 +0000)]
sim: bfin: fix unused bfrom handling for BF535

machs.c: In function 'bfin_model_cpu_init':
machs.c:1657:1: warning: 'bfrom' may be used uninitialized
in this function [-Wuninitialized]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoopcodes: bfin: simplify field width processing and fix build warnings
Mike Frysinger [Sun, 1 Apr 2012 04:15:43 +0000 (04:15 +0000)]
opcodes: bfin: simplify field width processing and fix build warnings

This fix the build time warning:
warning: format not a string literal, argument types not checked [-Wformat-nonliteral]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: bfin: fix build warning/style with auxvt_size
Mike Frysinger [Sun, 1 Apr 2012 02:39:12 +0000 (02:39 +0000)]
sim: bfin: fix build warning/style with auxvt_size

Fix warning about mixing decls and code by moving auxvt_size decl
down to the scope where it is used.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agodaily update
Alan Modra [Sun, 1 Apr 2012 00:00:35 +0000 (00:00 +0000)]
daily update

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

12 years agosim: bfin: fix typo in BF54x SIC init
Mike Frysinger [Sat, 31 Mar 2012 18:48:20 +0000 (18:48 +0000)]
sim: bfin: fix typo in BF54x SIC init

The current code triggers a warning:
dv-bfin_sic.c: In function 'bfin_sic_finish':
dv-bfin_sic.c:930:41: warning: operation on 'sic-><U78e8>.bf54x.iwr1'
may be undefined [-Wsequence-point]

This points out the IWR2 register was not being setup because of a typo.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: bfin: include devices.h to fix build warnings
Mike Frysinger [Sat, 31 Mar 2012 18:44:43 +0000 (18:44 +0000)]
sim: bfin: include devices.h to fix build warnings

The place where these funcs get defined do not include the header that
declares their prototypes.  Add that to fix -Wmissing-prototypes:

devices.c:59:1: warning: no previous prototype for 'dv_bfin_mmr_invalid'
devices.c:66:1: warning: no previous prototype for 'dv_bfin_mmr_require'
devices.c:99:1: warning: no previous prototype for 'dv_bfin_mmr_check'
devices.c:159:14: warning: no previous prototype for 'dv_get_bus_num'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago* elf32-m68k.c (elf_m68k_relocate_section): Allow
Andreas Schwab [Sat, 31 Mar 2012 14:27:33 +0000 (14:27 +0000)]
* elf32-m68k.c (elf_m68k_relocate_section): Allow
R_68K_TLS_LE{8,16,32} for PIE.

12 years ago*** empty log message ***
gdbadmin [Sat, 31 Mar 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Fri, 30 Mar 2012 23:00:08 +0000 (23:00 +0000)]
daily update

12 years ago * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
Thiago Jung Bauermann [Fri, 30 Mar 2012 20:23:16 +0000 (20:23 +0000)]
* configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
are available.
* linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
[HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
* config.in: Regenerate.
* configure: Likewise.

12 years ago * python/python.c (gdbpy_decode_line): Move cleanup creation out
Tom Tromey [Fri, 30 Mar 2012 20:05:55 +0000 (20:05 +0000)]
* python/python.c (gdbpy_decode_line): Move cleanup creation out
of TRY_CATCH.  Fix error handling.
* python/py-value.c (convert_value_from_python): Move 'old'
declaration to innermost scope.

12 years ago * gdb.python: Add test for linespecs with commas.
Keith Seitz [Fri, 30 Mar 2012 19:16:52 +0000 (19:16 +0000)]
* gdb.python: Add test for linespecs with commas.

12 years ago2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 30 Mar 2012 13:38:04 +0000 (13:38 +0000)]
2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf64-s390.c: Fix several comments regarding PLT entry
description.
* elf32-s390.c: Likewise.

12 years ago2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 30 Mar 2012 13:37:13 +0000 (13:37 +0000)]
2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf64-s390.c: Use the section pointer shortcuts in
elf_link_hash_table and remove them from the target specific
variant.
* elf32-s390.c: Likewise.

12 years ago2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 30 Mar 2012 13:36:22 +0000 (13:36 +0000)]
2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
New definitions.
(PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
(elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
(elf_s390_finish_dynamic_sections): Likewise.
* elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
(elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
(elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
(PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
(PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.

12 years ago2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Fri, 30 Mar 2012 13:35:33 +0000 (13:35 +0000)]
2012-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
Rename all occurrences in the file to elf_dyn_relocs.
* elf64-s390.c: Likewise.

12 years ago * po/vi.po: Updated Vietnamese translation.
Nick Clifton [Fri, 30 Mar 2012 12:54:48 +0000 (12:54 +0000)]
* po/vi.po: Updated Vietnamese translation.

12 years ago PR binutils/13925
Nick Clifton [Fri, 30 Mar 2012 12:51:07 +0000 (12:51 +0000)]
PR binutils/13925
* stabs.c (stab_demangle_v3_arglist): Cope with the demangler
returning an empty context for a function with no arguments.

12 years ago*** empty log message ***
gdbadmin [Fri, 30 Mar 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoRename variables in ada-lang.c:ada_make_symbol_completion_list.
Joel Brobecker [Thu, 29 Mar 2012 23:30:55 +0000 (23:30 +0000)]
Rename variables in ada-lang.c:ada_make_symbol_completion_list.

This renaming allows us to have variable names that are consistent
with the names of the parameters in the functions where these
variables are used.  This also allows us to avoid a -Wshadow warning
in the case of variable "wild_match", which is now renamed to
"wild_match_p".

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
        "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
        Adjust code accordingly.

12 years agoRename "encoded" parameter in ada-lang.c:symbol_completion_add...
Joel Brobecker [Thu, 29 Mar 2012 23:30:46 +0000 (23:30 +0000)]
Rename "encoded" parameter in ada-lang.c:symbol_completion_add...

... This is mostly to be consistent with the style used for the other
parameter of the same kind ("wild_match_p") in that function.

gdb/ChangeLog:

        * ada-lang.c (symbol_completion_add): Rename parameter
        "encoded" into "encoded_p".  Ajust code and documentation
        accordingly.

12 years agoRename "wild_match" parameter in ada-lang.c:symbol_completion_add...
Joel Brobecker [Thu, 29 Mar 2012 23:30:38 +0000 (23:30 +0000)]
Rename "wild_match" parameter in ada-lang.c:symbol_completion_add...

... to avoid a -Wshadow warning.

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (symbol_completion_add): Rename parameter
        "wild_match" into wild_match_p.  Update code and documentation
        accordingly.

12 years agoRename "encoded" parameter in ada-lang.c:symbol_completion_match...
Joel Brobecker [Thu, 29 Mar 2012 23:30:29 +0000 (23:30 +0000)]
Rename "encoded" parameter in ada-lang.c:symbol_completion_match...

... This is mostly to be consistent with the style used for the other
parameter of the same kind ("wild_match_p") in that function.

gdb/ChangeLog:

        * ada-lang.c (symbol_completion_match): Rename parameter
        "encoded" into "encoded_p".  Ajust code and documentation
        accordingly.

12 years agoRename "wild_match" parameter in ada-lang.c:symbol_completion_match
Joel Brobecker [Thu, 29 Mar 2012 23:30:21 +0000 (23:30 +0000)]
Rename "wild_match" parameter in ada-lang.c:symbol_completion_match

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (symbol_completion_match): Rename parameter
        "wild_match" into "wild_match_p".  Adjust code and function
        documentation accordingly.

12 years agorename "symbol_info" to "sym_info" in ada-lang.c...
Joel Brobecker [Thu, 29 Mar 2012 23:30:13 +0000 (23:30 +0000)]
rename "symbol_info" to "sym_info" in ada-lang.c...

... to avoid a -Wshadow warning with a symbol exported by BFD.

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
        "symbol_info" into "info".  Adjust code accordingly.
        (ada_lookup_symbol): Likewise.

12 years agoMinor reformatting of ada_lookup_symbol_list's documentation.
Joel Brobecker [Thu, 29 Mar 2012 23:30:04 +0000 (23:30 +0000)]
Minor reformatting of ada_lookup_symbol_list's documentation.

This patch mostly removes a few trailing spaces.

gdb/ChangeLog:

        * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
        of this function's documentation.

12 years agoRename "wild_match" variable in ada-lang.c:ada_lookup_symbol_list
Joel Brobecker [Thu, 29 Mar 2012 23:29:56 +0000 (23:29 +0000)]
Rename "wild_match" variable in ada-lang.c:ada_lookup_symbol_list

... to avoid -Wshadow warning...

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
        variable into "wild_match_p".  Adjust code accordingly.

12 years agoRename "wild_match" parameter in ada-lang.c:ada_add_local_symbols
Joel Brobecker [Thu, 29 Mar 2012 23:29:47 +0000 (23:29 +0000)]
Rename "wild_match" parameter in ada-lang.c:ada_add_local_symbols

... to avoid -Wshadow warning...

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
        parameter into "wild_match_p".  Adjust code accordingly.
        Document this parameter in the function description.

12 years agoRename "wild_match" parameter in add_symbols_from_enclosing_procs
Joel Brobecker [Thu, 29 Mar 2012 23:29:37 +0000 (23:29 +0000)]
Rename "wild_match" parameter in add_symbols_from_enclosing_procs

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (add_symbols_from_enclosing_procs): Rename
        "wild_match" parameter to "wild_match_p" (-Wshadow).

12 years agoRemove trailing spaces in ada-lang.c:ada_lookup_simple_minsym doc.
Joel Brobecker [Thu, 29 Mar 2012 23:29:28 +0000 (23:29 +0000)]
Remove trailing spaces in ada-lang.c:ada_lookup_simple_minsym doc.

gdb/ChangeLog:

        * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
        in function documentation.

12 years agoFix -Wshadow warning in ada-lang.c:ada_lookup_simple_minsym
Joel Brobecker [Thu, 29 Mar 2012 23:29:19 +0000 (23:29 +0000)]
Fix -Wshadow warning in ada-lang.c:ada_lookup_simple_minsym

gdb/ChangeLog:

        -Wshadow warning fix.
        * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
        variable into wild_match_p.  Adjust code accordingly.

12 years ago * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
Alan Modra [Thu, 29 Mar 2012 23:17:37 +0000 (23:17 +0000)]
* elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
libraries.

12 years agodaily update
Alan Modra [Thu, 29 Mar 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2012-03-29 Pedro Alves <palves@redhat.com>
Pedro Alves [Thu, 29 Mar 2012 21:27:28 +0000 (21:27 +0000)]
2012-03-29  Pedro Alves  <palves@redhat.com>

* linux-low.c (regsets_store_inferior_registers) [__sparc__]:
Correct ptrace arguments.

12 years agoFix -Wshadow error in ada-valprint.c
Joel Brobecker [Thu, 29 Mar 2012 18:50:21 +0000 (18:50 +0000)]
Fix -Wshadow error in ada-valprint.c

gdb/ChangeLog:

        * ada-valprint.c (ada_val_print_1): Move the code handling
        TYPE_CODE_ENUM inside its own lexical block.  Declare
        variables len and val there, instead of in the function's
        top level block.  Avoid declaring deref_val again in a way
        that shadows another variable of the same name declared
        in one of the up-level blocks.  Just re-use the up-level
        variable instead.

12 years agoMake ada_lookup_encoded_symbol "return" a struct ada_symbol_info
Joel Brobecker [Thu, 29 Mar 2012 18:23:00 +0000 (18:23 +0000)]
Make ada_lookup_encoded_symbol "return" a struct ada_symbol_info

This makes ada_lookup_encoded_symbol more consistent with other functions
such as ada_lookup_symbol_list, and also makes it clearer in the code
using that function that symbol and block are related.

gdb/ChangeLog:

        * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
        Replace block_found argument by symbol_info.  Adjust
        implementation accordingly.  Add function documentation.
        (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
        Fix documentation.
        * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
        * ada-exp.y (write_object_renaming): Adjust to new
        ada_lookup_encoded_symbol API.

12 years ago[Ada] struct ada_symbol_info minor reformatting & doc update.
Joel Brobecker [Thu, 29 Mar 2012 18:22:51 +0000 (18:22 +0000)]
[Ada] struct ada_symbol_info minor reformatting & doc update.

gdb/ChangeLog:

  * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
  documentation.

12 years ago * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
Alan Modra [Thu, 29 Mar 2012 13:22:43 +0000 (13:22 +0000)]
* bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
* bfd-in2.h: Regenerate.

12 years ago2012-03-29 Terry Guo <terry.guo@arm.com>
Matthew Gretton-Dann [Thu, 29 Mar 2012 10:28:40 +0000 (10:28 +0000)]
2012-03-29  Terry Guo  <terry.guo@arm.com>

* gas/config/tc-arm.c (arm_cpus): Add cortex-m0plus.
* gas/doc/c-arm.texi (ARM Options): Document -mcpu=cortex-m0plus.

12 years ago * dwarf.c (display_gdb_index): Handle index version 6.
Tom Tromey [Thu, 29 Mar 2012 01:55:41 +0000 (01:55 +0000)]
* dwarf.c (display_gdb_index): Handle index version 6.

12 years agoCommit gdb and sim support for v850e2 and v850e2v3 on behalf of
Kevin Buettner [Thu, 29 Mar 2012 00:57:19 +0000 (00:57 +0000)]
Commit gdb and sim support for v850e2 and v850e2v3 on behalf of
Rathish C <Rathish.C@kpitcummins.com>.

12 years ago*** empty log message ***
gdbadmin [Thu, 29 Mar 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years ago[NEWS] Announce support for Ada varobj support.
Joel Brobecker [Wed, 28 Mar 2012 21:31:56 +0000 (21:31 +0000)]
[NEWS] Announce support for Ada varobj support.

gdb/ChangeLog:

        * NEWS: Add entry for Ada varobj support.

12 years ago[doco] document the "type_changed" flag further.
Joel Brobecker [Wed, 28 Mar 2012 21:31:46 +0000 (21:31 +0000)]
[doco] document the "type_changed" flag further.

gdb/doc/ChangeLog:

        * gdb.texinfo (GDB/MI Variable Objects): Document what happens
        to the children of a varobj and its update range when -var-update
        returns that the varobj's type changed.

12 years agoNew varobj language callback: value_is_changeable_p.
Joel Brobecker [Wed, 28 Mar 2012 21:31:29 +0000 (21:31 +0000)]
New varobj language callback: value_is_changeable_p.

This patch introduces a new language-specific callback for varobj
objects, allowing us to move the language-specific bits of the
varobj_value_is_changeable_p routine to language-specific functions.
This is more elegant than testing for the varobj's language...

gdb/ChangeLog:

        * varobj.c (default_value_is_changeable_p): New function,
        extracted from varobj_value_is_changeable_p.  Add declaration.
        (ada_value_is_changeable_p): New function, extracted from
        varobj_value_is_changeable_p.  Add declaration.
        (struct language_specific): New field "value_is_changeable_p".
        (languages): Add entries for new field.
        (varobj_create): Set language before calling install_new_value.
        (varobj_value_is_changeable_p): Reimplement to call the varobj's
        "value_is_changeable_p" language callback.

12 years agoVarobj support for Ada.
Joel Brobecker [Wed, 28 Mar 2012 21:31:18 +0000 (21:31 +0000)]
Varobj support for Ada.

This patch adds varobj support for Ada variables.  Most of the code
is implemented in a separate Ada-specific file called ada-varobj.c.
The only bits in varobj.c are the functions used as the hooks in
the language-specific varobj's vector.

gdb/ChangeLog:

        * ada-varobj.h, ada-varobj.c: New files.
        * Makefile.in (SFILES): Add ada-varobj.c.
        (HFILES_NO_SRCDIR): Add ada-varobj.h.
        (COMMON_OBS): Add ada-varobj.o.

12 years agoframework for varobj type mutation
Joel Brobecker [Wed, 28 Mar 2012 21:31:05 +0000 (21:31 +0000)]
framework for varobj type mutation

This patch introduces the framework necessary to support type mutations.
The only language that currently provides a language-specific hook for
that feature is Ada, but the hook remain unimplemented for now. The
actual implementation is tied to the rest of the varobj code for Ada,
and thus will be provided then.

gdb/ChangeLog:

        * varobj.c (ada_value_has_mutated): Add declaration.  New function.
        (struct language_specific): New field "value_has_mutated".
        (languages): Set field "value_has_mutated" in each entry of array.
        (varobj_value_has_mutated): New function.
        (varobj_udpdate): Add handling of type mutation.
        (value_of_root): Add handling of type mutation.
        (ada_value_has_mutated): New function.

12 years ago2012-03-28 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 28 Mar 2012 18:30:01 +0000 (18:30 +0000)]
2012-03-28  Pedro Alves  <palves@redhat.com>

* linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
(IA64_GR0_REGNUM, IA64_FR0_REGNUM)
(IA64_FR1_REGNUM): New defines.
(ia64_fetch_register): New.
(the_low_target): Install it.
* linux-low.h (struct linux_target_ops) <fetch_register>: New
field.
* linux-low.c (linux_fetch_registers): Try the
the_low_target.fetch_register hook first.

* linux-arm-low.c (the_low_target): Adjust.
* linux-bfin-low.c (the_low_target): Adjust.
* linux-cris-low.c (the_low_target): Adjust.
* linux-crisv32-low.c (the_low_target): Adjust.
* linux-m32r-low.c (the_low_target): Adjust.
* linux-m68k-low.c (the_low_target): Adjust.
* linux-mips-low.c (the_low_target): Adjust.
* linux-ppc-low.c (the_low_target): Adjust.
* linux-s390-low.c (the_low_target): Adjust.
* linux-sh-low.c (the_low_target): Adjust.
* linux-sparc-low.c (the_low_target): Adjust.
* linux-tic6x-low.c (the_low_target): Adjust.
* linux-x86-low.c (the_low_target): Adjust.
* linux-xtensa-low.c (the_low_target): Adjust.

12 years ago2012-03-28 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 28 Mar 2012 17:50:17 +0000 (17:50 +0000)]
2012-03-28  Pedro Alves  <palves@redhat.com>

* ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
Always supply $fr0 as 0.0 and $fr1 as 1.0.

12 years ago * python/py-inferior.c (infpy_read_memory): Remove cleanups and
Tom Tromey [Wed, 28 Mar 2012 17:38:08 +0000 (17:38 +0000)]
* python/py-inferior.c (infpy_read_memory): Remove cleanups and
explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
before returning.

12 years ago * .dir-locals.el: New file.
Tom Tromey [Wed, 28 Mar 2012 17:35:38 +0000 (17:35 +0000)]
* .dir-locals.el: New file.

12 years ago * gdb.linespec/ls-dollar.cc: New file.
Keith Seitz [Wed, 28 Mar 2012 17:33:33 +0000 (17:33 +0000)]
* gdb.linespec/ls-dollar.cc: New file.
* gdb.linespec/ls-dollar.exp: New test.

12 years ago2012-03-28 Pedro Alves <palves@redhat.com>
Pedro Alves [Wed, 28 Mar 2012 17:29:54 +0000 (17:29 +0000)]
2012-03-28  Pedro Alves  <palves@redhat.com>

* ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.

12 years ago * gdb.cp/namespace.exp: Add breakpoint tests for functions
Keith Seitz [Wed, 28 Mar 2012 17:29:42 +0000 (17:29 +0000)]
* gdb.cp/namespace.exp: Add breakpoint tests for functions
starting with the global namespace.

12 years ago[ia64-linux] Allow libunwind to fetch register 0
Joel Brobecker [Wed, 28 Mar 2012 17:08:48 +0000 (17:08 +0000)]
[ia64-linux] Allow libunwind to fetch register 0

On ia64-linux, GDB sometimes prints the following error when trying
to switch to a different task:

    (gdb) task 3
    Register 0 is not available

This is a random failure that sometimes happens, sometimes does not.
The error comes from the fact that the libunwind library is requesting
the value of register 0 (zero): This eventually leads us to
ia64-linux-nat.c:ia64_linux_fetch_register.

This function relies on ia64_cannot_fetch_register to determine
whether or not we have access to the register's value.  The ptrace
interface does not provide the r0 value, and so we end up telling
the regcache that this register's value is not available.  And yet,
for r0, we do not need to ask ptrace for its value, since it is
always zero.

So, the fix was to add a special rule for supplying a nul value
when regnum == IA64_GR0_REGNUM.

gdb/ChangeLog:

        * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
        handling for r0.

12 years agoPawandeep Oza updated to write-after-apporval section at the correct order
Pawandeep Oza [Wed, 28 Mar 2012 04:37:43 +0000 (04:37 +0000)]
Pawandeep Oza updated to write-after-apporval section at the correct order

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

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

12 years agogdb/doc/
Jan Kratochvil [Tue, 27 Mar 2012 20:44:13 +0000 (20:44 +0000)]
gdb/doc/
* gdb.texinfo (Auto-loading): Move @menu to the end of @node.
Create two new links fir 'objfile-gdb.py file'
and 'dotdebug_gdb_scripts section'.

12 years agogdb/doc/
Jan Kratochvil [Tue, 27 Mar 2012 20:15:20 +0000 (20:15 +0000)]
gdb/doc/
* gdb.texinfo (Auto-loading): Rename node reference
'.debug_gdb_scripts section' to 'dotdebug_gdb_scripts section'.
Twice.
(.debug_gdb_scripts section): Rename the node ...
(dotdebug_gdb_scripts section): ... here.
(Maintenance Commands): Also rename this node reference.

12 years agold/
Roland McGrath [Tue, 27 Mar 2012 19:23:59 +0000 (19:23 +0000)]
ld/
* configure.in: Set want64 on a 64-bit host regardless of
--enable-targets=all.
* configure: Regenerated.

12 years agoFix formatting.
Pedro Alves [Tue, 27 Mar 2012 19:16:23 +0000 (19:16 +0000)]
Fix formatting.

12 years ago2012-03-27 Pedro Alves <palves@redhat.com>
Pedro Alves [Tue, 27 Mar 2012 19:08:37 +0000 (19:08 +0000)]
2012-03-27  Pedro Alves  <palves@redhat.com>

Eliminate struct ui_stream.

* ui-out.h (struct ui_stream): Delete.
(ui_out_field_stream): Adjust prototype.
(ui_out_stream_new, ui_out_stream_delete)
(make_cleanup_ui_out_stream_delete): Delete declarations.
* ui-out.c (ui_out_field_stream): Change prototype to take a
ui_file instead of a ui_stream.  Adjust.
(ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
(make_cleanup_ui_out_stream_delete): Delete.
* breakpoint.c (print_breakpoint_location)
(print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
* disasm.c (dump_insns): Ditto.
(do_mixed_source_and_assembly, do_assembly_only): Adjust
prototype.
(gdb_disassembly): Use ui_file/mem_fileopen instead of
ui_stream/ui_out_stream_new.
* infcmd.c (print_return_value): Ditto.
* osdata.c (info_osdata_command): Don't allocate a local
ui_stream.
* stack.c (print_frame_arg, print_frame_args, print_frame): Use
ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
* tracepoint.c (print_one_static_tracepoint_marker): Don't
allocate a local ui_stream.
* mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
instead of ui_stream/ui_out_stream_new.
(list_args_or_locals): Don't allocate a local ui_stream.
* mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
(mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
ui_stream/ui_out_stream_new.
* cli/cli-setshow.c (do_setshow_command): Ditto.

12 years ago * arm-linux-tdep.c (arm_linux_init_abi): Call
Pawandeep Oza [Tue, 27 Mar 2012 15:46:33 +0000 (15:46 +0000)]
   * arm-linux-tdep.c (arm_linux_init_abi): Call
       set_gdbarch_process_record.
       Initialize `arm_swi_record' field.

       * arm-tdep.c (arm_process_record): New function.
       (deallocate_reg_mem): New function.
       (decode_insn): New function.
       (thumb_record_branch): New function.
       (thumb_record_ldm_stm_swi(): New function.
       (thumb_record_misc): New function.
       (thumb_record_ld_st_stack): New function.
       (thumb_record_ld_st_imm_offset): New function.
       (thumb_record_ld_st_reg_offset(): New function.
       (thumb_record_add_sub_cmp_mov): New function.
       (thumb_record_shift_add_sub): New function.
       (arm_record_coproc_data_proc): New function.
       (arm_record_coproc): New function.
       (arm_record_b_bl): New function.
       (arm_record_ld_st_multiple): New function.
       (arm_record_ld_st_reg_offset): New function.
       (arm_record_ld_st_imm_offset): New function.
       (arm_record_data_proc_imm): New function.
       (arm_record_data_proc_misc_ld_str): New function.
       (arm_record_extension_space): New function.
       (arm_record_strx): New function.
       (sbo_sbz): New function.
       (struct insn_decode_record): New structure for arm insn record.
       (REG_ALLOC): New macro for reg allocations.
       (MEM_ALLOC): New macro for memory allocations.

       * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'

12 years ago* m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
Andreas Schwab [Tue, 27 Mar 2012 08:15:26 +0000 (08:15 +0000)]
* m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
(store_register): Likewise.

12 years agosim: add bugzilla marking
Mike Frysinger [Tue, 27 Mar 2012 04:18:05 +0000 (04:18 +0000)]
sim: add bugzilla marking

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

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

12 years agoMAINTAINERS (Write After Approval): Add myself to the list.
Pawandeep Oza [Mon, 26 Mar 2012 18:18:40 +0000 (18:18 +0000)]
MAINTAINERS (Write After Approval): Add myself to the list.

12 years ago2012-03-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 26 Mar 2012 13:54:57 +0000 (13:54 +0000)]
2012-03-26  Pedro Alves  <palves@redhat.com>

* server.c (handle_qxfer_libraries): Don't bail early if
the_target->qxfer_libraries_svr4 is not NULL.

12 years ago2012-03-26 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Mon, 26 Mar 2012 13:05:16 +0000 (13:05 +0000)]
2012-03-26  Tristan Gingold  <gingold@adacore.com>

* lexsup.c (parse_args): Add a missing '\n'.

12 years ago2012-03-26 Pedro Alves <palves@redhat.com>
Pedro Alves [Mon, 26 Mar 2012 12:39:19 +0000 (12:39 +0000)]
2012-03-26  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.

12 years agosim: add a proper sim_core_trans_addr prototype
Mike Frysinger [Mon, 26 Mar 2012 02:18:43 +0000 (02:18 +0000)]
sim: add a proper sim_core_trans_addr prototype

The common code has a sim_core_trans_addr() helper that only the m32r code
uses.  Move the inline extern in the m32r code to the proper common header.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years ago*** empty log message ***
gdbadmin [Mon, 26 Mar 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 25 Mar 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agosim: bfin: skip .c/.S tests if no compiler is available
Mike Frysinger [Sun, 25 Mar 2012 16:51:46 +0000 (16:51 +0000)]
sim: bfin: skip .c/.S tests if no compiler is available

Similar to logic in the cris exp, attempt a simple compile and if it fails
(presumably due to the compiler being broken), skip all the related tests.
Fortunately, most tests (~600 out of ~800) are pure assembly, so people should
still get pretty good coverage.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agogdb/
Jan Kratochvil [Sun, 25 Mar 2012 13:44:01 +0000 (13:44 +0000)]
gdb/
* NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
Describe also the option "auto".

12 years agosim: bfin: disable redundant test that makes 32bit gas angry
Mike Frysinger [Sun, 25 Mar 2012 07:56:12 +0000 (07:56 +0000)]
sim: bfin: disable redundant test that makes 32bit gas angry

12 years agold/
Alan Modra [Sun, 25 Mar 2012 06:45:16 +0000 (06:45 +0000)]
ld/
* ldemul.c (before_allocation_default): Revert last change.
ldlang.c (lang_add_section): Likewise.
(strip_excluded_output_sections): Don't strip output sections with
user input sections when emitrelocations, unless all are SEC_EXCLUDE.
ld/testsuite/
* ld-powerpc/vxworks-relax.rd: Remove check on reloc section
file offset and reloc symbol indices.

12 years agosim: bfin: fix typos in large constants in tests
Mike Frysinger [Sun, 25 Mar 2012 06:43:43 +0000 (06:43 +0000)]
sim: bfin: fix typos in large constants in tests

Truncate constants that are larger than 32bits but get loaded into 32bit
registers.  These high bits don't get used and don't really make sense.

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

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

12 years ago * nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
Hans-Peter Nilsson [Sat, 24 Mar 2012 09:31:09 +0000 (09:31 +0000)]
* nrun.c: Add #ifdef HAVE_CONFIG_H and associated includes stanza
missing in last change.

12 years ago[PATCH] sim: make sure to include strsignal prototype
Mike Frysinger [Sat, 24 Mar 2012 05:38:43 +0000 (05:38 +0000)]
[PATCH] sim: make sure to include strsignal prototype

Before POSIX standardized strsignal(), old systems would hide the
prototype unless the normal extension defines were enabled.  So use
the AC_USE_SYSTEM_EXTENSIONS helper for that.

Then make sure we include string.h ourselves in nrun.c rather than
relying on implicit includes via other sim headers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agosim: testsuite: regen configure after rl78 addition
Mike Frysinger [Sat, 24 Mar 2012 05:37:10 +0000 (05:37 +0000)]
sim: testsuite: regen configure after rl78 addition

12 years agosim: cris: update testsuite output after strsignal change
Mike Frysinger [Sat, 24 Mar 2012 05:33:42 +0000 (05:33 +0000)]
sim: cris: update testsuite output after strsignal change

12 years ago gas/
Maxim Kuvyrkov [Sat, 24 Mar 2012 01:09:28 +0000 (01:09 +0000)]
gas/
* config/tc-mips.c (mips_cpu_info_table): Add entry for Broadcom XLP.
* doc/c-mips.texi: Mention XLP.

opcodes/
* mips-dis.c (mips_arch_choices): Add entry for Broadcom XLP.

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

12 years agodaily update
Alan Modra [Fri, 23 Mar 2012 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.
Doug Evans [Fri, 23 Mar 2012 22:28:35 +0000 (22:28 +0000)]
* lib/gdb.exp (BUILD_DATA_DIRECTORY): New global.

12 years ago2012-03-23 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 23 Mar 2012 20:27:08 +0000 (20:27 +0000)]
2012-03-23  Pedro Alves  <palves@redhat.com>

* linux-low.c (linux_qxfer_libraries_svr4): Terminate the
"library-list-svr4" element's start tag when the the DSO list is
empty.

12 years ago2012-03-23 Pedro Alves <palves@redhat.com>
Pedro Alves [Fri, 23 Mar 2012 20:26:14 +0000 (20:26 +0000)]
2012-03-23  Pedro Alves  <palves@redhat.com>

* linux-low.c (read_one_ptr): Read the inferior's pointer through
a variable whose type size is the same as the inferior's pointer
size.

12 years ago * ldemul.c (before_allocation_default): When emitrelocations,
Alan Modra [Fri, 23 Mar 2012 09:35:34 +0000 (09:35 +0000)]
* ldemul.c (before_allocation_default): When emitrelocations,
don't strip sections..
* ldlang.c (lang_add_section): ..and don't set up map_head, map_tail.

12 years ago * elf.c (assign_file_positions_for_non_load_sections): Don't warn
Alan Modra [Fri, 23 Mar 2012 09:34:57 +0000 (09:34 +0000)]
* elf.c (assign_file_positions_for_non_load_sections): Don't warn
on empty alloc sections.