Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: gdb-patches ml <gdb-patches@sourceware.org>
Cc: Hui Zhu <hui_zhu@mentor.com>, Yao Qi <yao@codesourcery.com>
Subject: Re: [PATCH] store trace default-collect to target [6/6] test
Date: Mon, 13 May 2013 06:06:00 -0000	[thread overview]
Message-ID: <CANFwon1RerVie=JmOnPEb6Qu8hCE2SbT6toy+9kcv0poPNdEuw@mail.gmail.com> (raw)
In-Reply-To: <CANFwon2ohZ+6g5TL4CRe5kAEx3n_m-+mC6Lx_Gc3AbYsSBYZaQ@mail.gmail.com>

Ping http://sourceware.org/ml/gdb-patches/2013-04/msg00455.html

Thanks,
Hui

On Tue, Apr 16, 2013 at 5:32 PM, Hui Zhu <teawater@gmail.com> wrote:
> Hi Yao,
>
> Thanks for your review.
>
> On Thu, Apr 11, 2013 at 4:19 PM, Yao Qi <yao@codesourcery.com> wrote:
>> On 04/11/2013 03:40 PM, Hui Zhu wrote:
>>>
>>> --- a/testsuite/gdb.trace/tstatus.exp
>>> +++ b/testsuite/gdb.trace/tstatus.exp
>>> @@ -137,6 +137,8 @@ proc test_tracepoints {} {
>>>
>>>   test_tracepoints
>>>
>>> +gdb_test_no_output "set default-collect \$regs"
>>> +
>>>   set tracefile [standard_output_file ${testfile}]
>>>   # Save trace frames to tfile.
>>>   gdb_test "tsave ${tracefile}.tf" \
>>> @@ -147,6 +149,8 @@ gdb_test "tsave -ctf ${tracefile}.ctf" \
>>>       "Trace data saved to directory '${tracefile}.ctf'.*" \
>>>       "save ctf trace file"
>>>
>>> +gdb_test_no_output "set default-collect"
>>> +
>>>   # Change target to tfile.
>>>   set test "change to tfile target"
>>>   gdb_test_multiple "target tfile ${tracefile}.tf" "$test" {
>>> @@ -159,6 +163,8 @@ gdb_test_multiple "target tfile ${tracef
>>>       }
>>>   }
>>>
>>> +gdb_test "show default-collect" "The list of expressions to collect by
>>> default is \"\\\$regs\".*"
>>> +
>>>   # Convert "(because I can) to "\(because I can\)"
>>>   set tstatus_output [string map {\( \\(} $tstatus_output]
>>>   set tstatus_output [string map {\) \\)} $tstatus_output]
>>
>>
>> I am afraid that tstatus.exp is not a good place to test "default-collect".
>> The tstatus.exp is to test the output of command 'tstatus' in various
>> situations, and also test that the output of 'tstatus' command on tfile
>> target is identical to its output on the ctf target.  Probably, actions.exp
>> is better, IMO.
>
> Move it to actions.exp
>
> Post a new version for it.
>
> Best,
> Hui
>
> 2013-04-16  Hui Zhu  <hui@codesourcery.com>
>
> * gdb.trace/disconnected-tracing.exp (disconnected_tracing): Add
> test for default-collect.
> * gdb.trace/actions.exp: Add test for default-collect.
>
>>
>> --
>> Yao (齐尧)


  reply	other threads:[~2013-05-13  6:06 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11  8:35 [PATCH] store trace default-collect to target [0/6] Hui Zhu
2013-04-11  8:37 ` [PATCH] store trace default-collect to target [1/6] target, trace and remote Hui Zhu
2013-04-11 22:58   ` Yao Qi
2013-04-16 15:22     ` Hui Zhu
2013-05-13  6:00       ` Hui Zhu
2013-04-11 22:59   ` Abid, Hafiz
2013-04-11  9:14 ` [PATCH] store trace default-collect to target [2/6] gdbserver Hui Zhu
2013-05-13  6:01   ` Hui Zhu
2013-04-11 10:33 ` [PATCH] store trace default-collect to target [3/6] tfile Hui Zhu
2013-04-11 22:59   ` Yao Qi
2013-04-12 14:58     ` Hui Zhu
2013-04-15 19:01       ` Hui Zhu
2013-04-16 15:34         ` Hui Zhu
2013-04-17 11:21           ` Yao Qi
2013-05-13  6:02             ` Hui Zhu
2013-04-11 10:36 ` [PATCH] store trace default-collect to target [4/6] save tracepoint Hui Zhu
2013-05-13  6:03   ` Hui Zhu
2013-04-11 10:48 ` [PATCH] store trace default-collect to target [5/6] doc Hui Zhu
2013-04-11 22:59   ` Yao Qi
2013-04-16 14:35     ` Hui Zhu
2013-04-11 23:00   ` Eli Zaretskii
2013-04-16 15:39     ` Hui Zhu
2013-04-16 15:44       ` Eli Zaretskii
2013-04-16 15:44         ` Hui Zhu
2013-05-13  6:04           ` Hui Zhu
2013-05-13 16:02             ` Eli Zaretskii
2013-05-14  1:36               ` Hui Zhu
2013-04-11 10:49 ` [PATCH] store trace default-collect to target [6/6] test Hui Zhu
2013-04-11 13:14   ` Yao Qi
2013-04-11 14:01     ` Hui Zhu
2013-04-11 15:24       ` Yao Qi
2013-04-16 15:44         ` Hui Zhu
2013-05-13  6:06           ` Hui Zhu [this message]
2013-05-13  5:33 ` [PATCH] store trace default-collect to target [0/6] 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='CANFwon1RerVie=JmOnPEb6Qu8hCE2SbT6toy+9kcv0poPNdEuw@mail.gmail.com' \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hui_zhu@mentor.com \
    --cc=yao@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