binutils-gdb.git
11 years agodaily update
Alan Modra [Wed, 10 Apr 2013 00:00:04 +0000 (00:00 +0000)]
daily update

11 years ago*** empty log message ***
gdbadmin [Wed, 10 Apr 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agoFix build failure in varobj.c:update_dynamic_varobj_children...
Joel Brobecker [Tue, 9 Apr 2013 23:30:50 +0000 (23:30 +0000)]
Fix build failure in varobj.c:update_dynamic_varobj_children...

... when !HAVE_PYTHON.

gdb/ChangeLog:

        * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
        Use gdb_assert_not_reached instead of invalid boolean expression.

11 years ago PR ld/12494
Nick Clifton [Tue, 9 Apr 2013 15:50:38 +0000 (15:50 +0000)]
PR ld/12494
* bfd/elf32-avr.c: Consider all sections to determine if linker
relaxation can safely delete a ret after a call/jmp

11 years ago * gas/config/tc-avr.c (mcu_types): Add ATmega64RFR2,
Nick Clifton [Tue, 9 Apr 2013 15:39:37 +0000 (15:39 +0000)]
* gas/config/tc-avr.c (mcu_types): Add ATmega64RFR2,
ATmega644RFR2, ATmega128RFR2, ATmega1284RFR2, ATmega256RFR2,
ATmega2564RFR2
* gas/doc/c-avr.texi (-mmcu documentation): Likewise.

11 years agogdb/testsuite/
Jan Kratochvil [Tue, 9 Apr 2013 15:26:44 +0000 (15:26 +0000)]
gdb/testsuite/
* gdb.server/server-kill.exp (tstatus): Permit also ECONNRESET
response.

11 years ago * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add INODEs.
Nick Clifton [Tue, 9 Apr 2013 15:18:40 +0000 (15:18 +0000)]
  * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add INODEs.

        * bfd.texinfo (typedef bfd, Error reporting, Miscellaneous):
        Add menu items.

11 years agoAvoid potencially-stale errno usage.
Pedro Alves [Tue, 9 Apr 2013 12:18:34 +0000 (12:18 +0000)]
Avoid potencially-stale errno usage.

The current throw_perror_with_name/TARGET_CLOSE_ERROR calls assume
errno is still set to the right error, although remote_unpush_target
is called in between, which may well change errno.

Tested on x86_64 Fedora 17 w/ gdbserver.

gdb/
2013-04-09  Pedro Alves  <palves@redhat.com>

* remote.c (unpush_and_perror): New function.
(readchar, remote_serial_write): Use it.

11 years agogas/
Jan Beulich [Tue, 9 Apr 2013 11:07:06 +0000 (11:07 +0000)]
gas/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/config/tc-arm.c (do_vmrs): Accept all control registers.
Use local variable Rt in more places.
(do_vmsr): Accept all control registers.

gas/testsuite/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/arm/vfp1xD.s: Add VMRS/VMSR tests with FPINST, FPINST2,
and C15.
* gas/arm/vfp1xD.d: Update accordingly.

11 years agogas/
Jan Beulich [Tue, 9 Apr 2013 11:05:45 +0000 (11:05 +0000)]
gas/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/config/tc-arm.c (do_neon_mov): Fake an instruction suffix
if there was none specified for moves between scalar and core
register.

gas/testsuite/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/arm/neon-omit.s: Add tests for suffix less VMOV.
* gas/arm/neon-omit.d: Update accordingly.

11 years agogas/
Jan Beulich [Tue, 9 Apr 2013 11:04:24 +0000 (11:04 +0000)]
gas/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/config/tc-arm.c (do_neon_ldx_stx): Reject VSTn in the
NEON_ALL_LANES case.

gas/testsuite/
2013-04-09  Jan Beulich <jbeulich@suse.com>

* gas/arm/neon-addressing-bad.s: Add test for further invalid VST
operands.
* gas/arm/neon-addressing-bad.l: Update accordingly.

11 years agogdb/
Markus Metzger [Tue, 9 Apr 2013 08:04:32 +0000 (08:04 +0000)]
gdb/
* NEWS: Mention new btrace RSP packets.

11 years ago * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
Tom Tromey [Tue, 9 Apr 2013 02:17:17 +0000 (02:17 +0000)]
* symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
long.

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

11 years ago*** empty log message ***
gdbadmin [Tue, 9 Apr 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago * maint.c (print_bfd_section_info): Print the section index.
Tom Tromey [Mon, 8 Apr 2013 20:20:46 +0000 (20:20 +0000)]
* maint.c (print_bfd_section_info): Print the section index.
* symmisc.c (dump_msymbols): Print the section index.

11 years ago PR symtab/8424:
Tom Tromey [Mon, 8 Apr 2013 20:18:11 +0000 (20:18 +0000)]
PR symtab/8424:
* blockframe.c (find_pc_partial_function_gnu_ifunc): Check
SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
* breakpoint.c (resolve_sal_pc): Update.
* elfread.c (elf_gnu_ifunc_record_cache): Update.
* findvar.c (struct minsym_lookup_data) <objfile>: New field.
(minsym_lookup_iterator_cb): Use it.
(default_read_var_value): Update.
* hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
Update.
* infcmd.c (jump_command): Update.
* linespec.c (minsym_found): Update.
* maint.c (maintenance_translate_address): Update.
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
(prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
* parse.c (write_exp_msymbol): Update.
* printcmd.c (address_info): Update.
* psymtab.c (find_pc_sect_psymbol): Update.
(fixup_psymbol_section): Check SYMBOL_SECTION, not
SYMBOL_OBJ_SECTION.
(add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
Don't initialize SYMBOL_OBJ_SECTION.
* spu-tdep.c (spu_catch_start): Update.
* stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
* symmisc.c (dump_msymbols, print_symbol): Update.
* symtab.c (fixup_section): Don't set 'obj_section'.  Change
how fallback section is computed.
(fixup_symbol_section): Update.
(find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
Update.
(allocate_symbol, initialize_symbol, allocate_template_symbol):
Initialize SYMBOL_SECTION.
* symtab.h (struct general_symbol_info) <section>: Update comment.
<obj_section>: Remove.
(SYMBOL_OBJ_SECTION): Add 'objfile' argument.  Rewrite.
(SYMBOL_OBJFILE): New macro.

11 years ago * coffread.c (record_minimal_symbol): Update.
Tom Tromey [Mon, 8 Apr 2013 20:13:22 +0000 (20:13 +0000)]
* coffread.c (record_minimal_symbol): Update.
* dbxread.c (record_minimal_symbol): Update.
* elfread.c (record_minimal_symbol): Update.
* machoread.c (macho_symtab_add_minsym): Update.
* mdebugread.c (record_minimal_symbol, parse_partial_symbols):
Update.
* minsyms.c (prim_record_minimal_symbol): Update.
(prim_record_minimal_symbol_full): Remove 'bfd_section'
argument.
(prim_record_minimal_symbol_and_info): Likewise.
* minsyms.h (prim_record_minimal_symbol_full)
(prim_record_minimal_symbol_and_info): Update.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): Initialize SYMBOL_SECTION.
* xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
Update.

11 years ago PR symtab/8423:
Tom Tromey [Mon, 8 Apr 2013 20:08:21 +0000 (20:08 +0000)]
PR symtab/8423:
* solib-som.c (som_solib_section_offsets): Use BFD section
indices.  Set offsets for all sections.
* somread.c (som_symtab_read): Compute BFD section for
symbol.  Use prim_record_minimal_symbol_and_info.
(som_symfile_read): Fix comment.
(struct find_section_offset_arg): New.
(find_section_offset, set_section_index): New functions.
(som_symfile_offsets): Use set_section_index to compute
section indices.
bfd/
* som.c (bfd_section_from_som_symbol): No longer static.
* som.h (bfd_section_from_som_symbol): Declare.

11 years ago * coffread.c (cs_to_section): Use gdb_bfd_section_index.
Tom Tromey [Mon, 8 Apr 2013 20:04:42 +0000 (20:04 +0000)]
* coffread.c (cs_to_section): Use gdb_bfd_section_index.
* elfread.c (record_minimal_symbol, elf_symtab_read): Use
gdb_bfd_section_index.
* gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
New functions.
* gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
Declare.
* machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
Update.
* objfiles.c (add_to_objfile_sections_full): New function.
(add_to_objfile_sections): Use it.
(build_section_table): Rewrite.
(objfile_relocate1): Use gdb_bfd_section_index.  Update.
* objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
(struct objfile) <sections>: Update comment.
(ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
is NULL.
(ALL_OBJSECTIONS): Use it.
* solib-dsbt.c (dsbt_relocate_main_executable): Update.
* solib-frv.c (frv_relocate_main_executable): Update.
* solib-target.c (solib_target_relocate_section_addresses):
Use gdb_bfd_section_index.
* symfile.c (build_section_addr_info_from_section_table):
Use gdb_bfd_section_index.
(build_section_addr_info_from_bfd, place_section): Likewise.
* symtab.c (fixup_section): Update.
* xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.

11 years ago * minsyms.h (struct bound_minimal_symbol): New.
Tom Tromey [Mon, 8 Apr 2013 19:59:09 +0000 (19:59 +0000)]
* minsyms.h (struct bound_minimal_symbol): New.
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
Remove objfile argument.
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
Return bound_minimal_symbol.
* minsyms.c (lookup_minimal_symbol_by_pc_1)
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
Return bound_minimal_symbol.
(in_gnu_ifunc_stub): Update.
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
Remove 'objfile_p' argument.
(lookup_solib_trampoline_symbol_by_pc): Update.
* ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
stack.c, symtab.c, tui/tui-disasm.c: Update.

11 years ago * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
Tom Tromey [Mon, 8 Apr 2013 19:56:03 +0000 (19:56 +0000)]
* ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
Use symbol's obstack, not an objfile.
* coffread.c (process_coff_symbol): Update.
* dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
* jv-lang.c (add_class_symbol): Update.
* mdebugread.c (new_symbol): Update.
* minsyms.c (prim_record_minimal_symbol_full)
(terminate_minimal_symbol_table): Update.
* psymtab.c (add_psymbol_to_bcache): Clear entire symbol.  Update.
* stabsread.c (define_symbol, read_enum_type): Update.
* symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
Handle Ada specially.
(symbol_set_language): Add 'obstack' argument.
(symbol_set_names): Update.
(symbol_natural_name, symbol_demangled_name): Always use
ada_decode_symbol.
* symtab.h (struct general_symbol_info)
<language_specific::obstack>: New field.
<ada_mangled>: New field.
(SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
(symbol_set_language): Update.

11 years ago * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
Tom Tromey [Mon, 8 Apr 2013 19:53:18 +0000 (19:53 +0000)]
* symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
Take an obstack, not an objfile.
(symbol_set_names): Update.
* symtab.h (symbol_set_demangled_name): Update.

11 years ago * coffread.c (process_coff_symbol, coff_read_enum_type): Call
Tom Tromey [Mon, 8 Apr 2013 19:48:30 +0000 (19:48 +0000)]
* coffread.c (process_coff_symbol, coff_read_enum_type): Call
allocate_symbol.
* dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
(read_func_scope): Call allocate_template_symbol.
(new_symbol_full): Call allocate_symbol.
* jit.c (finalize_symtab): Call allocate_symbol.
* jv-lang.c (add_class_symbol): Call allocate_symbol.
* mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
* stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
(common_block_end): Call allocate_symbol.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): New functions.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): Declare.
* xcoffread.c (process_xcoff_symbol): Call initialize_symbol.

11 years agogas/testsuite/
Jan Beulich [Mon, 8 Apr 2013 15:48:38 +0000 (15:48 +0000)]
gas/testsuite/
2013-04-08  Jan Beulich <jbeulich@suse.com>

* gas/i386/x86-64-opcode.s: Flesh out LOOP and J*CXZ sections.
Correct comments in Jcc section.
* gas/i386/x86-64-opcode.d: Refresh.
* gas/i386/ilp32/x86-64-opcode.d: Refresh.

opcodes/
2013-04-08  Jan Beulich <jbeulich@suse.com>

* i386-opc.tbl: Fold 64-bit and non-64-bit jecxz entries.
* i386-tbl.h: Re-generate.

11 years ago * dwarf.c (process_debug_info): Check dwarf_cutoff_level.
Tom Tromey [Mon, 8 Apr 2013 14:59:04 +0000 (14:59 +0000)]
* dwarf.c (process_debug_info): Check dwarf_cutoff_level.

11 years ago * dwarf-mode.el: Bump version number.
Tom Tromey [Mon, 8 Apr 2013 14:56:28 +0000 (14:56 +0000)]
* dwarf-mode.el: Bump version number.
(dwarf-mode): Remove autoload.
(dwarf-die-reference): Relax regexp.

11 years agocreate_breapoint / explicit mode: Error out if there's garbage after the breakpoint...
Pedro Alves [Mon, 8 Apr 2013 14:09:30 +0000 (14:09 +0000)]
create_breapoint / explicit mode: Error out if there's garbage after the breakpoint location.

If !PARSE_CONDITION_AND_THREAD, then ARG is just the location, nothing
else.  The fact that the describing comment of create_breakpoint
doesn't mention this just looks like an oversight of when extra_string
was added.  "parse_condition_and_thread" has been a misnomer ever
since extra_string was added -- better rename it avoid more confusion.
This makes it "parse_arg", as that'll remain stable even if/when more
explicit parameters are added.

gdb/
2013-04-08  Pedro Alves  <palves@redhat.com>
    Keith Seitz  <keiths@redhat.com>

* breakpoint.c (create_breakpoint): Rename
"parse_condition_and_thread" parameter to "parse_arg".  Update
describing comment.  If !PARSE_ARG, then error out if ARG is not
the empty string after extracting the location.
* breakpoint.h (create_breakpoint): Rename
"parse_condition_and_thread" parameter to "parse_arg".

gdb/testsuite/
2013-04-08  Pedro Alves  <palves@redhat.com>

* gdb.mi/mi-break.exp (test_error): Add tests with garbage after
the location.

11 years agoAdd const to lm_addr_check.
Aleksandar Ristovski [Mon, 8 Apr 2013 14:03:56 +0000 (14:03 +0000)]
Add const to lm_addr_check.

* solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.

11 years agogas/
Jan Beulich [Mon, 8 Apr 2013 11:07:38 +0000 (11:07 +0000)]
gas/
2013-04-08  Jan Beulich <jbeulich@suse.com>

* gas/config/tc-arm.c (do_neon_ldr_str): Correct disgnostics for
PC-relative VSTR.

11 years agogas/
Jan Beulich [Mon, 8 Apr 2013 11:06:30 +0000 (11:06 +0000)]
gas/
2013-04-08  Jan Beulich <jbeulich@suse.com>

* gas/config/tc-arm.c (reg_names): Convert duplicate SP_fiq
entry to sp_fiq.

11 years agoHandle big-endian for some aarch64 tests
Ramana Radhakrishnan [Mon, 8 Apr 2013 09:41:52 +0000 (09:41 +0000)]
Handle big-endian for some aarch64 tests

2013-04-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

* ld-aarch64/gc-tls-relocs.d: Handle big endian format.
* ld-aarch64/gc-got-relocs.d: Likewise.

11 years agodaily update
Alan Modra [Mon, 8 Apr 2013 00:00:05 +0000 (00:00 +0000)]
daily update

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

11 years agogdb/
Yao Qi [Sun, 7 Apr 2013 10:23:34 +0000 (10:23 +0000)]
gdb/
* remote.c (remote_trace_find): Change type of parameters 'addr1'
and 'addr2' to CORE_ADDR.
* target.c (update_current_target): Update.
* target.h (struct target_ops) <to_trace_find>: Change parameter
type to CORE_ADDR.
* tracepoint.c (tfind_1): Change type of parameters 'addr1' and
'addr2' to CORE_ADDR.
(tfile_trace_find): Likewise.
(tfile_get_traceframe_address): Change return type to CORE_ADDR.
Change local variable 'addr' to type CORE_ADDR.
* tracepoint.h (tfind_1): Update declaration.

11 years agogdb/doc/
Jan Kratochvil [Sun, 7 Apr 2013 06:20:19 +0000 (06:20 +0000)]
gdb/doc/
* Makefile.in (gdb.1, gdbserver.1, gdbinit.5): Use $(srcdir).

11 years agogdb/doc/
Jan Kratochvil [Sun, 7 Apr 2013 06:04:58 +0000 (06:04 +0000)]
gdb/doc/
* Makefile.in (install-man1, install-man5, uninstall-man1)
(uninstall-man5): Replace $(MANS) by $(MAN1S) and $(MAN5S) respectively.

11 years agogdb/gdbserver/
Jan Kratochvil [Sun, 7 Apr 2013 05:53:22 +0000 (05:53 +0000)]
gdb/gdbserver/
* Makefile.in (install-only): Fix make install regression.

11 years agodaily update
Alan Modra [Sun, 7 Apr 2013 00:00:06 +0000 (00:00 +0000)]
daily update

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

11 years agoIncrease the accuracy of sparc instruction aliases.
David S. Miller [Sat, 6 Apr 2013 22:22:03 +0000 (22:22 +0000)]
Increase the accuracy of sparc instruction aliases.

Make current with UA2011 specification.

Add an F_PREFERRED opcode flag that indicates a preferred alias
when multiple aliases for the same opcode exists.

For 'lzd':

Add 'lzcnt' as primary instruction, and make 'lzd' an alias.

Add 'ldtw', 'ldtwa', 'sttw', 'sttwa':

The modern opcode for for 'ldd', 'ldda', 'std', and 'stda' on
integer registers.  Mark the latter now as aliases.

For 'flush':

Support "[address]" syntax as well as plain "address".

Rework 'mov' aliases for 'wr':

Eliminate bogus three operand moves, and encode the
instructions properly for the "mov REG, %ASR" cases,
specifically we should encode the register in rs2 not rs1 as
per The SPARC V8 Architecture Manual.

Add missing cbcond aliases:

c{w,x}bz, c{w,x}blu, c{w,x}bnz, c{w,x}bgeu

Add 'd' suffix VIS logical ops:

The primary opcode for 'fzero' is now 'fzerod' (compare with
'fzeros'), for example.  And thus 'fzero' is now an alias.

Add modern opcodes for condition code setting edge instructions:

They are now edgeN{,l}cc instead of plain edgeN{,l}.

Add modern opcodes for VIS comparisons:

All VIS comparisons now start with prefix "fp", retain the
older variants as aliases.

The signed variants for equal and not-equal have "u" aliases
to show that these comparisons are equally suited for unsigned
compares.

Update existing test cases as needed, and add several new ones.

include/opcode/

* sparc.h (F_PREFERRED): Define.
(F_PREF_ALIAS): Define.

opcodes/

* sparc-dis.c (compare_opcodes): When encountering multiple aliases
of an opcode, prefer the one with F_PREFERRED set.
* sparc-opc.c (sparc_opcodes): Add ldtw, ldtwa, sttw, sttwa,
lzcnt, flush with '[address]' syntax, and missing cbcond pseudo
ops.  Make 64-bit VIS logical ops have "d" suffix in their names,
mark existing mnenomics as aliases.  Add "cc" suffix to edge
instructions generating condition codes, mark existing mnenomics
as aliases.  Add "fp" prefix to VIS compare instructions, mark
existing mnenomics as aliases.

gas/testsuite/

* gas/sparc/cbcond.s: Add tests for new opcode aliases.
* gas/sparc/cbcond.d: Updated.
* gas/sparc/hpcvis3.s: Add tests for new opcode aliases.
* gas/sparc/hpcvis3.d: Updated.
* gas/sparc/v8-movwr-imm.d: Fix expected disassembly.
* gas/sparc/edge.s: New test.
* gas/sparc/edge.d: Expected disassembly.
* gas/sparc/flush.s: New test.
* gas/sparc/flush.d: Expected disassembly.
* gas/sparc/ldd_std.s: New test.
* gas/sparc/ldd_std.d: Expected disassembly.
* gas/sparc/ldtw_sttw.s: New test.
* gas/sparc/ldtw_sttw.d: Expected disassembly.
* gas/sparc/sparc.exp: Run new tests.

11 years agogdb/doc/
Jan Kratochvil [Sat, 6 Apr 2013 15:52:06 +0000 (15:52 +0000)]
gdb/doc/
* Makefile.in (POD2MAN1, POD2MAN5): Replace $(VERSION) by ../version.in.

11 years agogdb/doc/
Jan Kratochvil [Sat, 6 Apr 2013 08:58:53 +0000 (08:58 +0000)]
gdb/doc/
* gdb.texinfo (gdbserver man): Rename tty to comm.  Swap --attach
parameters order.  Remove "On some targets" for --attach.  Document the
--multi parameter and extended-remote command.  Document all the
options.

11 years agoUnbreak Windows-hosted cross debugger builds.
Eli Zaretskii [Sat, 6 Apr 2013 06:52:06 +0000 (06:52 +0000)]
Unbreak Windows-hosted cross debugger builds.

* windows-nat.c (windows_get_absolute_argv0): Move from here...
* mingw-hdep.c (windows_get_absolute_argv0): ...to here.
Include main.h.

* windows-nat.h (windows_get_absolute_argv0): Move prototype from
here...
* main.h (windows_get_absolute_argv0): ...to here.

11 years ago * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
Alan Modra [Sat, 6 Apr 2013 06:44:45 +0000 (06:44 +0000)]
* elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
* elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.

11 years ago*** empty log message ***
gdbadmin [Sat, 6 Apr 2013 00:00:03 +0000 (00:00 +0000)]
*** empty log message ***

11 years agodaily update
Alan Modra [Fri, 5 Apr 2013 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
Doug Evans [Fri, 5 Apr 2013 21:48:25 +0000 (21:48 +0000)]
* dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
(read_cutu_die_from_dwo): Add comments.
(read_structure_type): Update comment.
(read_enumeration_type, read_namespace_type): Update comment.
(read_die_type, get_die_type_at_offset, get_die_type): Update comment.

11 years agogdb/doc/
Jan Kratochvil [Fri, 5 Apr 2013 20:02:58 +0000 (20:02 +0000)]
gdb/doc/
* gdb.texinfo (gdb man): Mention option -p.  Include Fortran to
the list of supported languages.

11 years agogdb/
Jan Kratochvil [Fri, 5 Apr 2013 20:01:33 +0000 (20:01 +0000)]
gdb/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (gdb.z): Remove.
(install-only): Remove $(man1dir) and gdb.1 installation.
* gdb.1: Remove.

gdb/gdbserver/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
installation.
* gdbserver.1: Remove.

gdb/doc/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (mandir, man1dir, man5dir, SYSTEM_GDBINIT, MANCONF,
(TEXI2POD, POD2MAN1, POD2MAN5, MAN1S, MAN5S, MANS, man): New.
(diststuff): Add man.
(install-man, install-man1, install-man5, uninstall-man, uninstall-man1)
(uninstall-man5): New.
(STAGESTUFF): Add *.1 and *.5.
(GDBvn.texi): Add SYSTEM_GDBINIT.
(gdb.1, gdbserver.1, gdbinit.5): New.
(maintainer-clean realclean): Add $(MANS).
(install): Add install-man.
(uninstall): Add uninstall-man.
* gdb.texinfo (@include gdb-cfg.texi): Wrap it by @c man begin INCLUDE.
(@copying): Wrap it by @c man begin COPYRIGHT.
(Top): Add Man Pages.
(Man Pages, gdb man, gdbserver man, gdbinit man): New.

11 years agogdb/
Jan Kratochvil [Fri, 5 Apr 2013 19:17:15 +0000 (19:17 +0000)]
gdb/
Fix compatibility with Linux kernel 3.8.3.
* linux-tdep.c (linux_find_memory_regions_full): Move variable number
to more inner block.  Remove parsing of NUMBER from outer block.
Parse NUMBER only if KEYWORD has been identified.

11 years agogdb/
Jan Kratochvil [Fri, 5 Apr 2013 19:14:44 +0000 (19:14 +0000)]
gdb/
Fix variable name shadowing.
* linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
filename to mapsfilename and update its uses.

11 years agoAvoid warning in "make tags".
Eli Zaretskii [Fri, 5 Apr 2013 13:24:24 +0000 (13:24 +0000)]
Avoid warning in "make tags".

* Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
empty.  See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
details of the problem.

11 years ago * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
Nick Clifton [Fri, 5 Apr 2013 09:08:28 +0000 (09:08 +0000)]
* elflink.c (elf_link_add_object_symbols): Revert accidental commit.

11 years ago PR binutils/15324
Alan Modra [Fri, 5 Apr 2013 04:13:41 +0000 (04:13 +0000)]
PR binutils/15324
* configure.in: Add strnlen to AC_CHECK_DECLS, sort.
* dwarf.c (strnlen): Provide fallback decl.
* config.in: Regnerate.
* configure: Regenerate.

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

11 years agodaily update
Alan Modra [Thu, 4 Apr 2013 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago2013-04-04 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Thu, 4 Apr 2013 21:01:40 +0000 (21:01 +0000)]
2013-04-04  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/

* gdb.cp/cplabel.exp: Allow empty directory in file reported
for breakpoint location.

11 years ago2013-04-04 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Thu, 4 Apr 2013 20:59:12 +0000 (20:59 +0000)]
2013-04-04  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/

* gdb.linespec/linespec.exp: Make dir/file:line tests
conditional for non-remote hosts only.

11 years agotracepoint->step_count fixes
Pedro Alves [Thu, 4 Apr 2013 19:22:38 +0000 (19:22 +0000)]
tracepoint->step_count fixes

If a tracepoint's actions list includes a while-stepping action, and
then the actions are changed to a list without any while-stepping
action, the tracepoint's step_count will be left with a stale value.
For example:

 (gdb) trace subr
 Tracepoint 1 at 0x4004d9: file ../../../src/gdb/testsuite//actions-changed.c, line 31.
 (gdb) actions
 Enter actions for tracepoint 1, one per line.
 End with a line saying just "end".
 >collect $reg
 >end
 (gdb) set debug remote 1
 (gdb) tstart
 Sending packet: $QTinit#59...Packet received: OK
 Sending packet: $QTDP:1:00000000004004d9:E:0:0-#a3...Packet received: OK
 Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF#2b...Packet received: OK
 (gdb) tstop
 Sending packet: $QTStop#4b...Packet received: OK
 Sending packet: $QTNotes:#e8...Packet received: OK
 (gdb) actions
 Enter actions for tracepoint 1, one per line.
 End with a line saying just "end".
 >collect $reg
 >while-stepping 1
   >collect $reg
   >end
 >end
 (gdb) tstart
 Sending packet: $QTinit#59...Packet received: OK
 Sending packet: $QTDP:1:00000000004004d9:E:1:0-#a4...Packet received: OK
 Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF-#58...Packet received: OK
 Sending packet: $QTDP:-1:00000000004004d9:SR03FFFFFFFFFFFFFFFFFF#7e...Packet received: OK
 (gdb) tstop
 Sending packet: $QTStop#4b...Packet received: OK
 Sending packet: $QTNotes:#e8...Packet received: OK
 (gdb) actions
 Enter actions for tracepoint 1, one per line.
 End with a line saying just "end".
 >collect $regs
 >end
 (gdb) tstart
 Sending packet: $QTinit#59...Packet received: OK
 Sending packet: $QTDP:1:00000000004004d9:E:1:0-#a4...Packet received: OK
 Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF#2b...Packet received: OK

The last "$QTDP:1:00000000004004d9:E:1:0-#a4" should be "$QTDP:1:00000000004004d9:E:0:0-#a3".
In pseudo-diff:

  -$QTDP:1:00000000004004d9:E:1:0-#a4
  +$QTDP:1:00000000004004d9:E:0:0-#a3

A related issue is that the "commands" command actually supports
setting commands to a range of breakpoints/tracepoints at once.  But,
hacking "maint info breakpoints" to print t->step_count, reveals:

 (gdb) trace main
 Tracepoint 5 at 0x45a2ab: file ../../src/gdb/gdb.c, line 29.
 (gdb) trace main
 Note: breakpoint 5 also set at pc 0x45a2ab.
 Tracepoint 6 at 0x45a2ab: file ../../src/gdb/gdb.c, line 29.
 (gdb) commands 5-6
 Type commands for breakpoint(s) 5-6, one per line.
 End with a line saying just "end".
 > while-stepping 5
  >end
 > end
 (gdb) maint info breakpoints 5
 Num     Type           Disp Enb Address            What
 5       tracepoint     keep y   0x000000000045a2ab in main at ../../src/gdb/gdb.c:29 inf 1
         step_count=5
         ^^^^^^^^^^^^
         while-stepping 5
         end
         not installed on target
 (gdb) maint info breakpoints 6
 Num     Type           Disp Enb Address            What
 6       tracepoint     keep y   0x000000000045a2ab in main at ../../src/gdb/gdb.c:29 inf 1
         step_count=0
         ^^^^^^^^^^^^
         while-stepping 5
         end
         not installed on target
 (gdb)

that tracepoint 6 doesn't end up with the correct step_count.

The issue is that here:

 static void
 do_map_commands_command (struct breakpoint *b, void *data)
 {
  struct commands_info *info = data;

  if (info->cmd == NULL)
    {
      struct command_line *l;

      if (info->control != NULL)
l = copy_command_lines (info->control->body_list[0]);
      else
{
  struct cleanup *old_chain;
  char *str;

  str = xstrprintf (_("Type commands for breakpoint(s) "
      "%s, one per line."),
    info->arg);

  old_chain = make_cleanup (xfree, str);

  l = read_command_lines (str,
  info->from_tty, 1,
  (is_tracepoint (b)
   ? check_tracepoint_command : 0),
  b);

  do_cleanups (old_chain);
}

      info->cmd = alloc_counted_command_line (l);
    }

validate_actionline is never called for tracepoints other than the
first (the copy_command_lines path).  Right below, we have:

  /* If a breakpoint was on the list more than once, we don't need to
     do anything.  */
  if (b->commands != info->cmd)
    {
      validate_commands_for_breakpoint (b, info->cmd->commands);
      incref_counted_command_line (info->cmd);
      decref_counted_command_line (&b->commands);
      b->commands = info->cmd;
      observer_notify_breakpoint_modified (b);
    }

And validate_commands_for_breakpoint looks like the right place to put
a call; if we reset step_count there too, we have a nice central fix
for the first issue as well, because trace_actions_command calls
breakpoint_set_commands that also calls
validate_commands_for_breakpoint.

We end up calling validate_actionline twice for the first tracepoint,
since read_command_lines calls it too, through
check_tracepoint_command, but that should be harmless.

2013-04-04  Pedro Alves  <palves@redhat.com>
    Hui Zhu  <hui@codesourcery.com>

* breakpoint.c (validate_commands_for_breakpoint): If validating a
tracepoint, reset its STEP_COUNT and call validate_actionline.

2013-04-04  Stan Shebs  <stan@codesourcery.com>
    Pedro Alves  <palves@redhat.com>

* gdb.trace/Makefile.in (PROGS): Add actions-changed.
* gdb.trace/actions-changed.c: New file.
* gdb.trace/actions-changed.exp: New file.
* lib/trace-support.exp (gdb_trace_setactions): Rename to ...
(gdb_trace_setactions_command): ... this.  Add "actions_command"
parameter, and handle it.
(gdb_trace_setactions, gdb_trace_setcommands): New procedures.

11 years ago GCC PR c++/56840
Ian Lance Taylor [Thu, 4 Apr 2013 16:49:04 +0000 (16:49 +0000)]
GCC PR c++/56840
* object.cc (do_layout_deferred_sections): Handle .eh_frame
sections before checking whether they are included in the link.

11 years ago * ld-elf/shared.exp: Update regexp on --no-add-needed and
Alan Modra [Thu, 4 Apr 2013 14:51:48 +0000 (14:51 +0000)]
* ld-elf/shared.exp: Update regexp on --no-add-needed and
--no-copy-dt-needed-entries tests.

11 years ago * ldlang.c (load_symbols): Report "error adding symbols" on
Alan Modra [Thu, 4 Apr 2013 14:38:47 +0000 (14:38 +0000)]
* ldlang.c (load_symbols): Report "error adding symbols" on
bfd_link_add_symbols failure.
* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
* emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
(gld${EMULATION_NAME}_try_needed): Likewise.

11 years ago * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
Alan Modra [Thu, 4 Apr 2013 14:38:01 +0000 (14:38 +0000)]
* bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
* bfd-in2.h: Regenerate.
* elflink.c (elf_link_add_object_symbols): Use new error.

11 years agooops - omitted from previous delta
Nick Clifton [Thu, 4 Apr 2013 07:24:08 +0000 (07:24 +0000)]
oops - omitted from previous delta

11 years agogdb/testsuite/
Yao Qi [Thu, 4 Apr 2013 02:16:04 +0000 (02:16 +0000)]
gdb/testsuite/

* gdb.server/server-kill.exp: Use command 'tstatus' instead of
'step'.

11 years agomerge from gcc
DJ Delorie [Thu, 4 Apr 2013 01:03:01 +0000 (01:03 +0000)]
merge from gcc

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

11 years agodaily update
Alan Modra [Wed, 3 Apr 2013 23:00:04 +0000 (23:00 +0000)]
daily update

11 years ago * dwarf2read.c (read_die_and_siblings_1): Renamed from
Doug Evans [Wed, 3 Apr 2013 19:45:00 +0000 (19:45 +0000)]
* dwarf2read.c (read_die_and_siblings_1): Renamed from
read_die_and_siblings.
(read_die_and_siblings): New function.
(read_cutu_die_from_dwo): Dump die if requested.
(read_die_and_children): Call read_full_die_1 and
read_die_and_siblings_1.
(read_full_die): Dump die if requested.

* dwarf2read.c (read_comp_units_from_section): Add debugging printf.

11 years ago * dwarf2read.c (struct dwo_file): New member comp_dir.
Doug Evans [Wed, 3 Apr 2013 19:11:01 +0000 (19:11 +0000)]
* dwarf2read.c (struct dwo_file): New member comp_dir.
Rename member name to dwo_name.  All uses updated.
(hash_dwo_file): Include comp_dir in computation.
(eq_dwo_file): Ditto.
(lookup_dwo_file_slot): New arg comp_dir.  All callers updated.
(create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.

11 years ago * psymtab.c (read_psymtabs_with_fullname): Don't call
Doug Evans [Wed, 3 Apr 2013 18:48:54 +0000 (18:48 +0000)]
* psymtab.c (read_psymtabs_with_fullname): Don't call
psymtab_to_fullname if the basenames are different.

11 years agogdb/
Jan Kratochvil [Wed, 3 Apr 2013 18:28:49 +0000 (18:28 +0000)]
gdb/
* NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
New entry about "fullname" presence.

11 years agomerge from gcc
DJ Delorie [Wed, 3 Apr 2013 18:21:49 +0000 (18:21 +0000)]
merge from gcc

11 years agoNEWS: Mention x86_64/Cygwin as new native configuration too.
Pedro Alves [Wed, 3 Apr 2013 18:04:33 +0000 (18:04 +0000)]
NEWS: Mention x86_64/Cygwin as new native configuration too.

x86_64/Cygwin is only mentioned as a new target, but we gained support
for building a native x86_64/Cygwin debugger too.

gdb/
2013-04-03  Pedro Alves  <palves@redhat.com>

* NEWS: Mention x86_64/Cygwin as new native configuration.

11 years ago * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
Nick Clifton [Wed, 3 Apr 2013 14:42:10 +0000 (14:42 +0000)]
* elf32-v850.c (v850_elf_is_target_special_symbol): New function.
(bfd_elf32_bfd_is_target_special_symbol): Define.

* v850.h (V850_INVERSE_PCREL): Define.

* v850-dis.c (print_value): With V850_INVERSE_PCREL compute the
destination address by subtracting the operand from the current
address.
* v850-opc.c (insert_u16_loop): Disallow negative offsets.  Store
a positive value in the insn.
(extract_u16_loop): Do not negate the returned value.
(D16_LOOP): Add V850_INVERSE_PCREL flag.

(ceilf.sw): Remove duplicate entry.
(cvtf.hs): New entry.
(cvtf.sh): Likewise.
(fmaf.s): Likewise.
(fmsf.s): Likewise.
(fnmaf.s): Likewise.
(fnmsf.s): Likewise.
(maddf.s): Restrict to E3V5 architectures.
(msubf.s): Likewise.
(nmaddf.s): Likewise.
(nmsubf.s): Likewise.

11 years ago * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
Nick Clifton [Wed, 3 Apr 2013 14:21:18 +0000 (14:21 +0000)]
     * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
        elf64_aarch64_locals to get local GOT reference counts.

        * ld-aarch64/gc-relocs-tlsle.s: New gc section test.
        * ld-aarch64/gc-relocs-tlsle.s: Likewise
        * ld-aarch64/gc-relocs-tlsgd.s: Likewise
        * ld-aarch64/gc-relocs-tlsdesc.s: Likewise
        * ld-aarch64/gc-relocs-312.s: Likewise
        * ld-aarch64/gc-relocs-311.s: Likewise
        * ld-aarch64/gc-relocs-309.s: Likewise
        * ld-aarch64/gc-start.s: Likewise
        * ld-aarch64/gc-got-relocs.d: Update expected objdump
        * ld-aarch64/gc-tls-relocs.d: Likewise
        * ld-aarch64/aarch64-elf.exp: add test

11 years ago PR ld/15227
Alan Modra [Wed, 3 Apr 2013 11:44:41 +0000 (11:44 +0000)]
PR ld/15227
* ld-plugin/lto.exp (PR ld/12942 (3)): Remove file name and
line number from regexp.
(PR ld/15146 (2)): Similarly.
* ld-plugin/pr12942a.cc (main): Use __builtin_abort.

11 years agogdb/testsuite/
Yao Qi [Wed, 3 Apr 2013 10:11:46 +0000 (10:11 +0000)]
gdb/testsuite/

* gdb.trace/mi-traceframe-changed.exp: Update tfile name to
"tfile-basic.tf".
(test_tfind_tfile): Likewise.

11 years agogdb/testsuite/
Yao Qi [Wed, 3 Apr 2013 03:43:54 +0000 (03:43 +0000)]
gdb/testsuite/

* gdb.trace/tfile.c (write_basic_trace_file): Pass argument
"tfile-basic.tf" instead of "basic.tf".
(write_error_trace_file): Pass argument "tfile-error.tf"
instead of "error.tf".
* gdb.trace/tfile.exp: Update tfile names to
"tfile-basic.tf" and "tfile-error.tf".

11 years ago * doc/as.texinfo: Add support to generate man options for h8300.
Alan Modra [Wed, 3 Apr 2013 02:48:37 +0000 (02:48 +0000)]
* doc/as.texinfo: Add support to generate man options for h8300.
* doc/c-h8300.texi: Likewise.

11 years ago2013-04-02 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Wed, 3 Apr 2013 01:40:19 +0000 (01:40 +0000)]
2013-04-02  Sandra Loosemore  <sandra@codesourcery.com>

gdb/testsuite/
* gdb.cp/ovsrch.exp (test_class): Correct regexp to allow
empty directory in file for breakpoint hit.

11 years ago*** empty log message ***
gdbadmin [Wed, 3 Apr 2013 00:00:32 +0000 (00:00 +0000)]
*** empty log message ***

11 years ago* elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
DJ Delorie [Tue, 2 Apr 2013 23:29:51 +0000 (23:29 +0000)]
* elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
(rl78_elf_relax_section): Only fetch the next reloc if there is
one expected.

11 years agodaily update
Alan Modra [Tue, 2 Apr 2013 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago * dwarf2read.c (read_structure_type): Fix typo in comment.
Doug Evans [Tue, 2 Apr 2013 21:18:40 +0000 (21:18 +0000)]
* dwarf2read.c (read_structure_type): Fix typo in comment.

11 years agoNEWS/manual: Missing documentation for new commands in 7.6.
Pedro Alves [Tue, 2 Apr 2013 17:52:08 +0000 (17:52 +0000)]
NEWS/manual: Missing documentation for new commands in 7.6.

I hacked "apropos" to dump the whole set of commands (just make it
accept the entry string as regex), and then diffed the output of 7.5
vs 7.6, --enable-targets=all builds.  That allowed then checking
whether some commands had not been mentioned in NEWS or the manual.
These are what I found missing.  We've been a bit negligent in
requiring documentation bits for debug commands.

gdb/
2013-04-02  Pedro Alves  <palves@redhat.com>

* NEWS: Mention "set/show debug aarch64", "set/show debug
coff-pe-read" and "set/show debug mach-o".

gdb/doc/
2013-04-02  Pedro Alves  <palves@redhat.com>

* gdb.texinfo (Debugging Output): Document "set/show debug
aarch64", "set/show debug coff-pe-read" and "set/show debug
mach-o".

11 years agoAdd missing NEWS and manual bits for "set trace-buffer-size".
Pedro Alves [Tue, 2 Apr 2013 17:48:49 +0000 (17:48 +0000)]
Add missing NEWS and manual bits for "set trace-buffer-size".

Add missing mention of the QTBuffer::size packet configuration
command, in both NEWS and manual.

gdb/
2013-04-02  Pedro Alves  <palves@redhat.com>

* NEWS: Mention "set/show remote trace-buffer-size-packet".

gdb/doc/
2013-04-02  Pedro Alves  <palves@redhat.com>

* gdb.texinfo (Remote Configuration) <set remote @var{name}-packet
table>: Add entry for "trace-buffer-size".

11 years agoFix list of files submitted to "make TAGS".
Eli Zaretskii [Tue, 2 Apr 2013 17:44:27 +0000 (17:44 +0000)]
Fix list of files submitted to "make TAGS".

* Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
gdb_string.h is now in common/.

11 years agoNEWS: Move "set debug notification" and "set trace-buffer-size" under "New options".
Pedro Alves [Tue, 2 Apr 2013 15:19:07 +0000 (15:19 +0000)]
NEWS: Move "set debug notification" and "set trace-buffer-size" under "New options".

The "New commands" section reads:

  "New commands (for set/show, see "New options" below)"

gdb/
2013-04-02  Pedro Alves  <palves@redhat.com>

* NEWS: Move "set debug notification" and "set trace-buffer-size"
under "New options".

11 years agogdb/
Jan Kratochvil [Tue, 2 Apr 2013 14:09:08 +0000 (14:09 +0000)]
gdb/
Revert this patch:
PR gdb/15275
* remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.

11 years agounpush the remote target if serial_write fails.
Pedro Alves [Tue, 2 Apr 2013 13:51:07 +0000 (13:51 +0000)]
unpush the remote target if serial_write fails.

PR gdb/15275 notes that when debugging with a remote connection over a
serial link and the link is disconnected, say by disconnecting USB
serial port, the GDB quit command no longer works:

 (gdb)
 tar ext /dev/ttyACM0
 &"tar ext /dev/ttyACM0\n"
 ~"Remote debugging using /dev/ttyACM0\n"
 ^done
 (gdb)
 set debug remote 1
 &"set debug remote 1\n"
 ^done
 (gdb)
 quit
 &"quit\n"
 &"Sending packet: $qTStatus#49..."
 &"putpkt: write failed: Input/output error.\n"
 ^error,msg="putpkt: write failed: Input/output error."
 (gdb)
 (gdb)
 quit
 &"quit\n"
 &"Sending packet: $qTStatus#49..."
 &"putpkt: write failed: Input/output error.\n"
 ^error,msg="putpkt: write failed: Input/output error."

This is not reproducible with TCP connections, as with that, sending
doesn't error out, but instead the error is detected on the subsequent
readchar.  When that read fails, we unpush the remote target, and
throw TARGET_CLOSE_ERROR.  To address PR gdb/15275, instead of
catching the error in remote_get_trace_status as presently done (which
leaves this same issue latent for another packet to trip on), or of
making ser-unix.c fake success too on failed writes, so we'd get to
readchar detecting the error on serial ports too, better let the error
propagate out of serial_write, and catch it at the remote.c level,
throwing away the target if writing fails too, instead of delaying
that until the next read.

gdb/
2013-04-02  Pedro Alves  <palves@redhat.com>

PR gdb/15275

* remote.c (send_interrupt_sequence): Use remote_serial_write.
(remote_serial_write): New function.
(putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.

11 years agogdb/ChangeLog:
Jiong Wang [Tue, 2 Apr 2013 02:49:55 +0000 (02:49 +0000)]
gdb/ChangeLog:

  * NEWS: Mention TILE-Gx in "New native configurations" and
    "New targets" sections.

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

11 years ago * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
Doug Evans [Mon, 1 Apr 2013 23:17:40 +0000 (23:17 +0000)]
* dwarf2read.c (lookup_signatured_type_at_offset): Delete.
(process_enumeration_scope): Simplify.

11 years agodaily update
Alan Modra [Mon, 1 Apr 2013 23:00:05 +0000 (23:00 +0000)]
daily update

11 years ago * dwarf2read.c (struct dwarf2_per_cu_data): Move member
Doug Evans [Mon, 1 Apr 2013 22:36:08 +0000 (22:36 +0000)]
* dwarf2read.c (struct dwarf2_per_cu_data): Move member
type_unit_group ...
(struct signatured_type): ... to here.
(sig_type_ptr): New typedef.
(type_unit_group): Delete member 't.first_cu'.  Move member 'tus'
out of union 't'.  All uses updated.
(dw2_get_file_names_reader): Assert not called for a type unit.
(dw2_get_file_names): Assert not called for a type unit or type
unit group.
(build_type_psymtabs_reader): Assert called for a type unit.
(build_type_psymtab_dependencies): Assert called for a type unit group.

11 years agoFix whitespace errors from last commit.
Aleksandar Ristovski [Mon, 1 Apr 2013 20:11:19 +0000 (20:11 +0000)]
Fix whitespace errors from last commit.

11 years ago * dwarf2read.c (free_dwo_file): Add comment.
Doug Evans [Mon, 1 Apr 2013 16:42:15 +0000 (16:42 +0000)]
* dwarf2read.c (free_dwo_file): Add comment.
(dwarf2_per_objfile_free): Unref dwp bfd.

11 years ago Fix coff-pe-read.c to compile with Wunused.
Aleksandar Ristovski [Mon, 1 Apr 2013 12:53:01 +0000 (12:53 +0000)]
Fix coff-pe-read.c to compile with Wunused.

* coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
(add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
(read_pe_exported_syms): Remove unused 'exportix'.
(pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.

Reference: http://sourceware.org/ml/gdb-patches/2013-03/msg01081.html