external/binutils.git
12 years agogdb/
Jan Kratochvil [Fri, 2 Dec 2011 17:01:20 +0000 (17:01 +0000)]
gdb/
PR threads/13448
* dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
For DW_OP_GNU_push_tls_address increment the value, new comment for it.

gdb/testsuite/
PR threads/13448
* gdb.dwarf2/dw2-var-zero-addr.S: New file.
* gdb.dwarf2/dw2-var-zero-addr.exp: New file.
* gdb.threads/tls-var-main.c: New file.
* gdb.threads/tls-var.c: New file.
* gdb.threads/tls-var.exp: New file.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 2 Dec 2011 12:43:29 +0000 (12:43 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.trace/collection.exp (gdb_collect_return_test): Import gdb_prompt.
Protect gdb_test_multiple by final $gdb_prompt match.
* gdb.trace/tspeed.exp (gdb_fast_trace_speed_test): Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
(test_tracepoints): Likewise.

12 years agogdb/
Jan Kratochvil [Fri, 2 Dec 2011 01:28:55 +0000 (01:28 +0000)]
gdb/
PR breakpoints/13346
* dwarf2read.c (process_psymtab_comp_unit): Set
PSYMTABS_ADDRMAP_SUPPORTED.
* psympriv.h (struct partial_symtab): Comment textlow and texthigh
validity.  New field psymtabs_addrmap_supported.
* psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
psymtabs_addrmap_supported.
(find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
!PSYMTABS_ADDRMAP_SUPPORTED.
(dump_psymtab, maintenance_info_psymtabs): Print also
psymtabs_addrmap_supported.

gdb/testsuite/
PR breakpoints/13346
* gdb.dwarf2/dw2-objfile-overlap-inner.S: New file.
* gdb.dwarf2/dw2-objfile-overlap-outer.S: New file.
* gdb.dwarf2/dw2-objfile-overlap.exp: New file.

12 years ago * python/py-type.c (type_object_methods): Fix "array" doc string.
Doug Evans [Fri, 2 Dec 2011 00:27:48 +0000 (00:27 +0000)]
* python/py-type.c (type_object_methods): Fix "array" doc string.

12 years ago*** empty log message ***
gdbadmin [Fri, 2 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoMake sure all types in gdb.ada/homonym testcase are used...
Joel Brobecker [Thu, 1 Dec 2011 23:16:44 +0000 (23:16 +0000)]
Make sure all types in gdb.ada/homonym testcase are used...

Otherwise, the compiler does not generate any debug info for them.
This fixes 3 FAILs:

    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype int_type at BREAK_1
    FAIL: gdb.ada/homonym.exp: ptype local_type_subtype at BREAK_2

gdb/testsuite/ChangeLog:

        * gdb.ada/homonym/pck.ads, gdb.ada/homonym/pck.adb: New files.
        * gdb.ada/homonym/homonym.adb: For use of all types defined
        locally inside both Get_Value subprograms.

12 years agodaily update
Alan Modra [Thu, 1 Dec 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/testsuite/
Jan Kratochvil [Thu, 1 Dec 2011 22:06:45 +0000 (22:06 +0000)]
gdb/testsuite/
Fix racy FAILs.
* gdb.base/foll-exec.exp (zap_session): Use gdb_test_no_output instead
of send_gdb.

12 years ago * gdb.texinfo (Writing a Pretty-Printer): Use append method, not
Tom Tromey [Thu, 1 Dec 2011 20:27:28 +0000 (20:27 +0000)]
* gdb.texinfo (Writing a Pretty-Printer): Use append method, not
add.

12 years ago * elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
Nick Clifton [Thu, 1 Dec 2011 15:50:58 +0000 (15:50 +0000)]
* elf32-m68k.c (elf_m68k_check_relocs) <R_68K_8, R68K_16, R_68K_32>: For
non-SEC_ALLOC sections break before GOT and PLT accounting.

12 years ago * emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
Nick Clifton [Thu, 1 Dec 2011 11:38:32 +0000 (11:38 +0000)]
* emultempl/spuelf.em (spu_elf_relink): Use pex_one in place
of execvp.

12 years agohttp://sourceware.org/ml/gdb-patches/2011-11/msg00778.html
Andrew Burgess [Thu, 1 Dec 2011 10:37:06 +0000 (10:37 +0000)]
sourceware.org/ml/gdb-patches/2011-11/msg00778.html

* source.c (print_source_lines_base): Fix missing braces on else clause
leading to additional output.

12 years ago * elf32-cris.c (cris_elf_check_relocs) <plt accounting for
Hans-Peter Nilsson [Thu, 1 Dec 2011 02:51:14 +0000 (02:51 +0000)]
* elf32-cris.c (cris_elf_check_relocs) <plt accounting for
R_CRIS_8, R_CRIS_16, and R_CRIS_32>: Move early break for
non-SEC_ALLOC sections before GOT and PLT accounting.

12 years ago*** empty log message ***
gdbadmin [Thu, 1 Dec 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 30 Nov 2011 23:00:07 +0000 (23:00 +0000)]
daily update

12 years agoChangeLog:
Ulrich Weigand [Wed, 30 Nov 2011 16:06:55 +0000 (16:06 +0000)]
ChangeLog:

* s390-nat.c (SUBOFF): Remove.
(s390_native_supply, s390_native_collect): New functions.
(supply_gregset, supply_fpregset): Use s390_native_supply.
(fill_gregset, fill_fpregset): Use s390_native_collect.

* s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
(s390_unwind_pseudo_register): New function.
(s390_prologue_frame_unwind_cache): Unwind PSW address and mask
registers instead of PC and CC.
(s390_backchain_frame_unwind_cache): Likewise.
(s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
full GPR pseudos.
(s390_trad_frame_prev_register): New function.
(s390_frame_prev_register): Use it.
(s390_sigtramp_frame_prev_register): Likewise.
(s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
(s390_dwarf2_frame_init_reg): Unwind PSW address and mask.  Use
special callback to unwind any pseudo.

* features/s390-core32.xml: Add pswm/pswa to save/restore group.
* features/s390-core64.xml: Likewise.
* features/s390x-core64.xml: Likewise.
* features/s390-linux32.c: Regenerate.
* features/s390-linux64.c: Likewise.
* features/s390x-linux64.c: Likewise.

gdbserver/ChangeLog:

* linux-s390-low.c (s390_collect_ptrace_register): Fully convert
PSW address/mask between 8-byte and 16-byte formats.
(s390_supply_ptrace_register): Likewise.
(s390_get_pc, s390_set_pc): 4-byte PSW address always includes
basic addressing mode bit.

12 years ago * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
Ulrich Weigand [Wed, 30 Nov 2011 08:26:46 +0000 (08:26 +0000)]
* s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.

12 years ago * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
Ulrich Weigand [Wed, 30 Nov 2011 08:26:06 +0000 (08:26 +0000)]
* s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
instruction.  Add more diagnostic output.

12 years ago * gdb.base/testenv.exp: Skip on remote targets. Unset global
Ulrich Weigand [Wed, 30 Nov 2011 08:25:17 +0000 (08:25 +0000)]
* gdb.base/testenv.exp: Skip on remote targets.  Unset global
environment variable after test completed.

12 years ago * gdb.base/solib-nodir.exp: Skip if remote target.
Ulrich Weigand [Wed, 30 Nov 2011 08:24:32 +0000 (08:24 +0000)]
* gdb.base/solib-nodir.exp: Skip if remote target.
* gdb.base/gdb.fortran.exp: Use shlib= flag when linking main
application.  Call gdb_load_shlibs.
* gdb.mi/mi-solib.exp: Use mi_load_shlibs instead of gdb_load_shlibs.

12 years ago*** empty log message ***
gdbadmin [Wed, 30 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 29 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agoopcode/
Andrew Pinski [Tue, 29 Nov 2011 20:28:55 +0000 (20:28 +0000)]
opcode/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips-dis.c (mips_arch_choices): Add Octeon+.
        * mips-opc.c (IOCT): Include Octeon+.
        (IOCTP): New macro.
        (mips_builtin_opcodes): Add "saa" and "saad".
bfd/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * archures.c (bfd_mach_mips_octeonp): New macro.
        * bfd-in2.h: Regenerate.
        * bfd/cpu-mips.c (I_mipsocteonp): New enum value.
        (arch_info_struct): Add bfd_mach_mips_octeonp.
        * elfxx-mips.c (mips_set_isa_flags): Add bfd_mach_mips_octeonp.
        (mips_mach_extensions): Add bfd_mach_mips_octeonp.
include/opcodes/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEONP.
        (INSN_OCTEONP): New macro.
        (CPU_OCTEONP): New macro.
        (OPCODE_IS_MEMBER): Add Octeon+.
        (M_SAA_AB, M_SAAD_AB, M_SAA_OB, M_SAAD_OB): New enum values.
gas/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * config/tc-mips.c (CPU_IS_OCTEON): New macro function.
        (CPU_HAS_SEQ): Change to use CPU_IS_OCTEON.
        (NO_ISA_COP): Likewise.
        (macro) <ld_st>: Add support when off0 is true.
        Add support for M_SAA_AB, M_SAA_OB, M_SAAD_OB and M_SAAD_AB.
        (mips_cpu_info_table): Add octeon+.
        * doc/c-mips.texi: Document octeon+ as an acceptable value for -march=.
gas/testsuite/
2011-11-29  Andrew Pinski  <apinski@cavium.com>

        * gas/mips/mips.exp: Add octeon+ for an architecture.
        Run octeon-saa-saad test.
        (run_dump_test_arch): For Octeon architectures, also try octeon@.
        * gas/mips/octeon-pref.d: Remove -march=octeon from command line.
        * gas/mips/octeon.d: Likewise.
        * gas/mips/octeon-saa-saad.d: New file.
        * gas/mips/octeon-saa-saad.s: New file

12 years ago * ar.c (ranlib_usage): Describe -D.
Roland McGrath [Tue, 29 Nov 2011 18:07:41 +0000 (18:07 +0000)]
* ar.c (ranlib_usage): Describe -D.
(ranlib_main): Parse -D.
(ranlib_touch): Set BFD_DETERMINISTIC_OUTPUT under -D.
* doc/binutils.texi (ranlib): Describe -D, and also --help/-h/-H.

12 years agoNew gdb.base/infoline.exp testcase.
Joel Brobecker [Tue, 29 Nov 2011 16:59:45 +0000 (16:59 +0000)]
New gdb.base/infoline.exp testcase.

gdb/testsuite/ChangeLog:

        * gdb.base/infoline.c, gdb.base/infoline.exp: New files.

12 years ago PR ld/10144
Maciej W. Rozycki [Tue, 29 Nov 2011 12:42:10 +0000 (12:42 +0000)]
PR ld/10144
* lib/ld-lib.exp (run_ld_link_tests): Handle sources from other
directories.
(run_ld_link_exec_tests): Likewise.
(run_cc_link_tests): Likewise.
* ld-elf/comm-data1.sd: New test.
* ld-elf/comm-data1.s: Source for the new test.
* ld-elf/comm-data2.sd: New test.
* ld-elf/comm-data2.rd: Likewise.
* ld-elf/comm-data2.xd: Likewise.
* ld-elf/comm-data2.s: Source for the new tests.
* ld-elf/comm-data.exp: New file.
* ld-mips-elf/comm-data.exp: Likewise.

12 years ago * MAINTAINERS (Write After Approval): Add myself to the list.
Andrey Smirnov [Tue, 29 Nov 2011 10:26:23 +0000 (10:26 +0000)]
* MAINTAINERS (Write After Approval): Add myself to the list.

12 years agogdb/
Sanjoy Das [Tue, 29 Nov 2011 08:30:29 +0000 (08:30 +0000)]
gdb/

* jit.c (add_objfile_entry, jit_reader_try_read_symtab)
(jit_bfd_try_read_symtab): Fix comments.

12 years agoRecord Mike Frysinger as a sim Global Maintainer.
Joel Brobecker [Tue, 29 Nov 2011 06:25:05 +0000 (06:25 +0000)]
Record Mike Frysinger as a sim Global Maintainer.

sim/ChangeLog:

* maintainers (global maintainers): new section.  add mike
frysinger.

12 years ago[sim]
DJ Delorie [Tue, 29 Nov 2011 03:49:09 +0000 (03:49 +0000)]
[sim]
* configure.tgt: Add rl78 support.
* configure: Regenerate.
* rl78: New directory.
* MAINTAINERS: Add myself as RL78 maintainer.
[gdb]
* NEWS: Mention RL78 simulator.

12 years agoFurther fix the documentation in struct quick_symbol_functions
Joel Brobecker [Tue, 29 Nov 2011 01:09:23 +0000 (01:09 +0000)]
Further fix the documentation in struct quick_symbol_functions

gdb/ChangeLog:

        * symfile.h (struct quick_symbol_functions): Fix the documentation
        of field map_matching_symbols, as symbols are sorted using
        strcmp_iw_ordered, not strcmp_iw.

12 years agoUpdate documentation in struct quick_symbol_functions
Joel Brobecker [Tue, 29 Nov 2011 01:01:02 +0000 (01:01 +0000)]
Update documentation in struct quick_symbol_functions

Paul sent me this documentiion update when I asked him a question
about compare_names in ada-lang.c.

gdb/ChangeLog:

        * symfile.h (struct quick_symbol_functions): Update the
        documentation for field map_matching_symbols.

12 years agowrong value returned by ada-lang.c:compare_names
Joel Brobecker [Tue, 29 Nov 2011 01:00:52 +0000 (01:00 +0000)]
wrong value returned by ada-lang.c:compare_names

The ada-lang.c:compare_names function returns the wrong value
when the first string starts with the same contents as the second
string, followed by '_' and then some characters that do not make
a symbol name suffix.  For instance:

    string1 = "generics__test_generics__instance__print"
    string2 = "generics__test_generics"

In that case, compare_names (string1, string2) return -1, when
clearly, string1 is greater than string2.

A consequence of this problem is that GDB may fail to lookup
"generics.test_generics" from our partial symtabs, because
partial symbols are ordered by strcmp_iw_ordered:

    (gdb) b generics.test_generics
    Function "generics.test_generics" not defined.
    Make breakpoint pending on future shared library load? (y or [n])

gdb/ChangeLog:

        * ada-lang.c (compare_names): Fix wrong return value in case
        string1 starts with the same contents as string2, followed
        by an underscore that do not start a symbol name suffix.

gdb/testsuite/ChangeLog:

        * gdb.ada/fullname_bp: New testcase.

12 years ago*** empty log message ***
gdbadmin [Tue, 29 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 28 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago PR binutils/13421
Nick Clifton [Mon, 28 Nov 2011 16:51:09 +0000 (16:51 +0000)]
PR binutils/13421
* readelf.c (arm_section_get_word): Add descriptive comments.
Initliase the rel_type field of the arm_sec structure.
(expand_prel31): Rename to arm_expand_prel31.
(dump_arm_unwind): Use new name.
Print the function name based on the function address entry.

12 years ago2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
Phil Muldoon [Mon, 28 Nov 2011 15:49:43 +0000 (15:49 +0000)]
2011-11-28  Phil Muldoon  <pmuldoon@redhat.com>

PR python/13369
PR python/13374

* python/python.c (gdbpy_decode_line): Do not acquire GIL.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
exceptions.
* python/py-type.c (typy_strip_typedefs): Ditto.
(typy_legacy_template_argument): Ditto.
* python/py-inferior.c (inferior_to_inferior_object): Ditto.
* python/py-breakpoint.c (bppy_set_ignore_count): Ditto.

12 years ago*** empty log message ***
gdbadmin [Mon, 28 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 27 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years agoremove use of sprintf_vma in remote_get_tracepoint_status
Joel Brobecker [Sun, 27 Nov 2011 17:39:30 +0000 (17:39 +0000)]
remove use of sprintf_vma in remote_get_tracepoint_status

This function takes a VMA and was forcing us to perform a cast to
compile without warning on one platform. Except that the cast caused
a warning on sparc-solaris.  This patch fixes the problem by using
phex_nz instead.

gdb/ChangeLog:

        * remote.c (remote_get_tracepoint_status): Delete addrbuf
        local variable.  Avoid use of sprintf_vma.

12 years agogdb/
Sanjoy Das [Sun, 27 Nov 2011 14:26:09 +0000 (14:26 +0000)]
gdb/

Fix regression in jit.exp.
* jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(jit_register_code): Set the jit_objfile_data field to the correct
value.

12 years ago*** empty log message ***
gdbadmin [Sun, 27 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 26 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 26 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 25 Nov 2011 23:53:45 +0000 (23:53 +0000)]
gdb/testsuite/
Code cleanup.
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse4_test):
Convert send_gdb and gdb_expect to gdb_test_multiple.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 25 Nov 2011 23:50:15 +0000 (23:50 +0000)]
gdb/testsuite/
PR testsuite/12649
* gdb.reverse/i386-sse-reverse.exp (continue to end of sse_test #2):
Wrap send_gdb into a new gdb_test.

12 years agogdb/testsuite/
Jan Kratochvil [Fri, 25 Nov 2011 23:26:15 +0000 (23:26 +0000)]
gdb/testsuite/
* gdb.base/jit-so.exp (one_jit_test): Add testcase name to log message.

12 years agodaily update
Alan Modra [Fri, 25 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
Ulrich Weigand [Fri, 25 Nov 2011 17:05:42 +0000 (17:05 +0000)]
2011-11-25 Â Uros Bizjak Â <ubizjak@gmail.com>

* alpha-tdep.c (br_opcode): New.
(ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
(alpha_deal_with_atomic_sequence): New function.
(alpha_gdbarch_init): Handle single stepping of atomic sequences
with alpha_deal_with_atomic_sequence.

12 years ago * mips-dis.c (print_insn_micromips): Rename local variable iprintf
Pierre Muller [Fri, 25 Nov 2011 15:21:29 +0000 (15:21 +0000)]
* mips-dis.c (print_insn_micromips): Rename local variable iprintf
to infprintf to avoid shadow warning.

12 years ago * gas/config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
Matthew Gretton-Dann [Fri, 25 Nov 2011 15:17:36 +0000 (15:17 +0000)]
* gas/config/tc-arm.c (do_t_mov_cmp): Allow MOV lowreg, lowreg when no CPU
is specified.
* gas/testsuite/gas/arm/mov-highregs-any.d: New testcase.
* gas/testsuite/gas/arm/mov-highregs-any.s: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.d: Likewise.
* gas/testsuite/gas/arm/mov-lowregs-any.s: Likewise.

12 years ago * emultempl/armelf.em: Update copyright to 2010 and 2011.
Nick Clifton [Fri, 25 Nov 2011 15:04:09 +0000 (15:04 +0000)]
* emultempl/armelf.em: Update copyright to 2010 and 2011.
(PARSE_AND_LIST_OPTIONS): Fix formatting.

12 years ago * binutils-all/objdump.exp (cpus): Add MicroBlaze.
Nick Clifton [Fri, 25 Nov 2011 14:47:48 +0000 (14:47 +0000)]
* binutils-all/objdump.exp (cpus): Add MicroBlaze.
(objdump -WL): Skip this test on MCore, Moxie and OpenRisc
targets.

* binutils-all/objcopy.exp (localize-hidden-1): Expect this test
to fail on MIPS based targets.

12 years ago * po/it.po: Updated Italian translation.
Nick Clifton [Fri, 25 Nov 2011 09:19:07 +0000 (09:19 +0000)]
* po/it.po: Updated Italian translation.

12 years ago * po/it.po: New Italian translation.
Nick Clifton [Fri, 25 Nov 2011 09:15:26 +0000 (09:15 +0000)]
* po/it.po: New Italian translation.

12 years ago2011-11-24 Stan Shebs <stan@codesourcery.com>
Stan Shebs [Fri, 25 Nov 2011 04:41:15 +0000 (04:41 +0000)]
2011-11-24  Stan Shebs  <stan@codesourcery.com>

* tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.

12 years ago*** empty log message ***
gdbadmin [Fri, 25 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Thu, 24 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago2011-11-24 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Thu, 24 Nov 2011 16:26:25 +0000 (16:26 +0000)]
2011-11-24  Tristan Gingold  <gingold@adacore.com>

* machoread.c (oso_el): Remove num_Sections, symbols, offsets
fields.  Add oso_sym, end_sym and nbr_syms.
(macho_register_oso): Change interface.
(macho_symtab_add_minsym): New function.
(macho_symtab_read): Rewritten.
(get_archive_prefix_len): Remove trailing blanks.
(oso_el_compare_name): Add comment.
(struct macho_sym_hash_entry): New structure.
(macho_relocate_common_syms): Remove.
(macho_sym_hash_newfunc): New function.
(macho_resolve_oso_sym_with_minsym): Likewise.
(macho_add_oso_symfile): Rewritten.
(macho_symfile_read_all_oso): Remove trailing blanks.
Adjust code to free oso vector.
(macho_symfile_read): Likewise.
Move code to initialize minimal symbol

12 years ago * mips-tdep.c (extended_offset): Fix formatting.
Maciej W. Rozycki [Thu, 24 Nov 2011 15:56:25 +0000 (15:56 +0000)]
* mips-tdep.c (extended_offset): Fix formatting.

12 years ago*** empty log message ***
gdbadmin [Thu, 24 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 23 Nov 2011 23:00:06 +0000 (23:00 +0000)]
daily update

12 years ago * lib/mi-support.exp (varobj_tree): New namespace and procs.
Keith Seitz [Wed, 23 Nov 2011 21:02:55 +0000 (21:02 +0000)]
* lib/mi-support.exp (varobj_tree): New namespace and procs.
(mi_varobj_tree_test_children_callback): New proc.
(mi_walk_varobj_tree): New proc.

12 years ago * dwarf2read.c (dw2_lookup_symtab): Add comment.
Doug Evans [Wed, 23 Nov 2011 19:55:42 +0000 (19:55 +0000)]
* dwarf2read.c (dw2_lookup_symtab): Add comment.
(dw2_expand_symtabs_with_filename): Ditto.
(dw2_expand_symtabs_matching): Ditto.
(dw2_map_symbol_filenames): Ditto.

12 years agoMinor reformatting in ada-lang.c:assign_aggregate
Joel Brobecker [Wed, 23 Nov 2011 19:54:18 +0000 (19:54 +0000)]
Minor reformatting in ada-lang.c:assign_aggregate

No code change.

gdb/ChangeLog:

        From Andrey Smirnov <andrew.smirnov@gmail.com>:
        * ada-lang.c (assign_aggregate): Minor reformatting.

12 years agofix -Wshadow warning inside ada-lang.c:assign_aggregate
Joel Brobecker [Wed, 23 Nov 2011 19:54:08 +0000 (19:54 +0000)]
fix -Wshadow warning inside ada-lang.c:assign_aggregate

gdb/ChangeLog:

        From Andrey Smirnov <andrew.smirnov@gmail.com>:
        * ada-lang.c (assign_aggregate): Remove declaration of local
        variable `i' which is shadowing another variable with the same
        name declared in the outer scope.

12 years agoada-lang.c: Rename function base_type into get_base_type
Joel Brobecker [Wed, 23 Nov 2011 19:21:12 +0000 (19:21 +0000)]
ada-lang.c: Rename function base_type into get_base_type

This avoids shadowing issues with variables named base_type.

gdb/ChangeLog:

        * ada-lang.c (get_base_type): Renames base_type.  Adjust all
        calls throughout this file.

12 years agoFix compilation error in gdb-dlfcn.c (on Windows)
Joel Brobecker [Wed, 23 Nov 2011 17:24:03 +0000 (17:24 +0000)]
Fix compilation error in gdb-dlfcn.c (on Windows)

gdb/ChangeLog:

        * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
        FormatMessage.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 23 Nov 2011 11:32:42 +0000 (11:32 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (s_alpha_prologue): Requires empty line.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 23 Nov 2011 11:27:51 +0000 (11:27 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* config/tc-alpha.c (s_alpha_frame): Emit a warning if bad value
of RA.
(s_alpha_pdesc): Adjust comment.

12 years ago2011-11-23 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 23 Nov 2011 11:22:22 +0000 (11:22 +0000)]
2011-11-23  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (get_idxlen): Add comments.  Fix type in sizeof.
(vms_write_index): Add comments.

12 years ago2011-11-23 Thomas Klein <th.r.klein@web.de>
Richard Earnshaw [Wed, 23 Nov 2011 10:50:53 +0000 (10:50 +0000)]
2011-11-23  Thomas Klein  <th.r.klein@web.de>

* config/tc-arm.c (do_t_mov_cmp): Prevent emitting code for MOV
with two low register at arch v4t or v5t when assember using
unified syntax.

12 years ago*** empty log message ***
gdbadmin [Wed, 23 Nov 2011 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 22 Nov 2011 23:00:04 +0000 (23:00 +0000)]
daily update

12 years agogdb
Tom Tromey [Tue, 22 Nov 2011 21:25:19 +0000 (21:25 +0000)]
gdb
PR mi/8444:
* mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
(EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
(EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
* mi/mi-common.c (async_reason_string_lookup): Add new reasons.
* breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
(print_it_catch_syscall, print_it_catch_exec)
(internal_bkpt_print_it): Use ui_out.  Emit stop reason.
(bpstat_print): Add 'kind' argument.  Handle
TARGET_WAITKIND_LOADED.
* infrun.c (normal_stop): Update for bpstat_print change.  Don't
handle TARGET_WAITKIND_LOADED here.
* breakpoint.h (bpstat_print): Update.
gdb/testsuite
* lib/mi-support.exp (mi_run_cmd_full): Rename from mi_run_cmd.
Add "use_mi_command" argument.
(mi_run_cmd, mi_run_with_cli): New procs.
* gdb.mi/solib-lib.c: New file.
* gdb.mi/solib-main.c: New file.
* gdb.mi/mi-solib.exp: New file.
gdb/doc
* gdb.texinfo (GDB/MI Async Records): Document new *stopped
reasons.

12 years ago * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
Tom Tromey [Tue, 22 Nov 2011 21:21:54 +0000 (21:21 +0000)]
* mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.

12 years ago * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
Tom Tromey [Tue, 22 Nov 2011 21:18:38 +0000 (21:18 +0000)]
* mi/mi-common.c (_initialize_gdb_mi_common): Remove.
Use static_assert to check the size of
async_reason_string_lookup.
* common/gdb_assert.h (static_assert): New macro.

12 years ago* elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
DJ Delorie [Tue, 22 Nov 2011 19:50:36 +0000 (19:50 +0000)]
* elf32-rx.c (rx_elf_object_p): Add more checks for "scanning" to
avoid using the special non-swapping target when not explicitly
requested.

12 years ago* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.
DJ Delorie [Tue, 22 Nov 2011 19:46:20 +0000 (19:46 +0000)]
* elf32-rx.c (rx_elf_object_p): Correct typo: lma->vma.

12 years ago2011-11-22 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Tue, 22 Nov 2011 10:47:50 +0000 (10:47 +0000)]
2011-11-22  Tristan Gingold  <gingold@adacore.com>

* mach-o.c (bfd_mach_o_print_symbol): Display COM for common
symbols.  Print section name in brackets.

12 years ago * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
Alan Modra [Tue, 22 Nov 2011 08:19:16 +0000 (08:19 +0000)]
* rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
destination calculation.  Don't expect >> to sign extend.  Don't
add a break if branch lands inside the sequence anywhere.

12 years ago*** empty log message ***
gdbadmin [Tue, 22 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 21 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
Keith Seitz [Mon, 21 Nov 2011 21:53:50 +0000 (21:53 +0000)]
* gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
-var-evaluate-expression of an enumeration and fix expected result.
* gdb.mi/mi2-varvdisplay.exp: Likewise.

12 years ago * gdb.cp/nextoverthrow.exp: Skip test if debug info for
Doug Evans [Mon, 21 Nov 2011 17:34:17 +0000 (17:34 +0000)]
* gdb.cp/nextoverthrow.exp: Skip test if debug info for
_Unwind_DebugHook is missing.

12 years ago* config/rl78-defs.h (rl78_error): Add "const".
DJ Delorie [Mon, 21 Nov 2011 17:10:31 +0000 (17:10 +0000)]
* config/rl78-defs.h (rl78_error): Add "const".
* config/rl78-parse.y (rl78_error): Likewise.

12 years ago2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
Kwok Yeung [Mon, 21 Nov 2011 16:54:28 +0000 (16:54 +0000)]
2011-11-21  Kwok Cheung Yeung  <kcy@codesourcery.com>

        * osdata.c (info_osdata_command): Rename nprocs to nrows.  Handle
        the case where osdata->items is empty.  Rename column names to a
        canonical form to avoid problems with unusual column names.

12 years ago * Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
Alan Modra [Mon, 21 Nov 2011 13:22:46 +0000 (13:22 +0000)]
* Makefile.am (ALL_64_EMULATION_SOURCES): Add powerpc64-*-freebsd
source.
(eelf64ppc_fbsd.c): Add rules to build this file.
* Makefile.in: Regenerate.
* configure.tgt: Add target definition for powerpc64-*-freebsd*.
Adjust powerpc-*-freebsd*.
* emultempl/ppc64elf.em: Add a mechanism to override the default
value of 0 for plt_static_chain.
* emulparams/elf32ppc_fbsd.sh (OUTPUT_FORMAT): Override the default.
* emulparams/elf64ppc_fbsd.sh (OUTPUT_FORMAT): Likewise.
(DEFAULT_PLT_STATIC_CHAIN): Define to 1.

12 years ago * config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.
Alan Modra [Mon, 21 Nov 2011 13:19:33 +0000 (13:19 +0000)]
* config/tc-ppc.c (ppc_target_format): Add format for powerpc*-freebsd.

12 years ago * config.bfd: Add vectors for powerpc and powerpc64-freebsd.
Alan Modra [Mon, 21 Nov 2011 13:18:07 +0000 (13:18 +0000)]
* config.bfd: Add vectors for powerpc and powerpc64-freebsd.
* configure.in (TDEFINES): Add rules for powerpc*-freebsd.
* configure: Regenerate.
* elf32-ppc.c: Add powerpc-freebsd definitions.
* elf64-ppc.c: Add powerpc64-freebsd definitions.
* targets.c: Add bits for powerpc and powerpc64-freebsd.

12 years ago * gas/mips/micromips@24k-branch-delay-1.d: New test.
Maciej W. Rozycki [Mon, 21 Nov 2011 11:18:28 +0000 (11:18 +0000)]
* gas/mips/micromips@24k-branch-delay-1.d: New test.
* gas/mips/micromips@24k-triple-stores-1.d: New test.
* gas/mips/micromips@24k-triple-stores-2.d: New test.
* gas/mips/micromips@24k-triple-stores-3.d: New test.
* gas/mips/micromips@24k-triple-stores-4.d: New test.
* gas/mips/micromips@24k-triple-stores-5.d: New test.
* gas/mips/micromips@24k-triple-stores-6.d: New test.
* gas/mips/micromips@24k-triple-stores-7.d: New test.
* gas/mips/micromips@24k-triple-stores-8.d: New test.
* gas/mips/micromips@24k-triple-stores-9.d: New test.
* gas/mips/micromips@24k-triple-stores-10.d: New test.
* gas/mips/micromips@24k-triple-stores-11.d: New test.
* gas/mips/24k-triple-stores-1.s: Adjust for microMIPS
disassembly.
* gas/mips/24k-triple-stores-2.s: Likewise.
* gas/mips/24k-triple-stores-3.s: Likewise.
* gas/mips/24k-triple-stores-4.s: Likewise.
* gas/mips/24k-triple-stores-5.s: Likewise.
* gas/mips/24k-triple-stores-6.s: Likewise.
* gas/mips/24k-triple-stores-7.s: Likewise.
* gas/mips/24k-triple-stores-8.s: Likewise.
* gas/mips/24k-triple-stores-9.s: Likewise.
* gas/mips/24k-triple-stores-10.s: Likewise.
* gas/mips/24k-triple-stores-11.s: Likewise.
* gas/mips/mips.exp: Run the new tests.

12 years ago * gas/mips/micromips@loc-swap-2.d: Correct test case.
Maciej W. Rozycki [Mon, 21 Nov 2011 11:12:41 +0000 (11:12 +0000)]
* gas/mips/micromips@loc-swap-2.d: Correct test case.

12 years agogdb/
Yao Qi [Mon, 21 Nov 2011 02:58:40 +0000 (02:58 +0000)]
gdb/
* MAINTAINERS (Write After Approval): Keep list in alphabetical order.

12 years agoFix a 32-bit compile error in the previous checkin
Stan Shebs [Mon, 21 Nov 2011 00:43:48 +0000 (00:43 +0000)]
Fix a 32-bit compile error in the previous checkin

12 years ago*** empty log message ***
gdbadmin [Mon, 21 Nov 2011 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago * NEWS: Mention tracepoint additions.
Stan Shebs [Sun, 20 Nov 2011 23:59:49 +0000 (23:59 +0000)]
* NEWS: Mention tracepoint additions.
* breakpoint.h (struct tracepoint): New field traceframe_usage.
* breakpoint.c (print_one_breakpoint_location): Identify
tracepoints as such when reporting hit counts, report
trace buffer usage.
(create_tracepoint_from_upload): Copy status info.
* tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
add fields user_name, notes, start_time, stop_time.
(struct uploaded_tp): Add fields hit_count, traceframe_usage.
* tracepoint.c (trace_user): New global.
(trace_notes): New global.
(trace_stop_notes): New global.
(start_tracing): Add argument and trace note handling.
(stop_tracing): Ditto.
(trace_start_command): Add notes argument.
(trace_stop_command): Ditto.
(trace_status_command): Report additional status info.
(trace_status_mi): Similarly.
(trace_save): Update, record tracepoint status.
(set_disconnected_tracing): Call target method directly.
(send_disconnected_tracing_value): Remove.
(set_trace_user): New function.
(set_trace_notes): New function.
(set_trace_stop_notes): New function.
(parse_trace_status): Handle additional status.
(parse_tracepoint_status): New function.
(parse_tracepoint_definition): Call it.
(tfile_get_tracepoint_status): New function.
(init_tfile_ops): Use it.
(_initialize_tracepoint): Add new setshows.
* target.h (struct target_ops): New methods to_get_tracepoint_status
and to_set_trace_notes.
(target_get_tracepoint_status): New macro.
(target_set_trace_notes): New macro.
* target.c (update_current_target): Add new methods.
* remote.c (remote_get_tracepoint_status): New function.
(remote_set_trace_notes): New function.
(init_remote_ops): Add them.
* mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
(mi_cmd_trace_stop): Ditto.

* tracepoint.c (struct tracepoint): New field traceframe_usage.
(tracing_start_time): New global.
(tracing_stop_time): New global.
(tracing_user_name): New global.
(tracing_notes): New global.
(tracing_stop_note): New global.
(cmd_qtstart): Set traceframe_usage, start_time.
(stop_tracing): Set stop_time.
(cmd_qtstatus): Report additional status.
(cmd_qtp): New function.
(handle_tracepoint_query): Call it.
(cmd_qtnotes): New function.
(handle_tracepoint_general_set): Call it.
(get_timestamp): Rename from tsv_get_timestamp.

* gdb.texinfo (Starting and Stopping Trace Experiments): Document
note-related options and variables.
(Tracepoint Packets): Document packet changes.

* gdb.trace/tstatus.exp: New.
* gdb.trace/actions.c: Include string.h.

12 years agodaily update
Alan Modra [Sun, 20 Nov 2011 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agogdb/doc/
Sanjoy Das [Sun, 20 Nov 2011 09:20:59 +0000 (09:20 +0000)]
gdb/doc/
* gdb.texinfo (JIT Interface): Add documentation on writing and
usind JIT debug info readers.
(Custom Debug Info, Using JIT Debug Info Readers, Writing JIT
Debug Info Readers): New nodes.

12 years agogdb/
Sanjoy Das [Sun, 20 Nov 2011 09:18:48 +0000 (09:18 +0000)]
gdb/
* jit.c: Include regcache.h.
(jit_gdbarch_data, jit_frame_unwind): New static variables.
(jit_unwind_reg_set_impl, free_reg_value_impl)
(jit_unwind_reg_get_impl, jit_frame_sniffer)
(jit_frame_unwind_stop_reason, jit_frame_this_id)
(jit_frame_prev_register, jit_dealloc_cache)
(jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
(jit_inferior_init): Prepend (new) pseudo unwinder by calling
jit_prepend_unwinder.
(_initialize_jit): Register new gdbarch data jit_gdbarch_data.

12 years agogdb/
Sanjoy Das [Sun, 20 Nov 2011 09:14:45 +0000 (09:14 +0000)]
gdb/
* jit.c: Include block.h, dictionary.h and frame-unwind.h.
(add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
(jit_symtab_open_impl, compare_block, jit_block_open_impl)
(jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
(finalize_symtab, jit_object_close_impl)
(jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
(free_objfile_data): New functions.
(_initialize_jit): Register jit_objfile_data with a proper cleanup
function.