summaryrefslogtreecommitdiff
path: root/gdb/ctf.c
diff options
context:
space:
mode:
authorqiyao <qiyao>2013-04-13 14:14:08 +0000
committerqiyao <qiyao>2013-04-13 14:14:08 +0000
commitba9e88e790457da9ef2a85a91927d86343c2a0f3 (patch)
tree3f1f1e70a772c347fc723a1134430cc63b7cd5dc /gdb/ctf.c
parent4e2219e85fb7230fb898c3c8caf8bde185ff8a48 (diff)
downloadgdb-ba9e88e790457da9ef2a85a91927d86343c2a0f3.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 0985784ad40..b8252e40fc5 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -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
}