GDB (xrefs)
|
#include "defs.h"
#include "python-internal.h"
#include "arch-utils.h"
#include "charset.h"
#include "language.h"
#include "mi/mi-cmds.h"
#include "mi/mi-parse.h"
#include "cli/cli-cmds.h"
#include <string>
Go to the source code of this file.
Classes | |
struct | micmdpy_object |
struct | mi_command_py |
Macros | |
#define | pymicmd_debug_printf(fmt, ...) |
#define | PYMICMD_SCOPED_DEBUG_ENTER_EXIT scoped_debug_enter_exit (pymicmd_debug, "py-micmd") |
Typedefs | |
using | mi_command_py_up = std::unique_ptr<mi_command_py> |
Functions | |
static void | show_pymicmd_debug (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) |
PyTypeObject micmdpy_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("micmdpy_object") |
static gdb::unique_xmalloc_ptr< char > | py_object_to_mi_key (PyObject *key_obj) |
static void | serialize_mi_result_1 (PyObject *result, const char *field_name) |
static void | serialize_mi_result (PyObject *result) |
static mi_command_py * | as_mi_command_py (mi_command *cmd) |
static int | micmdpy_uninstall_command (micmdpy_object *obj) |
static int | micmdpy_install_command (micmdpy_object *obj) |
static int | micmdpy_init (PyObject *self, PyObject *args, PyObject *kwargs) |
static void | micmdpy_dealloc (PyObject *obj) |
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION | gdbpy_initialize_micommands () |
static void | gdbpy_finalize_micommands () |
static PyObject * | micmdpy_get_name (PyObject *self, void *closure) |
static PyObject * | micmdpy_get_installed (PyObject *self, void *closure) |
static int | micmdpy_set_installed (PyObject *self, PyObject *newvalue, void *closure) |
void | _initialize_py_micmd () |
GDBPY_INITIALIZE_FILE (gdbpy_initialize_micommands, gdbpy_finalize_micommands) | |
Variables | |
static bool | pymicmd_debug |
static PyObject * | invoke_cst |
static gdb_PyGetSetDef | micmdpy_object_getset [] |
PyTypeObject | micmdpy_object_type |
#define pymicmd_debug_printf | ( | fmt, | |
... ) |
Definition at line 47 of file py-micmd.c.
Referenced by mi_command_py::invoke(), mi_command_py::mi_command_py(), micmdpy_dealloc(), micmdpy_install_command(), micmdpy_uninstall_command(), and mi_command_py::~mi_command_py().
#define PYMICMD_SCOPED_DEBUG_ENTER_EXIT scoped_debug_enter_exit (pymicmd_debug, "py-micmd") |
Definition at line 52 of file py-micmd.c.
Referenced by mi_command_py::invoke(), micmdpy_dealloc(), micmdpy_init(), micmdpy_install_command(), and micmdpy_uninstall_command().
using mi_command_py_up = std::unique_ptr<mi_command_py> |
Definition at line 167 of file py-micmd.c.
void _initialize_py_micmd | ( | ) |
Definition at line 747 of file py-micmd.c.
Referenced by initialize_all_files().
|
static |
Definition at line 414 of file py-micmd.c.
Referenced by gdbpy_finalize_micommands(), and micmdpy_install_command().
|
extern |
|
static |
Definition at line 636 of file py-micmd.c.
References as_mi_command_py(), and remove_mi_cmd_entries().
GDBPY_INITIALIZE_FILE | ( | gdbpy_initialize_micommands | , |
gdbpy_finalize_micommands | ) |
|
static |
Definition at line 615 of file py-micmd.c.
References gdb_module, gdb_pymodule_addobject(), invoke_cst, and micmdpy_object_type.
|
static |
Definition at line 586 of file py-micmd.c.
References micmdpy_object::mi_command, micmdpy_object::mi_command_name, pymicmd_debug_printf, PYMICMD_SCOPED_DEBUG_ENTER_EXIT, and xfree().
|
static |
Definition at line 665 of file py-micmd.c.
References micmdpy_object::mi_command.
|
static |
Definition at line 651 of file py-micmd.c.
References micmdpy_object::mi_command_name.
|
static |
Definition at line 501 of file py-micmd.c.
References gdb_PyArg_ParseTupleAndKeywords(), micmdpy_object::mi_command, micmdpy_object::mi_command_name, micmdpy_install_command(), name, PYMICMD_SCOPED_DEBUG_ENTER_EXIT, and mi_command_py::validate_installation().
|
static |
Definition at line 454 of file py-micmd.c.
References as_mi_command_py(), insert_mi_cmd_entry(), mi_cmd_lookup(), micmdpy_object::mi_command, micmdpy_object::mi_command_name, pymicmd_debug_printf, PYMICMD_SCOPED_DEBUG_ENTER_EXIT, and mi_command_py::swap_python_object().
Referenced by micmdpy_init(), and micmdpy_set_installed().
|
static |
Definition at line 681 of file py-micmd.c.
References micmdpy_object::mi_command, micmdpy_install_command(), and micmdpy_uninstall_command().
|
static |
Definition at line 424 of file py-micmd.c.
References micmdpy_object::mi_command, micmdpy_object::mi_command_name, mi_command::name(), pymicmd_debug_printf, PYMICMD_SCOPED_DEBUG_ENTER_EXIT, and remove_mi_cmd_entry().
Referenced by micmdpy_set_installed().
|
static |
Definition at line 185 of file py-micmd.c.
References gdbpy_error(), gdbpy_handle_exception(), name, and python_string_to_target_string().
Referenced by serialize_mi_result(), and serialize_mi_result_1().
|
static |
Definition at line 331 of file py-micmd.c.
References gdbpy_error(), py_object_to_mi_key(), serialize_mi_result_1(), and value.
Referenced by mi_command_py::invoke().
|
static |
Definition at line 248 of file py-micmd.c.
References current_uiout, field_name(), ui_out::field_signed(), ui_out::field_string(), gdb_py_long_as_long_and_overflow, gdbpy_handle_exception(), gdbpy_obj_to_string(), get(), py_object_to_mi_key(), serialize_mi_result_1(), and value.
Referenced by serialize_mi_result(), and serialize_mi_result_1().
|
static |
Definition at line 39 of file py-micmd.c.
References gdb_printf().
|
static |
Definition at line 174 of file py-micmd.c.
Referenced by gdbpy_initialize_micommands(), and mi_command_py::invoke().
|
static |
Definition at line 697 of file py-micmd.c.
PyTypeObject micmdpy_object_type |
Definition at line 706 of file py-micmd.c.
Referenced by gdbpy_initialize_micommands().
|
static |
Definition at line 34 of file py-micmd.c.