aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-04-06*** empty log message ***gdbadmin1-1/+1
2013-04-05daily updateAlan Modra1-1/+1
2013-04-05 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.Doug Evans2-9/+20
(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.
2013-04-05gdb/doc/Jan Kratochvil2-4/+12
* gdb.texinfo (gdb man): Mention option -p. Include Fortran to the list of supported languages.
2013-04-05gdb/Jan Kratochvil9-535/+623
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.
2013-04-05gdb/Jan Kratochvil2-7/+24
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.
2013-04-05gdb/Jan Kratochvil2-6/+12
Fix variable name shadowing. * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable filename to mapsfilename and update its uses.
2013-04-05Avoid warning in "make tags".Eli Zaretskii2-1/+8
* 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.
2013-04-05 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.Nick Clifton2-1/+4
2013-04-05 PR binutils/15324Alan Modra5-20/+46
* configure.in: Add strnlen to AC_CHECK_DECLS, sort. * dwarf.c (strnlen): Provide fallback decl. * config.in: Regnerate. * configure: Regenerate.
2013-04-05*** empty log message ***gdbadmin1-1/+1
2013-04-04daily updateAlan Modra1-1/+1
2013-04-042013-04-04 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-1/+6
gdb/testsuite/ * gdb.cp/cplabel.exp: Allow empty directory in file reported for breakpoint location.
2013-04-042013-04-04 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-7/+18
gdb/testsuite/ * gdb.linespec/linespec.exp: Make dir/file:line tests conditional for non-remote hosts only.
2013-04-04tracepoint->step_count fixesPedro Alves7-12/+298
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.
2013-04-04 GCC PR c++/56840Ian Lance Taylor2-11/+29
* object.cc (do_layout_deferred_sections): Handle .eh_frame sections before checking whether they are included in the link.
2013-04-04 * ld-elf/shared.exp: Update regexp on --no-add-needed andAlan Modra2-2/+7
--no-copy-dt-needed-entries tests.
2013-04-04 * ldlang.c (load_symbols): Report "error adding symbols" onAlan Modra4-5/+13
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.
2013-04-04 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.Alan Modra4-5/+10
* bfd-in2.h: Regenerate. * elflink.c (elf_link_add_object_symbols): Use new error.
2013-04-04oops - omitted from previous deltaNick Clifton1-0/+5
2013-04-04gdb/testsuite/Yao Qi2-1/+8
* gdb.server/server-kill.exp: Use command 'tstatus' instead of 'step'.
2013-04-04merge from gccDJ Delorie3-44/+34
2013-04-04*** empty log message ***gdbadmin1-1/+1
2013-04-03daily updateAlan Modra1-1/+1
2013-04-03 * dwarf2read.c (read_die_and_siblings_1): Renamed fromDoug Evans2-11/+77
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.
2013-04-03 * dwarf2read.c (struct dwo_file): New member comp_dir.Doug Evans2-20/+39
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.
2013-04-03 * psymtab.c (read_psymtabs_with_fullname): Don't callDoug Evans2-1/+10
psymtab_to_fullname if the basenames are different.
2013-04-03gdb/Jan Kratochvil2-2/+8
* NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname". New entry about "fullname" presence.
2013-04-03merge from gccDJ Delorie5-13/+163
2013-04-03NEWS: Mention x86_64/Cygwin as new native configuration too.Pedro Alves2-0/+5
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.
2013-04-03 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.Nick Clifton7-9/+60
(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.
2013-04-03 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): UseNick Clifton13-11/+239
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
2013-04-03 PR ld/15227Alan Modra3-5/+11
* 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.
2013-04-03gdb/testsuite/Yao Qi2-4/+11
* gdb.trace/mi-traceframe-changed.exp: Update tfile name to "tfile-basic.tf". (test_tfind_tfile): Likewise.
2013-04-03gdb/testsuite/Yao Qi3-13/+24
* 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".
2013-04-03 * doc/as.texinfo: Add support to generate man options for h8300.Alan Modra3-1/+27
* doc/c-h8300.texi: Likewise.
2013-04-032013-04-02 Sandra Loosemore <sandra@codesourcery.com>Sandra Loosemore2-1/+6
gdb/testsuite/ * gdb.cp/ovsrch.exp (test_class): Correct regexp to allow empty directory in file for breakpoint hit.
2013-04-03*** empty log message ***gdbadmin1-1/+1
2013-04-02* elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.DJ Delorie2-1/+17
(rl78_elf_relax_section): Only fetch the next reloc if there is one expected.
2013-04-02daily updateAlan Modra1-1/+1
2013-04-02 * dwarf2read.c (read_structure_type): Fix typo in comment.Doug Evans2-1/+5
2013-04-02NEWS/manual: Missing documentation for new commands in 7.6.Pedro Alves4-5/+52
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".
2013-04-02Add missing NEWS and manual bits for "set trace-buffer-size".Pedro Alves4-0/+17
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".
2013-04-02Fix list of files submitted to "make TAGS".Eli Zaretskii2-3/+8
* Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h. gdb_string.h is now in common/.
2013-04-02NEWS: Move "set debug notification" and "set trace-buffer-size" under "New ↵Pedro Alves2-8/+13
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".
2013-04-02gdb/Jan Kratochvil2-1/+8
Revert this patch: PR gdb/15275 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
2013-04-02unpush the remote target if serial_write fails.Pedro Alves2-8/+32
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.
2013-04-02gdb/ChangeLog:Jiong Wang2-0/+7
* NEWS: Mention TILE-Gx in "New native configurations" and "New targets" sections.
2013-04-02*** empty log message ***gdbadmin1-1/+1
2013-04-01 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.Doug Evans2-36/+4
(process_enumeration_scope): Simplify.