binutils-gdb.git
12 years ago * lib/gdb.exp (gdb_breakpoint): Fix varargs scan.
Doug Evans [Thu, 11 Oct 2012 15:59:57 +0000 (15:59 +0000)]
* lib/gdb.exp (gdb_breakpoint): Fix varargs scan.
Recognize "message" -> print pass and fail.  Add eof case.
(runto): Recognize message, no-message.  Print pass/fail if requested,
with same treatment as gdb_breakpoint.
(runto_main): Pass no-message to runto.
(gdb_internal_error_resync): Add log message.
(gdb_file_cmd): Tweak internal error fail text for consistency.

12 years ago2012-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Richard Earnshaw [Thu, 11 Oct 2012 15:33:08 +0000 (15:33 +0000)]
2012-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* arm-dis.c: Use preferred form of vrint instruction variants
for disassembly.

2012-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* gas/arm/armv8-a+fp.d: Use preferred form of vrint instruction
variants for disassembly.
* gas/arm/armv8-a+fp.s: Likewise.
* gas/arm/armv8-a+simd.d: Likewise.
* gas/arm/armv8-a+simd.s: Likewise.

12 years ago2012-10-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Richard Earnshaw [Thu, 11 Oct 2012 15:26:18 +0000 (15:26 +0000)]
2012-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/tc-arm.c: Change condition code insertion for
lds[hb] instructions from after the 2nd character to after the 3rd.
(tCM): Remove macro.
(TxCM): Likewise.
(TxCM_): Likewise.
(TCM): Likewise.

2012-10-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* gas/arm/ldgesb-bad.d: New file.
* gas/arm/ldgesb-bad.l: Likewise.
* gas/arm/ldgesb-bad.s: Likewise.
* gas/arm/ldgesh-bad.d: Likewise.
* gas/arm/ldgesh-bad.l: Likewise.
* gas/arm/ldgesh-bad.s: Likewise.
* gas/arm/ldsgeb.d: Likewise.
* gas/arm/ldsgeb.s: Likewise.
* gas/arm/ldsgeb.l: Likewise.
* gas/arm/ldsgeh.d: Likewise.
* gas/arm/ldsgeh.s: Likewise.
* gas/arm/ldsgeh.l: Likewise.

12 years ago * dwarf.c (display_gdb_index): Include static/global information
Doug Evans [Thu, 11 Oct 2012 14:24:55 +0000 (14:24 +0000)]
* dwarf.c (display_gdb_index): Include static/global information
of each symbol.

12 years ago * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
Doug Evans [Thu, 11 Oct 2012 02:21:50 +0000 (02:21 +0000)]
* dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
"0x" prefix on address in log message.

