Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Hui Zhu <hui_zhu@mentor.com>
Cc: gdb-patches ml <gdb-patches@sourceware.org>,
	Stan Shebs <stan@codesourcery.com>,
		Joel Brobecker <brobecker@adacore.com>
Subject: Re: [PATCH] Reset tracepoint step_count to 0 before set it action
Date: Mon, 01 Apr 2013 04:52:00 -0000	[thread overview]
Message-ID: <CANFwon14bzr=oWaMkjH0f4Nqm1h16rVM4F65mMEVHGMdkvK4Jg@mail.gmail.com> (raw)
In-Reply-To: <514EE46A.4070808@mentor.com>

Ping.
http://old.nabble.com/-PATCH--Reset-tracepoint-step_count-to-0-before-set-it-action-p35211711.html

Wish this bug fix get review before new release.

Thanks,
Hui

On Sun, Mar 24, 2013 at 7:32 PM, Hui Zhu <hui_zhu@mentor.com> wrote:
> Hi,
>
> If a tracepoint's action include a while-stepping, when it set to actions
> without while-stepping.  The step_count will keep to its old 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".
>
> Post a patch to fix it and there also a test for this issue.
>
> Please help me review it.  And I suggest this change can be checked to 7.6
> branch.
>
> Thanks,
> Hui
>
> 2013-03-24  Hui Zhu  <hui@codesourcery.com>
>
>         * breakpoint.c (do_map_commands_command): Reset step_count to 0
>         if this is a tracepoint.
>         * tracepoint.c (trace_actions_command): Ditto.
>
> 2013-03-24  Stan Shebs  <stan@codesourcery.com>
>
>         * gdb.trace/Makefile.in (PROGS): Add actions-changed.
>         * gdb.trace/actions-changed.c: New.
>         * gdb.trace/actions-changed.exp: New.


  parent reply	other threads:[~2013-04-01  4:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-24 23:23 Hui Zhu
2013-03-25  2:39 ` Yao Qi
2013-03-25  7:52   ` Hui Zhu
2013-03-25  8:30     ` Yao Qi
2013-04-01  4:52 ` Hui Zhu [this message]
2013-04-05 13:03 ` Pedro Alves
2013-04-05 13:03   ` Pedro Alves
2013-04-08  7:58     ` Hui Zhu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CANFwon14bzr=oWaMkjH0f4Nqm1h16rVM4F65mMEVHGMdkvK4Jg@mail.gmail.com' \
    --to=teawater@gmail.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hui_zhu@mentor.com \
    --cc=stan@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox