2001-07-15 Elena Zannoni <ezannoni@redhat.com>
* top.c (readline_line_completion_function, noop_completer): Move from here... * completer.c (readline_line_completion_function, noop_completer): ...to here. * gdbcmd.h (readline_line_completion_function, noop_completer): Move declarations from here... * completer.h (readline_line_completion_function, noop_completer): ...to here. * corefile.c: Include completer.h. * source.c: Ditto. * symfile.c: Ditto. * Makefile.in: Update dependencies.
This commit is contained in:
parent
ed8fee27bc
commit
d75b5104df
9 changed files with 60 additions and 41 deletions
20
gdb/top.c
20
gdb/top.c
|
@ -95,8 +95,6 @@ static void init_signals (void);
|
|||
static void stop_sig (int);
|
||||
#endif
|
||||
|
||||
static char *readline_line_completion_function (char *, int);
|
||||
|
||||
static void init_main (void);
|
||||
|
||||
static void float_handler (int);
|
||||
|
@ -1035,24 +1033,6 @@ static int write_history_p;
|
|||
static int history_size;
|
||||
static char *history_filename;
|
||||
|
||||
/* Functions that are used as part of the fancy command line editing. */
|
||||
|
||||
/* This can be used for functions which don't want to complete on symbols
|
||||
but don't want to complete on anything else either. */
|
||||
/* ARGSUSED */
|
||||
char **
|
||||
noop_completer (char *text, char *prefix)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Line completion interface function for readline. */
|
||||
|
||||
static char *
|
||||
readline_line_completion_function (char *text, int matches)
|
||||
{
|
||||
return line_completion_function (text, matches, rl_line_buffer, rl_point);
|
||||
}
|
||||
|
||||
#ifdef STOP_SIGNAL
|
||||
static void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue