diff options
author | Yao Qi <yao@codesourcery.com> | 2013-04-13 14:14:08 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-04-13 14:14:08 +0000 |
commit | da9160e4c8b95f900048f9ca7018344b5b2e8461 (patch) | |
tree | 19448c341f509480ea22a8d5b3e8003f9650ac50 /gdb/ctf.c | |
parent | 0cfdc76718f8314663016322c94c67afe6bb8f12 (diff) | |
download | gdb-da9160e4c8b95f900048f9ca7018344b5b2e8461.zip gdb-da9160e4c8b95f900048f9ca7018344b5b2e8461.tar.gz gdb-da9160e4c8b95f900048f9ca7018344b5b2e8461.tar.bz2 |
gdb/
* ctf.c (_initialize_ctf): Include "completer.h".
Call add_target_with_completer instead of add_target.
gdb/testsuite/
* gdb.base/completion.exp: Test completion of command
'target ctf' if target ctf is supported.
Diffstat (limited to 'gdb/ctf.c')
-rw-r--r-- | gdb/ctf.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ #include "regcache.h" #include "gdb_stat.h" #include "exec.h" +#include "completer.h" #include <ctype.h> @@ -1843,6 +1844,6 @@ _initialize_ctf (void) #if HAVE_LIBBABELTRACE init_ctf_ops (); - add_target (&ctf_ops); + add_target_with_completer (&ctf_ops, filename_completer); #endif } |