diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-12-01 00:43:47 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-12-01 00:43:47 +0000 |
commit | 01353010a3085e6cbae64cd170b8fa239299b096 (patch) | |
tree | b6929cc6927b676f47e0a4e0e92cc7b3c08452a7 /gdb/completer.h | |
parent | d41344bbe6eadfc8f48ec60536f9f3340c391c75 (diff) | |
download | gdb-01353010a3085e6cbae64cd170b8fa239299b096.tar.gz |
2000-11-30 Fernando Nasser <fnasser@redhat.com>
* linespec.h: New file. Declarations for linespec.c.
* linespec.c, alpha-tdep.c, breakpoint.c, parse.c, source.c,
symtab.c, tracepoint.c: Include the above.
* completer.c: New file. Line completion stuff for GDB.
(get_gdb_completer_word_break_characters,
get_gdb_completer_quote_characters): New functions. Accessors for
useful completer internal data.
(filename_completer, line_completion_function, skip_quoted): Moved
here from top.c.
* completer.h: New file. Declarations for the above.
* linespec.c (decode_line_1): Use
get_gdb_completer_word_break_characters and
get_gdb_completer_quote_characters.
* top.c: Include completer.h.
(filename_completer, line_completion_function, skip_quoted):
Moved to completer.c.
* corefile.c, exec.c, source.c, symfile.c, linespec.c: Include
completer.h.
* Makefile.in (SFILES): Add completer.c.
(COMMON_OBS): Add completer.o.
(completer.o): New target.
(linespec.o, alpha-tdep.o, breakpoint.o, parse.o, source.o,
symtab.o, tracepoint.o): Add linespec.h to dependencies list.
(corefile.o, exec.o, source.o, symfile.o, linespec.o): Add completer.h
to dependencies list.
Diffstat (limited to 'gdb/completer.h')
-rw-r--r-- | gdb/completer.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gdb/completer.h b/gdb/completer.h new file mode 100644 index 00000000000..518b30006b9 --- /dev/null +++ b/gdb/completer.h @@ -0,0 +1,34 @@ +/* Header for GDB line completion. + Copyright 2000 Free Software Foundation. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#if !defined (COMPLETER_H) +#define COMPLETER_H 1 + +extern char *line_completion_function (char *, int, char *, int); + +extern char **filename_completer (char *, char *); + +extern char *get_gdb_completer_word_break_characters (void); + +extern char *get_gdb_completer_quote_characters (void); + +/* Exported to linespec.c */ + +extern char *skip_quoted (char *str); + +#endif /* defined (COMPLETER_H) */ |