12 years ago * dwarf2read.c (read_1_byte): Add const to buf parameter.
Doug Evans [Thu, 11 Oct 2012 02:07:22 +0000 (02:07 +0000)]
* dwarf2read.c (read_1_byte): Add const to buf parameter.
(read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
(read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
(lookup_dwo_file): Add const to dwo_name parameter.
(lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.

12 years ago*** empty log message ***
gdbadmin [Thu, 11 Oct 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Wed, 10 Oct 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years agomerge from gcc
DJ Delorie [Wed, 10 Oct 2012 03:11:33 +0000 (03:11 +0000)]
merge from gcc

12 years ago*** empty log message ***
gdbadmin [Wed, 10 Oct 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agoAdd AMD bdver3 support.
Nagajyothi Eggone [Tue, 9 Oct 2012 08:43:06 +0000 (08:43 +0000)]
Add AMD bdver3 support.

gas/

* config/tc-i386.c (cpu_arch): Add CPU_BDVER3_FLAGS.
* doc/c-i386.texi: Add -march=bdver3 option.

gas/testsuite/

* gas/i386/i386.exp: Run bdver3 test cases.
* gas/i386/nops-1-bdver3.d: New.
* gas/i386/arch-10-bdver3.d: New.
* gas/i386/x86-64-nops-1-bdver3.d: New.
* gas/i386/x86-64-arch-2-bdver3.d: New.

opcodes/

* i386-gen.c (cpu_flag_init): Add CPU_BDVER3_FLAGS.
* i386-init.h: Regenerated.

12 years ago*** empty log message ***
gdbadmin [Tue, 9 Oct 2012 00:00:20 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Mon, 8 Oct 2012 23:00:05 +0000 (23:00 +0000)]
daily update

12 years ago * ld-scripts/sane1.d: Sort output from nm. Allow for other symbols in
Alan Modra [Mon, 8 Oct 2012 00:22:45 +0000 (00:22 +0000)]
* ld-scripts/sane1.d: Sort output from nm. Allow for other symbols in
output.

12 years ago*** empty log message ***
gdbadmin [Mon, 8 Oct 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years ago PR binutils/14662
Alan Modra [Sun, 7 Oct 2012 23:59:26 +0000 (23:59 +0000)]
PR binutils/14662
* elf.c (_bfd_elf_make_section_from_shdr): Treat .gdb_index as
SEC_DEBUGGING.

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

12 years ago*** empty log message ***
gdbadmin [Sun, 7 Oct 2012 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

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

12 years agogdb/
Jan Kratochvil [Sat, 6 Oct 2012 21:10:33 +0000 (21:10 +0000)]
gdb/
Fix crash during stepping on ppc32.
* ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
SYM.

gdb/testsuite/
Fix crash during stepping on ppc32.
* gdb.base/step-symless.c: New file.
* gdb.base/step-symless.exp: New file.

12 years agodaily update
Alan Modra [Sat, 6 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sat, 6 Oct 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoopcodes/
Peter Bergner [Fri, 5 Oct 2012 14:06:20 +0000 (14:06 +0000)]
opcodes/
* ppc-dis.c (ppc_opts) <altivec>: Use PPC_OPCODE_ALTIVEC2;
* ppc-opc.c (VBA): New define.
(powerpc_opcodes) <vcuxwfp, vcsxwfp, vcfpuxws, vcfpsxsw, vmr, vnot,
mfppr, mfppr32, mtppr, mtppr32>: New extended mnemonics.

gas/testsuite/
* gas/ppc/power7.d: Add tests for mfppr, mfppr32, mtppr and mtppr32.
* gas/ppc/power7.s: Likewise.
* gas/ppc/altivec.d: Add tests for all legacy Altivec instructions.
* gas/ppc/altivec.s: Likewise.
* gas/ppc/altivec2.d: New test file.
* gas/ppc/altivec2.s: Likewise.
* gas/ppc/ppc.exp: Run it.

12 years ago * powerpc.cc (Target_powerpc::do_plt_address_for_local,
Alan Modra [Fri, 5 Oct 2012 08:18:07 +0000 (08:18 +0000)]
* powerpc.cc (Target_powerpc::do_plt_address_for_local,
do_plt_address_for_global): New functions.
(Output_data_got_powerpc::do_write): Don't segfault when linking
statically.
(Output_data_plt_powerpc::add_entry, add_ifunc_entry,
add_local_ifunc_entry): Return true on adding entry..
(Target_powerpc::make_plt_entry): ..use to avoid unnecessary
glink->add_entry call.  Remove unused symtab param.  Adjust calls.
(Target_powerpc::make_local_ifunc_plt_entry): Likewise.
(Target_powerpc::make_iplt_section): Remove symtab param.  Don't
set up symbols here.
(Target_powerpc::do_finalize_sections): Instead set up __rela_iplt
syms here.  Do so even when no .iplt.  Don't segfault when linking
statically.
(Output_data_glink::add_entry, find_entry): Rearrange params.  Add
new variants without reloc param.
(Glink_sym_ent::Glink_sym_ent): Likewise.
(Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Accept any
reloc when refs will resolve to plt call stub.
(Target_powerpc::Scan::local): Correct ifunc handling.  Allow
R_PPC_PLTREL24 to resolve locally.
(Target_powerpc::Scan::global): Correct ifunc handling.
(Target_powerpc::Relocate::relocate): Correct local sym glink
lookup.  Don't destroy "value" when we have a plt call stub,
and when checking plt call validity.
(Target_powerpc::do_dynsym_value): Simplify.

12 years ago * i386.cc (Output_data_plt_i386::address_for_global,
Alan Modra [Fri, 5 Oct 2012 00:45:54 +0000 (00:45 +0000)]
* i386.cc (Output_data_plt_i386::address_for_global,
address_for_local): Add plt offset to returned value.  Adjust uses.
* sparc.cc (Output_data_plt_sparc::address_for_global,
address_for_local): Likewise.
* tilegx.cc (Output_data_plt_tilegx::address_for_global,
address_for_local): Likewise.
* x86_64.cc (Output_data_plt_x86_64::address_for_global,
address_for_local): Likewise.
* target.h (Target::plt_address_for_global, plt_address_for_local):
Update comment.
* output.cc (Output_reloc::symbol_value): Don't add plt offset here.
(Output_data_got::Got_entry::write): Nor here.
* output.h: Comment fix.

12 years agodaily update
Alan Modra [Fri, 5 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

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

12 years ago * v850-dis.c (disassemble): Place square parentheses around second
Nick Clifton [Thu, 4 Oct 2012 10:30:06 +0000 (10:30 +0000)]
* v850-dis.c (disassemble): Place square parentheses around second
register operand of clr1, not1, set1 and tst1 instructions.

* config/tc-v850.c (v850_insert_operand): Use a static buffer for
the error message.

* gas/v850/v850e1.d: Fix expected disassembly of clr1, not1, set1
and tst1 insns.

12 years ago2012-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 4 Oct 2012 10:20:48 +0000 (10:20 +0000)]
2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/zarch-zEC12.d: Fix branch preload instructions.
* gas/s390/zarch-zEC12.s: Likewise.

12 years agoCommit missing files from last patch.
Andreas Krebbel [Thu, 4 Oct 2012 08:48:14 +0000 (08:48 +0000)]
Commit missing files from last patch.

12 years ago2012-10-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 4 Oct 2012 08:47:36 +0000 (08:47 +0000)]
2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (s390_parse_cpu): Add new option zEC12.
* doc/as.texinfo: Document new option zEC12.
* doc/c-s390.texi: Likewise.

2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gas/s390/s390.exp: Run zEC12 tests.
* gas/s390/zarch-zEC12.d: New file.
* gas/s390/zarch-zEC12.s: New file.

2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390-mkopc.c: Support new option zEC12.
* s390-opc.c: Add new instruction formats.
* s390-opc.txt: Add new instructions for zEC12.

2012-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390.h (s390_opcode_cpu_val): Add S390_OPCODE_ZEC12.

12 years agodaily update
Alan Modra [Thu, 4 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

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

12 years ago2012-10-04 Chao-ying Fu <fu@mips.com>
Steve Ellcey [Wed, 3 Oct 2012 21:11:46 +0000 (21:11 +0000)]
2012-10-04  Chao-ying Fu  <fu@mips.com>
    Steve Ellcey  <sellcey@mips.com>

* mips/mips3264r2.igen (rdhwr): New.

12 years ago* config/tc-rl78.c: Change line_separator to '@' so that '|' can
DJ Delorie [Wed, 3 Oct 2012 20:48:13 +0000 (20:48 +0000)]
* config/tc-rl78.c: Change line_separator to '@' so that '|' can
be used in expressions.

12 years ago PR symtab/14601
Doug Evans [Wed, 3 Oct 2012 17:05:00 +0000 (17:05 +0000)]
PR symtab/14601
* buildsym.c (buildsym_init): Reset using_directives to NULL.

testsuite/
* gdb.cp/using-crash.exp: New file.
* gdb.cp/using-crash.cc: New file.

12 years agoAdjust the value of _GLOBAL_OFFSET_TABLE_ for got bigger than 0x8000
Walter Lee [Wed, 3 Oct 2012 00:58:03 +0000 (00:58 +0000)]
Adjust the value of _GLOBAL_OFFSET_TABLE_ for got bigger than 0x8000
bytes, so that the 16 bit relocations have a greater chance of
working.
* tilegx.cc (Target_tilegx::do_finalize_sections): Adjust
global_offset_table_ value for larget got.
(Target_tilegx::Relocate::relocate): Handle adjusted got value.

12 years agodaily update
Alan Modra [Wed, 3 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Wed, 3 Oct 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agohttp://sourceware.org/ml/gdb-patches/2012-10/msg00027.html
Andrew Burgess [Tue, 2 Oct 2012 21:52:43 +0000 (21:52 +0000)]
sourceware.org/ml/gdb-patches/2012-10/msg00027.html

gdb/ChangeLog

        * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
        output and use uint32_t not long to ensure 4 byte size.

12 years ago * lib/gdb.exp (gdb_unload): Change wording of perror text to be
Doug Evans [Tue, 2 Oct 2012 17:17:45 +0000 (17:17 +0000)]
* lib/gdb.exp (gdb_unload): Change wording of perror text to be
more consistent.
(runto,gdb_debug_format): Ditto.
(gdb_file_cmd): Watch for eof in nested gdb_expect.
Clean up logging and error messages.

12 years agogdb_bfd_unref failed assertion on AIX.
Joel Brobecker [Tue, 2 Oct 2012 15:05:42 +0000 (15:05 +0000)]
gdb_bfd_unref failed assertion on AIX.

Trying to run any program on AIX triggers a failed assertion:

    (gdb) run
    Starting program: /[...]/simple_main
    /[...]/gdb_bfd.c:288: internal-error: gdb_bfd_unref: Assertion `gdata->refc >= 1' failed.
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)

What happens is that we have a loop where we forgot to update
the value of "last", resulting in the loop unref'ing the same
BFD over and over again. We bomb the second time around, when
triggering an assertion on the ref counter.

gdb/ChangeLog:

        * rs6000-nat.c (add_vmap): Set "last" to "next" after having
        unref'ed it.

12 years ago*** empty log message ***
gdbadmin [Tue, 2 Oct 2012 00:00:33 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Tue, 2 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agohttp://sourceware.org/ml/gdb-patches/2012-09/msg00568.html
Andrew Burgess [Mon, 1 Oct 2012 12:02:13 +0000 (12:02 +0000)]
sourceware.org/ml/gdb-patches/2012-09/msg00568.html

gdb/ChangeLog

        * target.c (simple_search_memory): Include access length in
        warning message.

gdb/gdbserver/ChangeLog

        * server.c (handle_search_memory_1): Include access length in
        warning message.

gdb/testsuite/ChangeLog

        Test find command on unmapped memory.
        * gdb.base/find-unmapped.c: New file.
        * gdb.base/find-unmapped.exp: New file.

12 years ago * write.c (chain_frchains_together_1): Reorder assertion to avoid
Alan Modra [Mon, 1 Oct 2012 06:46:16 +0000 (06:46 +0000)]
* write.c (chain_frchains_together_1): Reorder assertion to avoid
uninit warning.

12 years agodaily update
Alan Modra [Mon, 1 Oct 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Mon, 1 Oct 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sun, 30 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Sun, 30 Sep 2012 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

12 years agoSync toplevel files with GCC tree
H.J. Lu [Sat, 29 Sep 2012 15:35:53 +0000 (15:35 +0000)]
Sync toplevel files with GCC tree

2012-09-28  Ian Lance Taylor  <iant@google.com>

* Makefile.def: Make all-target-libgo depend on
all-target-libbacktrace.
* Makefile.in: Rebuild.

2012-09-26  Ian Lance Taylor  <iant@google.com>

* Makefile.def: Make all-gcc depend on all-libbacktrace.
* Makefile.in: Rebuild.

2012-09-06  Diego Novillo  <dnovillo@google.com>

* configure.ac: Bump minimum GMP version to 4.2.3.
* configure: Re-generate.

2012-09-05  Georg-Johann Lay  <avr@gjlay.de>

PR target/54461
* configure.ac (noconfigdirs,target=avr-*-*): Add target-newlib,
target-libgloss if not configured --with-avrlibc=no.
* configure: Regenerate.

2012-09-04  Jason Merrill  <jason@redhat.com>

* configure.ac: Fix --enable-languages=all.

2012-09-03  Richard Guenther  <rguenther@suse.de>

PR bootstrap/54138
* configure.ac: Re-organize ISL / CLOOG checks to allow
disabling with either --without-isl or --without-cloog.
* configure: Regenerated.

2012-09-03  Georg-Johann Lay  <avr@gjlay.de>

* configure.ac (noconfigdirs,target=avr): Add target-libquadmath.
* configure: Regenerate.

12 years agoSync config with GCC
H.J. Lu [Sat, 29 Sep 2012 15:22:16 +0000 (15:22 +0000)]
Sync config with GCC

2012-09-03  Richard Guenther  <rguenther@suse.de>

PR bootstrap/54138
* config/cloog.m4: Adjust for toplevel reorg.
* config/isl.m4: Adjust.

12 years ago * powerpc.cc (Target_powerpc::iplt_): New output section.
Alan Modra [Sat, 29 Sep 2012 10:29:05 +0000 (10:29 +0000)]
* powerpc.cc (Target_powerpc::iplt_): New output section.
(Target_powerpc::iplt_section, make_iplt_section,
reloc_needs_plt_for_ifunc, make_local_ifunc_plt_entry): New functions.
(Target_powerpc::make_plt_entry): Handle ifunc syms.
Target_powerpc::plt_entry_count): Count iplt entries too.
(Output_data_plt_powerpc::Output_data_plt_powerpc): Don't create
reloc section in constructor.  New params.
(Target_powerpc::make_plt_section): Create reloc section here instead.
(Output_data_plt_powerpc::add_ifunc_entry, add_local_ifunc_entry): New
functions.
(Output_data_plt_powerpc::initial_plt_entry_size_, name_): New vars.
(Output_data_glink::add_entry, find_entry): New functions to
deal with local syms.
(Glink_sym_ent): Add support for local syms.
(Output_data_glink::do_write): Handle ifunc plt entries.
(Target_powerpc::Scan::get_reference_flags): Handle more relocs.
(Target_powerpc::Scan::local, global): Handle ifunc syms.
(Target_powerpc::Relocate::relocate): Likewise.
(Target_powerpc::do_dynsym_value): Use glink stub, not plt entry.

12 years agogdb/testsuite/
Yao Qi [Sat, 29 Sep 2012 00:03:56 +0000 (00:03 +0000)]
gdb/testsuite/
* gdb.trace/mi-tracepoint-changed.exp: New.
* gdb.mi/mi-breakpoint-changed.exp: New.
* gdb.mi/pending.c, gdb.mi/pendshr1.c: New
* gdb.mi/pendshr2.c: New.

12 years ago*** empty log message ***
gdbadmin [Sat, 29 Sep 2012 00:00:05 +0000 (00:00 +0000)]
*** empty log message ***

12 years agodaily update
Alan Modra [Sat, 29 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
Edjunior Barbosa Machado [Fri, 28 Sep 2012 20:20:08 +0000 (20:20 +0000)]
2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
    Edjunior Machado  <emachado@linux.vnet.ibm.com>

PR gdb/13989
* solib.c (solib_find): Prevent GDB from loading native libraries when
debugging a cross-target corefile.

12 years ago2012-09-28 selven <pcthegreat@gmail.com>
Pedro Alves [Fri, 28 Sep 2012 12:04:28 +0000 (12:04 +0000)]
2012-09-28  selven  <pcthegreat@gmail.com>

Make definition match declaration.

* regcache.c (regcache_register_status): Change return type to
enum register_status.

12 years agoDon't abort() when disassembling bad moxie instructions.
Anthony Green [Fri, 28 Sep 2012 03:53:39 +0000 (03:53 +0000)]
Don't abort() when disassembling bad moxie instructions.

12 years agogdb/
Yao Qi [Fri, 28 Sep 2012 00:39:18 +0000 (00:39 +0000)]
gdb/
* mi/mi-main.c (mi_cmd_data_write_memory): Call
write_memory_with_notification instead of write_memory.
(mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
instead of target_write_memory.

gdb/testsuite/
* gdb.mi/pr11022.exp: New.
* gdb.mi/pr11022.c: New.  Copied from gdb.base/.

12 years agogdb/
Yao Qi [Fri, 28 Sep 2012 00:25:24 +0000 (00:25 +0000)]
gdb/
* mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
when the length of content is not an even number.

12 years agodaily update
Alan Modra [Fri, 28 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

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

12 years ago Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
Tom Tromey [Thu, 27 Sep 2012 16:04:23 +0000 (16:04 +0000)]
Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
* cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
gdb/testsuite
* gdb.cp/derivation.exp: Add regression test.
* gdb.cp/derivation.cc (class V_base, class V_inter, class
V_derived): New.
(vderived): New global.

12 years agosol-thread.c: Remove commented-out code.
Joel Brobecker [Thu, 27 Sep 2012 12:53:57 +0000 (12:53 +0000)]
sol-thread.c: Remove commented-out code.

gdb/ChangeLog:

        * sol-thread.c (sol_thread_fetch_registers)
        (sol_thread_store_registers): Delete commented out code.

12 years agoNew unit sparc-sol-thread.c extracted from sol-thread.c
Joel Brobecker [Thu, 27 Sep 2012 12:53:44 +0000 (12:53 +0000)]
New unit sparc-sol-thread.c extracted from sol-thread.c

Moving some sparc-specific routines out of sol-thread.c into their
own (new) file.

gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Move these functions to sparc-sol-thread.c.
        * sparc-sol-thread.c: New file.
        * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
        sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
        configurations.
        * configure: Regenerate.

12 years agosol-thread.c: Remove #if 0-ed code.
Joel Brobecker [Thu, 27 Sep 2012 12:53:13 +0000 (12:53 +0000)]
sol-thread.c: Remove #if 0-ed code.

gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Remove commented-out code.

12 years agosol-thread.c: conditionalize some sparc-specific libthread_db functions.
Joel Brobecker [Thu, 27 Sep 2012 12:52:53 +0000 (12:52 +0000)]
sol-thread.c: conditionalize some sparc-specific libthread_db functions.

gdb/ChangeLog:

        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        Enable this code for sparc hosts only.

12 years agoAdd procfs_find_LDT_entry declaration (procfs.h).
Joel Brobecker [Thu, 27 Sep 2012 12:52:10 +0000 (12:52 +0000)]
Add procfs_find_LDT_entry declaration (procfs.h).

Add a declaration for procfs_find_LDT_entry in order to prevent
a compiler warning about this function missing one. This also
helps making sure that declaration and definition remain consistent.

gdb/ChangeLog:

        * procfs.h (procfs_find_LDT_entry): Add declaration.
        * sol-thread.c (ps_lgetLDT): Delete local declaration of
        function procfs_find_LDT_entry.

12 years agoMake procfs.c:proc_get_LDT_entry static
Joel Brobecker [Thu, 27 Sep 2012 12:51:57 +0000 (12:51 +0000)]
Make procfs.c:proc_get_LDT_entry static

This function is not used outside of procfs.c.

gdb/ChangeLog:

        * procfs.c (proc_get_LDT_entry): Make static.

12 years agoFix declaration of proc_find_memory_regions
Joel Brobecker [Thu, 27 Sep 2012 12:51:40 +0000 (12:51 +0000)]
Fix declaration of proc_find_memory_regions

This function is used as a target_ops callback. The function
implemention was recently changed, but the declaration wasn't
updated accordingly.

This fixes a build failure on Solaris.

gdb/ChangeLog:

        * procfs.c (proc_find_memory_regions): Fix declaration.

12 years ago * amd64-tdep.c (amd64_return_value): Revert previous change
Siddhesh Poyarekar [Thu, 27 Sep 2012 10:40:01 +0000 (10:40 +0000)]
    * amd64-tdep.c (amd64_return_value): Revert previous change
        that used TYPE_LENGTH directly.
        * bfin-tdep.c (bfin_extract_return_value): Likewise.
        (bfin_store_return_value): Likewise.
        * cris-tdep.c (cris_store_return_value): Likewise.
        (cris_extract_return_value): Likewise.
        * h8300-tdep.c (h8300_extract_return_value): Likewise.
        * hppa-tdep.c (hppa64_return_value): Likewise.
        * lm32-tdep.c (lm32_store_return_value): Likewise.
        * microblaze-tdep.c (microblaze_store_return_value): Likewise.
        * spu-tdep.c (spu_value_from_register): Likewise.
        * vax-tdep.c (vax_return_value): Likewise.

12 years ago * gdbtypes.c (lookup_array_range_type): Expand parameters
Siddhesh Poyarekar [Thu, 27 Sep 2012 08:57:16 +0000 (08:57 +0000)]
* gdbtypes.c (lookup_array_range_type): Expand parameters
LOW_BOUND and HIGH_BOUND to LONGEST.
(lookup_string_range_type): Likewise.
* gdbtypes.h (lookup_array_range_type): Likewise.
(lookup_string_range_type): Likewise.
* valops.c (value_cstring): Expand parameter LEN to ssize_t.
Expand HIGHBOUND to ssize_t.
(value_string): Likewise.
* value.h (value_cstring): Expand parameter LEN to ssize_t.
(value_string): Likewise.

12 years agodaily update
Alan Modra [Thu, 27 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years ago*** empty log message ***
gdbadmin [Thu, 27 Sep 2012 00:00:02 +0000 (00:00 +0000)]
*** empty log message ***

12 years agogdb/
Yao Qi [Wed, 26 Sep 2012 23:53:53 +0000 (23:53 +0000)]
gdb/
PR breakpoints/13898
* breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
per breakpoint type.

12 years ago * procfs.c: Add gdb_bfd header.
Pierre Muller [Wed, 26 Sep 2012 21:23:11 +0000 (21:23 +0000)]
* procfs.c: Add gdb_bfd header.
* rs6000-nat.c: Likewise.
* solib-pa64.c: Likewise.
* spu-linux-nat.c: Likewise.
* windows-nat.c: Likewise.

12 years ago * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
Tom Tromey [Wed, 26 Sep 2012 19:58:18 +0000 (19:58 +0000)]
* f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.

12 years ago * dwarf2read.c (mark_common_block_symbol_computed): New function.
Tom Tromey [Wed, 26 Sep 2012 19:50:13 +0000 (19:50 +0000)]
* dwarf2read.c (mark_common_block_symbol_computed): New function.
(read_common_block): Handle child DIEs with
DW_AT_data_member_location.
(new_symbol_full): Add special case for common blocks.
gdb/testsuite
* gdb.dwarf2/dw2-common-block.S: New file.
* gdb.dwarf2/dw2-common-block.exp: New file.

12 years ago2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey [Wed, 26 Sep 2012 19:38:32 +0000 (19:38 +0000)]
2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Tom Tromey  <tromey@redhat.com>
* dwarf2read.c (read_common_block): Rewrite.
(new_symbol_full): Handle DW_TAG_common_block.
* f-lang.c (head_common_list, find_common_for_function):
Remove.
* f-lang.h (struct common_entry, struct saved_f77_common,
SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
BLANK_COMMON_NAME_LOCAL): Remove.
(struct common_block): New.
* f-valprint.c (list_all_visible_commons): Remove.
(info_common_command_for_block): New function.
(info_common_command): Use it.
* stack.c (iterate_over_block_locals): Special case for
COMMON_BLOCK_DOMAIN.
* symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
constant.
(struct general_symbol_info) <value.common_block>: New field.
(SYMBOL_VALUE_COMMON_BLOCK): New define.
gdb/testsuite
2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
* gdb.fortran/common-block.exp: New file.
* gdb.fortran/common-block.f90: New file.

12 years ago2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey [Wed, 26 Sep 2012 19:05:09 +0000 (19:05 +0000)]
2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
    Tom Tromey  <tromey@redhat.com>

* f-lang.c (allocate_saved_bf_node,
allocate_saved_function_node, allocate_saved_f77_common_node,
allocate_common_entry_node, tail_common_list, current_common,
saved_bf_list, saved_bf_list_end, current_head_bf_list,
tmp_bf_ptr, add_common_block, add_common_entry,
find_first_common_named, patch_common_entries,
patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
global_remote_debug, get_bf_for_fcn, saved_function_list,
saved_function_list_end, clear_function_list, struct saved_fcn,
struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
SAVED_BF, SAVED_BF_PTR): Remove.
* f-lang.h (tail_common_list, current_common,
UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
real_main_c_value): Remove.
* f-valprint.c (there_is_a_visible_common_named): Remove.

12 years agohttp://sourceware.org/ml/gdb-patches/2012-09/msg00403.html
Andrew Burgess [Wed, 26 Sep 2012 16:36:00 +0000 (16:36 +0000)]
sourceware.org/ml/gdb-patches/2012-09/msg00403.html

gdb/ChangeLog

        * breakpoint.c (update_global_location_list): Ignore previous
        duplicate status of a breakpoint when starting a new scan for
        duplicate breakpoints.

gdb/testsuite/ChangeLog

        * gdb.base/duplicate-bp.c: New file.
        * gdb.base/duplicate-bp.exp: New file.

12 years agoAdding PR number tp ChangeLog
Karthik Bhat [Wed, 26 Sep 2012 14:15:53 +0000 (14:15 +0000)]
Adding PR number tp ChangeLog

12 years agoFix changelog format.
Yao Qi [Wed, 26 Sep 2012 13:45:46 +0000 (13:45 +0000)]
Fix changelog format.

12 years ago* arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.
Karthik Bhat [Wed, 26 Sep 2012 12:14:30 +0000 (12:14 +0000)]
* arm-tdep.c (arm_skip_prologue): Extending producer check to support LLVM compiler.

12 years ago * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
Siddhesh Poyarekar [Wed, 26 Sep 2012 07:52:48 +0000 (07:52 +0000)]
    * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
        * bfin-tdep.c (bfin_extract_return_value): Likewise.
        (bfin_store_return_value): Likewise.
        * cris-tdep.c (cris_store_return_value): Likewise.
        (cris_extract_return_value): Likewise.
        * h8300-tdep.c (h8300_extract_return_value): Likewise.
        * hppa-tdep.c (hppa64_return_value): Likewise.
        * lm32-tdep.c (lm32_store_return_value): Likewise.
        * microblaze-tdep.c (microblaze_store_return_value): Likewise.
        * spu-tdep.c (spu_value_from_register): Likewise.
        * vax-tdep.c (vax_return_value): Likewise.

12 years agogdb/testsuite:
Yao Qi [Wed, 26 Sep 2012 06:53:46 +0000 (06:53 +0000)]
gdb/testsuite:
* gdb.mi/mi2-cli.exp:  Avoid line number in test summary.

Revert:
2012-09-21  Yao Qi  <yao@codesourcery.com>

* gdb.mi/mi2-cli.exp: Remove redundant '\'.

12 years agogdb/ChangeLog:
Siddhesh Poyarekar [Wed, 26 Sep 2012 02:06:55 +0000 (02:06 +0000)]
gdb/ChangeLog:

* breakpoint.c (invalidate_bp_value_on_memory_change): Expand
parameter LEN to ssize_t.

gdb/doc/ChangeLog:

observer.texi (memory_changed): Expand parameter LEN to ssize_t.

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

12 years agodaily update
Alan Modra [Wed, 26 Sep 2012 00:00:04 +0000 (00:00 +0000)]
daily update

12 years agoAdd missing Cpu flags in bd and bt cores
H.J. Lu [Tue, 25 Sep 2012 13:12:34 +0000 (13:12 +0000)]
Add missing Cpu flags in bd and bt cores

gas/testsuite/

2012-09-25  Saravanan Ekanathan <saravanan.ekanathan@amd.com>

* gas/i386/arch-10-bdver1.d: New file to test bdver1 core.
* gas/i386/x86-64-arch-2-bdver1.d: Likewise.
* gas/i386/i386.exp: Run bdver1 testcases.
* gas/i386/arch-10-bdver2.d: Updated -march flags.
* gas/i386/arch-10-btver1.d: Likewise.
* gas/i386/arch-10-btver2.d: Likewise.
* gas/i386/x86-64-arch-2-bdver2.d: Likewise.
* gas/i386/x86-64-arch-2-btver1.d: Likewise.
* gas/i386/x86-64-arch-2-btver2.d: Likewise.

opcodes/

2012-09-25  Saravanan Ekanathan <saravanan.ekanathan@amd.com>

* gas/i386/arch-10-bdver1.d: New file to test bdver1 core.
* gas/i386/x86-64-arch-2-bdver1.d: Likewise.
* gas/i386/i386.exp: Run bdver1 testcases.
* gas/i386/arch-10-bdver2.d: Updated -march flags.
* gas/i386/arch-10-btver1.d: Likewise.
* gas/i386/arch-10-btver2.d: Likewise.
* gas/i386/x86-64-arch-2-bdver2.d: Likewise.
* gas/i386/x86-64-arch-2-btver1.d: Likewise.
* gas/i386/x86-64-arch-2-btver2.d: Likewise.

12 years ago * ada-valprint.c (ada_val_print_1): Eliminate single-use
Siddhesh Poyarekar [Tue, 25 Sep 2012 12:48:53 +0000 (12:48 +0000)]
* ada-valprint.c (ada_val_print_1): Eliminate single-use
variable LEN.
* alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
directly.
(alpha_store_return_value): Likewise.
* amd64-tdep.c (amd64_classify_aggregate): Likewise.
(amd64_push_arguments): Likewise.
* ax-gdb.c (gen_trace_static_fields): Likewise.
(gen_traced_pop): Likewise.
* bfin-tdep.c (bfin_push_dummy_call): Likewise.
* breakpoint.c (update_watchpoint): Likewise.
* findcmd.c (parse_find_args): Use local variable for type
instead of length.
* findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
* h8300-tdep.c (h8300h_extract_return_value): Likewise.
(h8300_store_return_value): Likewise.
* i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
Use i386_darwin_arg_type_alignment directly.
* infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
* lm32-tdep.c (lm32_push_dummy_call): Likewise.
* m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
(m68hc11_extract_return_value): Likewise.
* mep-tdep.c (mep_push_dummy_call): Likewise.
* printcmd.c (float_type_from_length): Likewise.
* s390-tdep.c (s390_value_from_register): Likewise.
* stack.c (read_frame_arg): Likewise.
* tracepoint.c (encode_actions_1): Likewise.
* valops.c (value_fetch_lazy): Use local variable for type
instead of length.  Use TYPE_LENGTH directly.
* value.c (value_contents_equal): Use TYPE_LENGTH directly.

12 years agoFix typo in skip_prologue_sal's comment.
Joel Brobecker [Tue, 25 Sep 2012 12:38:56 +0000 (12:38 +0000)]
Fix typo in skip_prologue_sal's comment.

gdb/ChangeLog:

        * symtab.c (skip_prologue_sal): Fix typo in comment.

12 years agoFix ChangeLog entry order (merge error).
Joel Brobecker [Tue, 25 Sep 2012 12:23:25 +0000 (12:23 +0000)]
Fix ChangeLog entry order (merge error).

12 years agoSmall typo in comment inside create_sals_line_offset
Joel Brobecker [Tue, 25 Sep 2012 12:22:54 +0000 (12:22 +0000)]
Small typo in comment inside create_sals_line_offset

gdb/ChangeLog:

        * linespec.c (create_sals_line_offset): Fix typo in comment.

12 years agogdb/ChangeLog:
Siddhesh Poyarekar [Tue, 25 Sep 2012 12:20:42 +0000 (12:20 +0000)]
gdb/ChangeLog:

* c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
use plongest to print the array size.

testsuite/ChangeLog:

* gdb.base/longest-types.c: New test case.
* gdb.base/longest-types.exp: New test case.

12 years ago * object.h (Sized_relobj_file::adjust_local_symbol,
Alan Modra [Tue, 25 Sep 2012 00:59:25 +0000 (00:59 +0000)]
* object.h (Sized_relobj_file::adjust_local_symbol,
do_adjust_local_symbol): New functions.
* object.cc (Sized_relobj_file::do_count_local_symbols): Use the above.
* powerpc.cc (Powerpc_relobj::do_adjust_local_symbol): New function.
(Powerpc_relobj::scan_opd_relocs): Warn on unexpected opd relocs
and irregular opd entry spacing.
(Powerpc_relobj::do_read_relocs): Add opd size checks.
(Global_symbol_visitor_opd): New functor.
(Target_powerpc::do_finalize_sections): Omit global symbols defined
on deleted opd entries.

12 years agogdb/testsuite:
Yao Qi [Tue, 25 Sep 2012 00:55:15 +0000 (00:55 +0000)]
gdb/testsuite:
* gdb.mi/mi2-cli.exp: Check breakpoint notification.

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