GDB (xrefs)
|
#include "defs.h"
#include "value.h"
#include "python-internal.h"
#include "charset.h"
#include "gdbcmd.h"
#include "cli/cli-decode.h"
#include "completer.h"
#include "language.h"
#include "arch-utils.h"
Go to the source code of this file.
Classes | |
union | parmpy_variable |
struct | parmpy_object |
Enumerations | |
enum | doc_string_type { doc_string_set , doc_string_show , doc_string_description } |
Functions | |
static setting | make_setting (parmpy_object *s) |
PyTypeObject parmpy_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("parmpy_object") |
static PyObject * | get_attr (PyObject *obj, PyObject *attr_name) |
static int | set_parameter_value (parmpy_object *self, PyObject *value) |
static int | set_attr (PyObject *obj, PyObject *attr_name, PyObject *val) |
static std::string | full_cmd_name_without_first_prefix (struct cmd_list_element *c) |
static gdb::unique_xmalloc_ptr< char > | get_doc_string (PyObject *object, enum doc_string_type doc_type, const char *cmd_name) |
static gdb::unique_xmalloc_ptr< char > | call_doc_function (PyObject *obj, PyObject *method, PyObject *arg) |
static void | get_set_value (const char *args, int from_tty, struct cmd_list_element *c) |
static void | get_show_value (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
static void | add_setshow_generic (int parmclass, enum command_class cmdclass, gdb::unique_xmalloc_ptr< char > cmd_name, parmpy_object *self, const char *set_doc, const char *show_doc, const char *help_doc, struct cmd_list_element **set_list, struct cmd_list_element **show_list) |
static int | compute_enum_values (parmpy_object *self, PyObject *enum_values) |
static int | parmpy_init (PyObject *self, PyObject *args, PyObject *kwds) |
static void | parmpy_dealloc (PyObject *obj) |
int | gdbpy_initialize_parameters (void) |
Variables | ||
struct { | ||
const char * name | ||
int value | ||
} | parm_constants [] | |
static PyObject * | set_doc_cst | |
static PyObject * | show_doc_cst | |
PyTypeObject | parmpy_object_type | |
enum doc_string_type |
Enumerator | |
---|---|
doc_string_set | |
doc_string_show | |
doc_string_description |
Definition at line 352 of file py-param.c.
|
static |
Definition at line 537 of file py-param.c.
References add_setshow_auto_boolean_cmd(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_filename_cmd(), add_setshow_integer_cmd(), add_setshow_optional_filename_cmd(), add_setshow_string_cmd(), add_setshow_string_noescape_cmd(), add_setshow_uinteger_cmd(), add_setshow_zinteger_cmd(), add_setshow_zuinteger_cmd(), add_setshow_zuinteger_unlimited_cmd(), parmpy_variable::autoboolval, parmpy_variable::boolval, parmpy_variable::cstringval, parmpy_object::enumeration, get_set_value(), get_show_value(), parmpy_variable::intval, set_show_commands::set, cmd_list_element::set_context(), set_show_commands::show, parmpy_variable::stringval, parmpy_variable::uintval, parmpy_object::value, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_uinteger, var_zinteger, var_zuinteger, and var_zuinteger_unlimited.
Referenced by parmpy_init().
|
static |
Definition at line 419 of file py-param.c.
References gdbpy_is_string(), and python_string_to_host_string().
Referenced by get_set_value(), and get_show_value().
|
static |
Definition at line 659 of file py-param.c.
References parmpy_object::enumeration, gdbpy_is_string(), python_string_to_host_string(), and size.
Referenced by parmpy_init().
PyTypeObject parmpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "parmpy_object" | ) |
|
static |
Definition at line 339 of file py-param.c.
References cmd_list_element::command_components(), and components.
Referenced by get_show_value().
int gdbpy_initialize_parameters | ( | void | ) |
Definition at line 836 of file py-param.c.
References gdb_module, gdb_pymodule_addobject(), name, parm_constants, parmpy_object_type, set_doc_cst, and show_doc_cst.
Definition at line 126 of file py-param.c.
References gdbpy_parameter_value(), and make_setting().
|
static |
Definition at line 363 of file py-param.c.
References doc_string_description, doc_string_set, doc_string_show, gdbpy_doc_cst, gdbpy_fix_doc_string_indentation(), gdbpy_is_string(), gdbpy_print_stack(), python_string_to_host_string(), set_doc_cst, and show_doc_cst.
|
static |
Definition at line 449 of file py-param.c.
References call_doc_function(), cmd_list_element::context(), gdb_printf(), gdbpy_handle_exception(), and gdbpy_print_stack().
Referenced by add_setshow_generic().
|
static |
Definition at line 483 of file py-param.c.
References call_doc_function(), cmd_list_element::context(), full_cmd_name_without_first_prefix(), gdb_printf(), and gdbpy_print_stack().
Referenced by add_setshow_generic().
|
static |
Definition at line 97 of file py-param.c.
References parmpy_variable::autoboolval, parmpy_variable::boolval, parmpy_variable::cstringval, parmpy_variable::intval, parmpy_variable::stringval, parmpy_object::type, parmpy_variable::uintval, parmpy_object::value, var_type_uses< bool >(), var_type_uses< const char * >(), var_type_uses< int >(), var_type_uses< std::string >(), and var_type_uses< unsigned int >().
Referenced by get_attr().
|
static |
Definition at line 826 of file py-param.c.
References parmpy_variable::stringval, parmpy_object::type, parmpy_object::value, and var_type_uses< std::string >().
Definition at line 735 of file py-param.c.
References add_setshow_generic(), class_breakpoint, class_files, class_info, class_maintenance, class_obscure, class_run, class_stack, class_support, class_trace, class_vars, compute_enum_values(), cmd_list_element::doc, doc_string_description, doc_string_set, doc_string_show, parmpy_object::enumeration, gdbpy_convert_exception(), gdbpy_parse_command_name(), get_doc_string(), name, no_class, setlist, showlist, parmpy_variable::stringval, parmpy_object::type, parmpy_object::value, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_type_uses< std::string >(), var_uinteger, var_zinteger, var_zuinteger, and var_zuinteger_unlimited.
Definition at line 313 of file py-param.c.
References set_parameter_value().
|
static |
Definition at line 142 of file py-param.c.
References AUTO_BOOLEAN_AUTO, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_TRUE, parmpy_variable::autoboolval, parmpy_variable::boolval, parmpy_variable::cstringval, parmpy_object::enumeration, gdb_py_int_as_long(), gdbpy_is_string(), INT_MAX, INT_MIN, parmpy_variable::intval, python_string_to_host_string(), parmpy_variable::stringval, parmpy_object::type, UINT_MAX, parmpy_variable::uintval, parmpy_object::value, var_auto_boolean, var_boolean, var_enum, var_filename, var_integer, var_optional_filename, var_string, var_string_noescape, var_uinteger, var_zinteger, var_zuinteger, and var_zuinteger_unlimited.
Referenced by set_attr().
const char* name |
Definition at line 33 of file py-param.c.
Referenced by gdbpy_initialize_parameters(), and parmpy_init().
struct { ... } parm_constants[] |
Referenced by gdbpy_initialize_parameters().
PyTypeObject parmpy_object_type |
Definition at line 865 of file py-param.c.
Referenced by gdbpy_initialize_parameters().
|
static |
Definition at line 119 of file py-param.c.
Referenced by gdbpy_initialize_parameters(), and get_doc_string().
|
static |
Definition at line 120 of file py-param.c.
Referenced by gdbpy_initialize_parameters(), and get_doc_string().
int value |
Definition at line 34 of file py-param.c.