gdb/completer.h - gdb

Macros defined

Source code

  1. /* Header for GDB line completion.
  2.    Copyright (C) 2000-2015 Free Software Foundation, Inc.

  3.    This program is free software; you can redistribute it and/or modify
  4.    it under the terms of the GNU General Public License as published by
  5.    the Free Software Foundation; either version 3 of the License, or
  6.    (at your option) any later version.

  7.    This program is distributed in the hope that it will be useful,
  8.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.    GNU General Public License for more details.

  11.    You should have received a copy of the GNU General Public License
  12.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  13. #if !defined (COMPLETER_H)
  14. #define COMPLETER_H 1

  15. #include "gdb_vecs.h"
  16. #include "command.h"

  17. extern VEC (char_ptr) *complete_line (const char *text,
  18.                                       const char *line_buffer,
  19.                                       int point);

  20. extern char *readline_line_completion_function (const char *text,
  21.                                                 int matches);

  22. extern VEC (char_ptr) *noop_completer (struct cmd_list_element *,
  23.                                        const char *, const char *);

  24. extern VEC (char_ptr) *filename_completer (struct cmd_list_element *,
  25.                                            const char *, const char *);

  26. extern VEC (char_ptr) *expression_completer (struct cmd_list_element *,
  27.                                              const char *, const char *);

  28. extern VEC (char_ptr) *location_completer (struct cmd_list_element *,
  29.                                            const char *, const char *);

  30. extern VEC (char_ptr) *command_completer (struct cmd_list_element *,
  31.                                           const char *, const char *);

  32. extern VEC (char_ptr) *signal_completer (struct cmd_list_element *,
  33.                                          const char *, const char *);

  34. extern VEC (char_ptr) *reg_or_group_completer (struct cmd_list_element *,
  35.                                                const char *, const char *);

  36. extern char *get_gdb_completer_quote_characters (void);

  37. extern char *gdb_completion_word_break_characters (void);

  38. /* Set the word break characters array to the corresponding set of
  39.    chars, based on FN.  This function is useful for cases when the
  40.    completer doesn't know the type of the completion until some
  41.    calculation is done (e.g., for Python functions).  */

  42. extern void set_gdb_completion_word_break_characters (completer_ftype *fn);

  43. /* Exported to linespec.c */

  44. extern const char *skip_quoted_chars (const char *, const char *,
  45.                                       const char *);

  46. extern const char *skip_quoted (const char *);

  47. #endif /* defined (COMPLETER_H) */