Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Doug Evans <dje@google.com>
To: Yao Qi <yao@codesourcery.com>
Cc: Pedro Alves <palves@redhat.com>,
	gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Add completer to commands 'target {core/tfile/exec}'
Date: Wed, 03 Apr 2013 13:44:00 -0000	[thread overview]
Message-ID: <CADPb22RRFHi_54L96B-dvzzKFOHfntfM_5jKQNd6D0t7pv8vXQ@mail.gmail.com> (raw)
In-Reply-To: <5155B1A9.3030503@codesourcery.com>

On Fri, Mar 29, 2013 at 8:22 AM, Yao Qi <yao@codesourcery.com> wrote:
> On 03/28/2013 11:14 PM, Pedro Alves wrote:
>>>      (add_target_with_completer): ... it.  New.  Call set_cmd_completer if
>>> >    parameter completer is not NULL.
>> s/it./this./.  "New." looks stale here.  Did you mean "New parameter"?
>>
>
> "New" is not needed here.  Removed.  Patch below is committed.  Thanks
> for the review.
>
> --
> Yao (齐尧)
>
> gdb:
>
> 2013-03-29  Yao Qi  <yao@codesourcery.com>
>
>         * corelow.c: Include "completer.h".
>         (_initialize_corelow): Call add_target_with_completer with
>         argument 'filename_completer'.
>         * tracepoint.c: Likewise.
>         * exec.c (_initialize_exec): Likewise.
>         * target.c (add_target): Rename to ...
>         (add_target_with_completer): ... this.  Call set_cmd_completer
>         if parameter completer is not NULL.
>         (add_target): New.
>         * target.h: Include "command.h".
>         (add_target_with_completer): Declare it.
>
> gdb/testsuite:
>
> 2013-03-29  Yao Qi  <yao@codesourcery.com>
>
>         * gdb.base/completion.exp: Test completion of commands
>         "target core", "target tfile" and "target exec".
>         * gdb.trace/tfile.exp: Test completion of command
>         "target tfile".
> [...]
> diff --git a/gdb/testsuite/gdb.trace/tfile.exp b/gdb/testsuite/gdb.trace/tfile.exp
> index e8a778d..3b720cc 100644
> --- a/gdb/testsuite/gdb.trace/tfile.exp
> +++ b/gdb/testsuite/gdb.trace/tfile.exp
> @@ -128,3 +128,8 @@ gdb_test \
>  gdb_test "interpreter-exec mi \"-trace-status\"" \
>      "\\^done,supported=\"file\",trace-file=\".*basic.tf\",running=\"0\",stop-reason=\"request\",frames=\"${decimal}\",frames-created=\"${decimal}\",buffer-size=\"${decimal}\",buffer-free=\"${decimal}\",disconnected=\".*\",circular=\".*\",user-name=\"\",notes=\"\",start-time=\".*\",stop-time=\".*\"" \
>      "-trace-status"
> +
> +# Test completion works well.
> +
> +gdb_test "target tfile basic\t" "Assuming tracepoint.*" \
> +    "complete-command 'target tfile'"

Hi.  This test is failing for me because I have another file that
begins with "basic".
Can you change this to use "tfile-basic" instead of "basic?


  reply	other threads:[~2013-04-02 21:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-28 15:14 Yao Qi
2013-03-28 18:50 ` Pedro Alves
2013-03-29 16:42   ` Yao Qi
2013-04-03 13:44     ` Doug Evans [this message]
2013-04-03 15:53       ` Yao Qi
2013-04-03 17:09         ` Yao Qi

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=CADPb22RRFHi_54L96B-dvzzKFOHfntfM_5jKQNd6D0t7pv8vXQ@mail.gmail.com \
    --to=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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