GDB (xrefs)
|
#include "defs.h"
#include <ctype.h>
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "guile-internal.h"
Go to the source code of this file.
Classes | |
struct | command_smob |
struct | cmdscm_completer |
Macros | |
#define | N_COMPLETERS |
Functions | |
static int | cmdscm_is_valid (command_smob *) |
static int | cmdscm_print_command_smob (SCM self, SCM port, scm_print_state *pstate) |
static SCM | cmdscm_make_command_smob (void) |
static void | cmdscm_release_command (command_smob *c_smob) |
static int | cmdscm_is_command (SCM scm) |
static SCM | gdbscm_command_p (SCM scm) |
static SCM | cmdscm_get_command_arg_unsafe (SCM self, int arg_pos, const char *func_name) |
static command_smob * | cmdscm_get_command_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name) |
static command_smob * | cmdscm_get_valid_command_smob_arg_unsafe (SCM self, int arg_pos, const char *func_name) |
static SCM | gdbscm_command_valid_p (SCM self) |
static SCM | gdbscm_dont_repeat (SCM self) |
static void | cmdscm_destroyer (struct cmd_list_element *self, void *context) |
static void | cmdscm_function (const char *args, int from_tty, cmd_list_element *command) |
static void | cmdscm_bad_completion_result (const char *msg, SCM completion) |
static int | cmdscm_add_completion (SCM completion, completion_tracker &tracker) |
static void | cmdscm_completer (struct cmd_list_element *command, completion_tracker &tracker, const char *text, const char *word) |
char * | gdbscm_parse_command_name (const char *name, const char *func_name, int arg_pos, struct cmd_list_element ***base_list, struct cmd_list_element **start_list) |
int | gdbscm_valid_command_class_p (int command_class) |
char * | gdbscm_canonicalize_command_name (const char *name, int want_trailing_space) |
static SCM | gdbscm_make_command (SCM name_scm, SCM rest) |
static SCM | gdbscm_register_command_x (SCM self) |
void | gdbscm_initialize_commands (void) |
Variables | |
static const char | command_smob_name [] = "gdb:command" |
static scm_t_bits | command_smob_tag |
static SCM | invoke_keyword |
static SCM | command_class_keyword |
static SCM | completer_class_keyword |
static SCM | prefix_p_keyword |
static SCM | doc_keyword |
static const struct cmdscm_completer | cmdscm_completers [] |
static const scheme_integer_constant | command_classes [] |
static const scheme_function | command_functions [] |
#define N_COMPLETERS |
Definition at line 121 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().
|
static |
Definition at line 351 of file scm-cmd.c.
References completion_tracker::add_completion(), cmdscm_bad_completion_result(), gdbscm_print_gdb_exception(), gdbscm_scm_to_string(), and host_charset().
Referenced by cmdscm_completer().
|
static |
Definition at line 336 of file scm-cmd.c.
Referenced by cmdscm_add_completion(), and cmdscm_completer().
|
static |
Definition at line 381 of file scm-cmd.c.
References cmdscm_add_completion(), cmdscm_bad_completion_result(), command_smob::complete, command_smob::containing_scm, cmd_list_element::context(), gdbscm_is_exception(), gdbscm_is_procedure(), gdbscm_is_true, gdbscm_print_gdb_exception(), gdbscm_safe_call_3(), gdbscm_scm_from_string(), host_charset(), itscm_is_iterator(), and itscm_safe_call_next_x().
Referenced by gdbscm_register_command_x().
|
static |
Definition at line 284 of file scm-cmd.c.
References cmdscm_release_command().
Referenced by gdbscm_register_command_x().
|
static |
Definition at line 294 of file scm-cmd.c.
References command_smob::containing_scm, cmd_list_element::context(), gdbscm_exception_key(), gdbscm_exception_message_to_string(), gdbscm_is_exception(), gdbscm_print_gdb_exception(), gdbscm_safe_call_3(), gdbscm_scm_from_string(), gdbscm_user_error_p, host_charset(), and command_smob::invoke.
Referenced by gdbscm_register_command_x().
|
static |
Definition at line 202 of file scm-cmd.c.
References cmdscm_is_command(), and command_smob_name.
Referenced by cmdscm_get_command_smob_arg_unsafe().
|
static |
Definition at line 214 of file scm-cmd.c.
References cmdscm_get_command_arg_unsafe().
Referenced by cmdscm_get_valid_command_smob_arg_unsafe(), gdbscm_command_valid_p(), and gdbscm_register_command_x().
|
static |
Definition at line 235 of file scm-cmd.c.
References cmdscm_get_command_smob_arg_unsafe(), cmdscm_is_valid(), and gdbscm_invalid_object_error().
Referenced by gdbscm_dont_repeat().
|
static |
Definition at line 185 of file scm-cmd.c.
References command_smob_tag.
Referenced by cmdscm_get_command_arg_unsafe(), and gdbscm_command_p().
|
static |
Definition at line 226 of file scm-cmd.c.
References command_smob::command.
Referenced by cmdscm_get_valid_command_smob_arg_unsafe(), cmdscm_print_command_smob(), gdbscm_command_valid_p(), and gdbscm_register_command_x().
|
static |
Definition at line 156 of file scm-cmd.c.
References command_smob::base, command_smob::cmd_class, command_smob_name, command_smob_tag, command_smob::complete, command_smob::containing_scm, gdbscm_init_gsmob(), command_smob::invoke, no_class, and scm_new_smob().
Referenced by gdbscm_make_command().
|
static |
Definition at line 131 of file scm-cmd.c.
References cmdscm_is_valid(), command_smob_name, gdbscm_printf(), and command_smob::name.
Referenced by gdbscm_initialize_commands().
|
static |
Definition at line 176 of file scm-cmd.c.
References command_smob::command, and command_smob::containing_scm.
Referenced by cmdscm_destroyer().
char * gdbscm_canonicalize_command_name | ( | const char * | name, |
int | want_trailing_space ) |
Definition at line 583 of file scm-cmd.c.
References FUNC_NAME, and name.
Referenced by gdbscm_make_command(), and gdbscm_make_parameter().
|
static |
Definition at line 193 of file scm-cmd.c.
References cmdscm_is_command().
|
static |
Definition at line 256 of file scm-cmd.c.
References cmdscm_get_command_smob_arg_unsafe(), cmdscm_is_valid(), and FUNC_NAME.
|
static |
Definition at line 268 of file scm-cmd.c.
References cmdscm_get_valid_command_smob_arg_unsafe(), dont_repeat(), and FUNC_NAME.
void gdbscm_initialize_commands | ( | void | ) |
Definition at line 852 of file scm-cmd.c.
References cmdscm_completers, cmdscm_print_command_smob(), command_class_keyword, command_classes, command_functions, command_smob_name, command_smob_tag, completer_class_keyword, doc_keyword, gdbscm_define_functions(), gdbscm_define_integer_constants(), gdbscm_make_smob_type(), invoke_keyword, N_COMPLETERS, name, and prefix_p_keyword.
|
static |
Definition at line 648 of file scm-cmd.c.
References command_smob::cmd_class, cmdscm_make_command_smob(), command_class_keyword, command_smob::complete, completer_class_keyword, cmd_list_element::doc, command_smob::doc, doc_keyword, FUNC_NAME, gdbscm_canonicalize_command_name(), gdbscm_gc_xstrdup(), gdbscm_is_false, gdbscm_is_procedure(), gdbscm_is_true, gdbscm_out_of_range_error(), gdbscm_parse_function_args(), gdbscm_valid_command_class_p(), command_smob::invoke, invoke_keyword, cmd_list_element::is_prefix(), command_smob::is_prefix, N_COMPLETERS, name, command_smob::name, no_class, prefix_p_keyword, and xfree().
char * gdbscm_parse_command_name | ( | const char * | name, |
const char * | func_name, | ||
int | arg_pos, | ||
struct cmd_list_element *** | base_list, | ||
struct cmd_list_element ** | start_list ) |
Definition at line 470 of file scm-cmd.c.
References CMD_LIST_AMBIGUOUS, gdbscm_dynwind_xfree(), gdbscm_out_of_range_error(), gdbscm_scm_from_c_string(), cmd_list_element::is_prefix(), lookup_cmd_1(), name, cmd_list_element::subcommands, valid_cmd_char_p(), and xmalloc().
Referenced by gdbscm_register_command_x(), and gdbscm_register_parameter_x().
|
static |
Definition at line 736 of file scm-cmd.c.
References add_cmd(), add_prefix_cmd(), cmd_list_element::allow_unknown, command_smob::cmd_class, command_smob::cmd_name, cmdlist, cmdscm_completer(), cmdscm_completers, cmdscm_destroyer(), cmdscm_function(), cmdscm_get_command_smob_arg_unsafe(), cmdscm_is_valid(), command_smob::command, command_smob::complete, cmdscm_completer::completer, command_smob::containing_scm, cmd_list_element::destroyer, command_smob::doc, cmd_list_element::func, FUNC_NAME, gdbscm_gc_xstrdup(), GDBSCM_HANDLE_GDB_EXCEPTION, gdbscm_is_true, gdbscm_parse_command_name(), command_smob::invoke, command_smob::is_prefix, command_smob::name, set_cmd_completer(), cmd_list_element::set_context(), command_smob::sub_list, unpack(), and xfree().
int gdbscm_valid_command_class_p | ( | int | command_class | ) |
Definition at line 561 of file scm-cmd.c.
References command_classes, and scheme_integer_constant::name.
Referenced by gdbscm_make_command(), and gdbscm_make_parameter().
|
static |
Definition at line 111 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_register_command_x().
|
static |
Definition at line 97 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().
|
static |
Definition at line 538 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_valid_command_class_p().
|
static |
Definition at line 804 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands().
|
static |
Definition at line 90 of file scm-cmd.c.
Referenced by cmdscm_get_command_arg_unsafe(), cmdscm_make_command_smob(), cmdscm_print_command_smob(), and gdbscm_initialize_commands().
|
static |
Definition at line 93 of file scm-cmd.c.
Referenced by cmdscm_is_command(), cmdscm_make_command_smob(), and gdbscm_initialize_commands().
|
static |
Definition at line 98 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().
|
static |
Definition at line 100 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().
|
static |
Definition at line 96 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().
|
static |
Definition at line 99 of file scm-cmd.c.
Referenced by gdbscm_initialize_commands(), and gdbscm_make_command().