From 9852c492bd1c33290056351227ed7f314ff045c3 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 29 Mar 2013 15:21:23 +0000 Subject: gdb/ 2013-03-29 Yao Qi * 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 * 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". --- gdb/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/exec.c') diff --git a/gdb/exec.c b/gdb/exec.c index f550194..3386b60 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -943,7 +943,7 @@ Show writing into executable and core files."), NULL, show_write_files, &setlist, &showlist); - add_target (&exec_ops); + add_target_with_completer (&exec_ops, filename_completer); } static char * -- cgit v1.1