]> git.ipfire.org Git - thirdparty/binutils-gdb.git/log
thirdparty/binutils-gdb.git
12 years ago*** empty log message ***
gdbadmin [Fri, 31 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Thu, 30 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Wed, 29 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Tue, 28 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Mon, 27 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 26 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 25 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Fri, 24 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Thu, 23 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Wed, 22 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Tue, 21 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Mon, 20 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 19 May 2013 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 18 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Fri, 17 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoAdd PR entry to the last gdb/ChangeLog entry.
Joel Brobecker [Thu, 16 May 2013 10:54:59 +0000 (10:54 +0000)] 
Add PR entry to the last gdb/ChangeLog entry.

(PR 15476)

12 years agoRemove forward enum declaration in utils.h.
Joel Brobecker [Thu, 16 May 2013 10:42:58 +0000 (10:42 +0000)] 
Remove forward enum declaration in utils.h.

These forward declarations are a GNU extension, and they trigger
a build warning when the compiler does not support it.

gdb/ChangeLog:

        * utils.h: #include "exceptions.h".
        (enum errors): Remove partial declaration.

12 years ago*** empty log message ***
gdbadmin [Thu, 16 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Wed, 15 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Tue, 14 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Mon, 13 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 12 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 11 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoPR remote/15455 - QTro remote packet broken
Pedro Alves [Fri, 10 May 2013 13:51:49 +0000 (13:51 +0000)] 
PR remote/15455 - QTro remote packet broken

In the function remote_trace_set_readonly_regions in gdb/remote.c, the
local variable 'offset' does not account for "QTro" at the start of
the packet with the result that if there are any read-only regions,
the packet is sent -- but without the "QTro" -- causing the remote
stub to report that the packet is unsupported:

  Sending packet: $:0000000000400200,(...),00000000004560a4#ab...Packet received:

vs the expected:

  Sending packet: $QTro:0000000000400200,(...),00000000004560a4#31...Packet received: OK

We don't see the problem when testing with GDBserver, as that supports
qXfer:trace-frame-info:read, meaning GDBserver never needs to read
from the read-only sections directly itself.  This commit adds a test
that explicitly disables qXfer:trace-frame-info:read.

gdb/
2013-05-10  David Taylor  <dtaylor@emc.com>

PR remote/15455

* remote.c (remote_trace_set_readonly_regions): Do not overwrite
"QTro" at start of packet.

gdb/testsuite/
2013-05-10  Pedro Alves  <palves@redhat.com>

PR remote/15455

* gdb.trace/qtro.c: New file.
* gdb.trace/qtro.exp: New file.

12 years agomove sparc-sol-thread.c back into sol-thread.c.
Joel Brobecker [Fri, 10 May 2013 12:30:05 +0000 (12:30 +0000)] 
move sparc-sol-thread.c back into sol-thread.c.

The routines in sparc-sol-thread used to be SPARC-specific (and
documented as such in the ptrace man page), and therefore hosting them
in a sparc-specific file made sense.  However, newer versions of
Solaris now use those callbacks (Solaris 10 Update 10, apparently),
and thus the note about these callbacks being specific to SPARC
was removed.

So this patch deletes sparc-sol-thread.c and moves the code back
inside sol-thread.c.

gdb/ChangeLog:

        PR tdep/15420:
        * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
        New functions, directly copied from sparc-sol-thread.c.
        * sparc-sol-thread.c: Delete.
        * configure.ac: Remove code handling sparc-solaris-thread.c.
        * configure: Regenerate.

12 years ago*** empty log message ***
gdbadmin [Fri, 10 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Thu, 9 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Wed, 8 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agogdb/
Sergio Durigan Junior [Tue, 7 May 2013 17:04:57 +0000 (17:04 +0000)] 
gdb/
2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>

PR breakpoints/15413:
* breakpoint.c (condition_completer): Simplify the code to
disconsider multiple locations of breakpoints when completing the
"condition" command.

gdb/testsuite/
2013-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>

PR breakpoints/15413:
* gdb.base/pending.exp: Add test for completion of the "condition"
command for pending breakpoints.
* gdb.linespec/linespec.ex: Add test for completion of the
"condition" command when dealing with multiple locations.

12 years ago*** empty log message ***
gdbadmin [Tue, 7 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Mon, 6 May 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 5 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 4 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
Hafiz Abid Qadeer [Fri, 3 May 2013 16:26:32 +0000 (16:26 +0000)] 
2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* tracepoint.c (cmd_qtinit): Call 'stop_tracing'.

2013-05-03  Hafiz Abid Qadeer  <abidh@codesourcery.com>

* status-stop.exp (test_tstart_tstart): Check for error
returned by the second 'tstart' command.

12 years ago*** empty log message ***
gdbadmin [Fri, 3 May 2013 00:00:33 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Thu, 2 May 2013 00:00:03 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Wed, 1 May 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Tue, 30 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Mon, 29 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 28 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 27 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoAdd entry mentioning GDB 7.6 release.
Joel Brobecker [Fri, 26 Apr 2013 14:13:13 +0000 (14:13 +0000)] 
Add entry mentioning GDB 7.6 release.

12 years agoSet version to 7.6.0.20130426-cvs
gdbadmin [Fri, 26 Apr 2013 14:08:43 +0000 (14:08 +0000)] 
Set version to 7.6.0.20130426-cvs

12 years agoNEWS: Change "since GDB 7.5" into "in GDB 7.6". gdb_7_6-2013-04-26-release
Joel Brobecker [Fri, 26 Apr 2013 11:43:30 +0000 (11:43 +0000)] 
NEWS: Change "since GDB 7.5" into "in GDB 7.6".

gdb/ChangeLog:

       * NEWS: Change "since GDB 7.5" into "in GDB 7.6".

12 years agoUpdate GDB version number in version.in
gdbadmin [Fri, 26 Apr 2013 11:36:02 +0000 (11:36 +0000)] 
Update GDB version number in version.in

12 years ago*** empty log message ***
gdbadmin [Fri, 26 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoAndrew Haley found a bug on GDB running on ARM when using
Sergio Durigan Junior [Thu, 25 Apr 2013 12:22:26 +0000 (12:22 +0000)] 
Andrew Haley found a bug on GDB running on ARM when using
--enable-64-bit-bfd.  Basically the issue happens when dealing with "bl"
instructions: GDB does branch destination calculation and (wrongly)
sign-extends the PC.  Here is a piece of his original message explaining
the problem:

>      next_pc = arm_get_next_pc (frame, get_frame_pc (frame));
>
>      /* The Linux kernel offers some user-mode helpers in a high page.  We can
>         not read this page (as of 2.6.23), and even if we could then we couldn't
>         set breakpoints in it, and even if we could then the atomic operations
>         would fail when interrupted.  They are all called as functions and return
>         to the address in LR, so step to there instead.  */
>      if (next_pc > 0xffff0000)
>        next_pc = get_frame_register_unsigned (frame, ARM_LR_REGNUM);
>
>      arm_insert_single_step_breakpoint (gdbarch, aspace, next_pc);
>
>    Unfortunately, branch destination addresses are SIGN EXTENDED to 64
>    bits.  So,
>
>    (top-gdb) p/x next_pc
>    $14 = 0xffffffffb6df2864
>
>    Which triggers the next_pc = get_frame_register_unsigned(), and we
>    cannot step into any branches because the destination PC is wrong.

Anyway, the fix is simple and Andrew himself provided it for us.  It
took a while for me to figure out how to trigger the bug (in order to
write a testcase for it), but I finally made it.

The attached patch fixes the problem (by casting to `unsigned long'
instead of just `long'), and also includes a testcase to reproduce the
issue.

gdb/ChangeLog:

2013-04-25  Andrew Haley  <aph@redhat.com>

* arm-tdep.c (BranchDest): Cast result as "unsigned long",
instead of "long".

gdb/testsuite/ChangeLog:

2013-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>

* gdb.arch/arm-bl-branch-dest.c: New file.
* gdb.arch/arm-bl-branch-dest.exp: Likewise.

12 years ago2013-04-25 Hui Zhu <hui@codesourcery.com>
Hui Zhu [Thu, 25 Apr 2013 08:15:34 +0000 (08:15 +0000)] 
2013-04-25  Hui Zhu  <hui@codesourcery.com>

* breakpoint.c (build_target_command_list): Change loc->cond_bytecode
to loc->cmd_bytecode.

12 years ago2013-04-25 Hui Zhu <hui@codesourcery.com>
Hui Zhu [Thu, 25 Apr 2013 08:10:26 +0000 (08:10 +0000)] 
2013-04-25  Hui Zhu  <hui@codesourcery.com>

PR gdb/15186
* ax.c (ax_printf): Add fflush.

12 years agoFix format error of ChangeLog.
Hui Zhu [Thu, 25 Apr 2013 08:04:15 +0000 (08:04 +0000)] 
Fix format error of ChangeLog.

12 years ago2013-04-25 Hui Zhu <hui@codesourcery.com>
Hui Zhu [Thu, 25 Apr 2013 01:26:36 +0000 (01:26 +0000)] 
2013-04-25  Hui Zhu  <hui@codesourcery.com>

PR gdb/15293

* breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.

2013-04-25  Hui Zhu  <hui@codesourcery.com>

PR gdb/15293

* gdb.base/dprintf.exp: Add ignore command.

12 years ago*** empty log message ***
gdbadmin [Thu, 25 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago2013-04-24 Hui Zhu <hui@codesourcery.com>
Hui Zhu [Wed, 24 Apr 2013 06:20:29 +0000 (06:20 +0000)] 
2013-04-24  Hui Zhu  <hui@codesourcery.com>

PR gdb/15165

* breakpoint.c (dprintf_print_recreate): New.
(save_breakpoints): Let it not save dprintf commands.
(initialize_breakpoint_ops): Set dprintf_print_recreate.

2013-04-24  Hui Zhu  <hui@codesourcery.com>

PR gdb/15165

* gdb.base/save-bp.exp: Add test for dprintf.

12 years ago*** empty log message ***
gdbadmin [Wed, 24 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Tue, 23 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

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

12 years ago*** empty log message ***
gdbadmin [Sun, 21 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 20 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agoFix the x87 FP register printout when issuing the “info float” command.
Pedro Alves [Fri, 19 Apr 2013 14:15:51 +0000 (14:15 +0000)] 
Fix the x87 FP register printout when issuing the “info float” command.

Consider the following simple program:

.globl  _start
.text
_start:
      fldt    val
.data
      val: .byte 0x00,0x00,0x45,0x07,0x11,0x19,0x22,0xe9,0xfe,0xbf

With current GDB on x86-64 GNU/Linux hosts, after the moment the fldt
command has been executed the register st(0) looks like this,
according to the “info regs” output (TOP=7):

  R7: Valid   0xffffffbffffffffeffffffe922191107450000 -0.910676542908976927

which is clearly wrong (just count its length).  The problem is due to
the printf statement (see patch) printing a promoted integer value of
a char argument "raw[i]", and, since char is signed on x86-64
GNU/Linux, the erroneous “ffffff” are printed for the first three
bytes which turn out to be "negative".  The fix is to use gdb_byte
instead which is unsigned (and is the type of value_contents(), the
type to be used for raw target bytes anyway).  After the fix the value
will be printed correctly:

  R7: Valid   0xbffee922191107450000 -0.910676542908976927

gdb/
2013-04-19  Vladimir Kargov <kargov@gmail.com>
    Pedro Alves  <palves@redhat.com>

* i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
value contents.

gdb/testsuite/
2013-04-19  Vladimir Kargov  <kargov@gmail.com>
    Pedro Alves  <palves@redhat.com>

* gdb.arch/i386-float.S: New file.
* gdb.arch/i386-float.exp: New file.

12 years ago*** empty log message ***
gdbadmin [Fri, 19 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Thu, 18 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

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

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

12 years ago*** empty log message ***
gdbadmin [Mon, 15 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sun, 14 Apr 2013 00:00:02 +0000 (00:00 +0000)] 
*** empty log message ***

12 years ago*** empty log message ***
gdbadmin [Sat, 13 Apr 2013 00:00:32 +0000 (00:00 +0000)] 
*** empty log message ***

12 years agogdb/doc/
Jan Kratochvil [Fri, 12 Apr 2013 20:46:50 +0000 (20:46 +0000)] 
gdb/doc/
* gdb.texinfo (Auto-loading safe path): Add quick -iex using command
line below the sample output.

12 years agogdb/
Jan Kratochvil [Fri, 12 Apr 2013 16:04:50 +0000 (16:04 +0000)] 
gdb/
Fix GDB regression related to PR binutils/14813.
* jit.c (mem_bfd_iovec_close): Return 0 for success.
* minidebug.c (lzma_close): Add return value comment.
* remote.c (remote_bfd_iovec_close): Return 0 for success.
* solib-spu.c (spu_bfd_iovec_close): Likewise.
* spu-linux-nat.c (spu_bfd_iovec_close): Likewise.

12 years ago2013-04-12 Pedro Alves <palves@redhat.com>
Hui Zhu [Fri, 12 Apr 2013 02:27:19 +0000 (02:27 +0000)] 
2013-04-12  Pedro Alves  <palves@redhat.com>
    Hui Zhu  <hui@codesourcery.com>

* breakpoint.c (dprintf_re_set): New.
(initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
to dprintf_re_set.

2013-04-12  Hui Zhu  <hui@codesourcery.com>

* gdb.base/Makefile.in (EXECUTABLES): Add dprintf-pending.
(MISCELLANEOUS): Add dprintf-pendshr.sl.
* gdb.base/dprintf-pending.c, gdb.base/dprintf-pending.exp: New.

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

12 years agosolib-darwin: Overwrite filename of unpeeled fat-binary bfd.
Joel Brobecker [Thu, 11 Apr 2013 01:24:09 +0000 (01:24 +0000)] 
solib-darwin: Overwrite filename of unpeeled fat-binary bfd.

gdb/ChangeLog:

        * solib-darwin.c (darwin_bfd_open): Set the filename of the
        returned bfd to a copy of PATHNAME.

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

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

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

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

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

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

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

12 years agoFix date of last entry.
Eli Zaretskii [Sat, 6 Apr 2013 06:49:13 +0000 (06:49 +0000)] 
Fix date of last entry.

12 years agoFix GDB relocation on MinGW.
Eli Zaretskii [Sat, 6 Apr 2013 06:47:29 +0000 (06:47 +0000)] 
Fix GDB relocation on MinGW.

* mingw-hdep.c (windows_get_absolute_argv0): New function.
Include main.h.

* main.h (windows_get_absolute_argv0): Add prototype.

* main.c (get_init_files): Use filename_ncmp instead of strncmp.
Use IS_DIR_SEPARATOR instead of looking for a character inside
SLASH_STRING.  Include filenames.h.
(captured_main) [__MINGW32__]: Make argv[0] absolute, so that
relocate_gdb_directory works when passed gdb_program_name.

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

12 years agogdb/
Jan Kratochvil [Fri, 5 Apr 2013 19:17:27 +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.

12 years agogdb/
Jan Kratochvil [Fri, 5 Apr 2013 19:14:55 +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.

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

12 years ago * psymtab.c (read_psymtabs_with_fullname): Don't call
Doug Evans [Thu, 4 Apr 2013 22:07:42 +0000 (22:07 +0000)] 
* psymtab.c (read_psymtabs_with_fullname): Don't call
psymtab_to_fullname if the basenames are different.

12 years agotracepoint->step_count fixes
Pedro Alves [Thu, 4 Apr 2013 19:15:55 +0000 (19:15 +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.

12 years agogdb/testsuite/
Yao Qi [Thu, 4 Apr 2013 02:21:17 +0000 (02:21 +0000)] 
gdb/testsuite/

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

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

12 years ago * contrib/cc-with-tweaks.sh: Check exit code of dwp.
Doug Evans [Wed, 3 Apr 2013 18:57:32 +0000 (18:57 +0000)] 
* contrib/cc-with-tweaks.sh: Check exit code of dwp.

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

12 years agoNEWS: Mention x86_64/Cygwin as new native configuration too.
Pedro Alves [Wed, 3 Apr 2013 18:00:22 +0000 (18:00 +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.

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

12 years agoNEWS/manual: Missing documentation for new commands in 7.6.
Pedro Alves [Tue, 2 Apr 2013 18:01:06 +0000 (18:01 +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".

12 years agoAdd missing NEWS and manual bits for "set trace-buffer-size".
Pedro Alves [Tue, 2 Apr 2013 17:58:28 +0000 (17:58 +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".

12 years agoFix list of files used to produce TAGS.
Eli Zaretskii [Tue, 2 Apr 2013 17:38:43 +0000 (17:38 +0000)] 
Fix list of files used to produce TAGS.

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

12 years agoNEWS: Move "set debug notification" and "set trace-buffer-size" under "New options".
Pedro Alves [Tue, 2 Apr 2013 15:16:46 +0000 (15:16 +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".

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

12 years agounpush the remote target if serial_write fails.
Pedro Alves [Tue, 2 Apr 2013 13:54:21 +0000 (13:54 +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.

12 years agogdb/ChangeLog:
Jiong Wang [Tue, 2 Apr 2013 03:12:41 +0000 (03:12 +0000)] 
gdb/ChangeLog:

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

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