diff options
Diffstat (limited to 'gdb/linespec.h')
-rw-r--r-- | gdb/linespec.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gdb/linespec.h b/gdb/linespec.h index ecbd7a8..abc945f 100644 --- a/gdb/linespec.h +++ b/gdb/linespec.h @@ -177,6 +177,32 @@ extern int is_ada_operator (const char *string); extern void linespec_lex_to_end (char **stringp); +extern const char * const linespec_keywords[]; + +/* Complete a linespec. */ + +extern void linespec_complete (completion_tracker &tracker, + const char *text); + +/* Complete a function symbol, in linespec mode. If SOURCE_FILENAME + is non-NULL, limits completion to the list of functions defined in + source files that match SOURCE_FILENAME. */ + +extern void linespec_complete_function (completion_tracker &tracker, + const char *function, + const char *source_filename); + +/* Complete a label symbol, in linespec mode. Only labels of + functions named FUNCTION_NAME are considered. If SOURCE_FILENAME + is non-NULL, limits completion to labels of functions defined in + source files that match SOURCE_FILENAME. */ + +extern void linespec_complete_label (completion_tracker &tracker, + const struct language_defn *language, + const char *source_filename, + const char *function_name, + const char *label_name); + /* Evaluate the expression pointed to by EXP_PTR into a CORE_ADDR, advancing EXP_PTR past any parsed text. */ |