diff options
author | Yao Qi <yao@codesourcery.com> | 2013-03-29 15:21:23 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-03-29 15:21:23 +0000 |
commit | 9852c492bd1c33290056351227ed7f314ff045c3 (patch) | |
tree | 2e1563c05221d718490bd201bb21eac3b4635288 /gdb/testsuite/gdb.trace/tfile.exp | |
parent | af312be73153278ccc14e39c40a2bb0923578aa8 (diff) | |
download | binutils-gdb-9852c492bd1c33290056351227ed7f314ff045c3.tar.gz |
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".
Diffstat (limited to 'gdb/testsuite/gdb.trace/tfile.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/tfile.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.trace/tfile.exp b/gdb/testsuite/gdb.trace/tfile.exp index 56e2a799041..f259952640e 100644 --- a/gdb/testsuite/gdb.trace/tfile.exp +++ b/gdb/testsuite/gdb.trace/tfile.exp @@ -125,3 +125,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'" |