summaryrefslogtreecommitdiff
path: root/gdb/completer.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-06-11 16:05:25 +0000
committerEli Zaretskii <eliz@gnu.org>2001-06-11 16:05:25 +0000
commit7822246305ecb0fb3f796e8760e10a02fa830dbe (patch)
tree74151d4bfa7d9b7a5da1c77aa0b1e938fe913c34 /gdb/completer.h
parentc65b7c2e0e6e089025ce44e0ca1d564b9a00a13a (diff)
downloadgdb-7822246305ecb0fb3f796e8760e10a02fa830dbe.tar.gz
* completer.c (gdb_completer_loc_break_characters): New variable.
(line_completion_function): If we are completing on locations, back up the start of word pointer past all characters which can appear in a location spec. (location_completer): New function. * completer.h: Add prototype for location_completer. * symtab.c (make_source_files_completion_list) (add_filename_to_list, not_interesting_fname): New functions. (filename_seen): New function, body extracted from output_source_filename. (output_source_filename): Call filename_seen to check if the file was already printed. (make_symbol_completion_list): If TEXT includes a double-quoted string, return an empty list, not NULL. (make_file_symbol_completion_list): New function, similar to make_symbol_completion_list but with an additional argument SRCFILE. * symtab.h (make_file_symbol_completion_list) (make_source_files_completion_list): Add prototypes. * breakpoint.c (_initialize_breakpoint): Make location_completer be the completion function for all commands which set breakpoints and watchpoints. (top-level): #include "completer.h". * tracepoint.c (_initialize_tracepoint): Make location_completer be the completion function for the "trace" command. (top-level): #include "completer.h". * printcmd.c (_initialize_printcmd): Make location_completer be the completion function for the "print", "inspect", "call", and "disassemble" commands. (top-level): #include "completer.h". * infcmd.c (_initialize_infcmd): Make location_completer be the completion function for the "go", "jump", and "until" commands. (top-level): #include "completer.h".
Diffstat (limited to 'gdb/completer.h')
-rw-r--r--gdb/completer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/completer.h b/gdb/completer.h
index abb3b8c8a4a..ae27395a2b8 100644
--- a/gdb/completer.h
+++ b/gdb/completer.h
@@ -23,6 +23,8 @@ extern char *line_completion_function (char *, int, char *, int);
extern char **filename_completer (char *, char *);
+extern char **location_completer (char *, char *);
+
extern char *get_gdb_completer_word_break_characters (void);
extern char *get_gdb_completer_quote_characters (void);