aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-03-29 15:21:23 +0000
committerYao Qi <yao@codesourcery.com>2013-03-29 15:21:23 +0000
commit9852c492bd1c33290056351227ed7f314ff045c3 (patch)
tree2e1563c05221d718490bd201bb21eac3b4635288 /gdb/corelow.c
parentaf312be73153278ccc14e39c40a2bb0923578aa8 (diff)
downloadgdb-9852c492bd1c33290056351227ed7f314ff045c3.zip
gdb-9852c492bd1c33290056351227ed7f314ff045c3.tar.gz
gdb-9852c492bd1c33290056351227ed7f314ff045c3.tar.bz2
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/corelow.c')
-rw-r--r--gdb/corelow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 77bab82..fa48941 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -46,6 +46,7 @@
#include "progspace.h"
#include "objfiles.h"
#include "gdb_bfd.h"
+#include "completer.h"
#ifndef O_LARGEFILE
#define O_LARGEFILE 0
@@ -977,5 +978,5 @@ _initialize_corelow (void)
{
init_core_ops ();
- add_target (&core_ops);
+ add_target_with_completer (&core_ops, filename_completer);
}