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, ...) debug_prefixed_printf_cond (pymicmd_debug, "py-micmd", fmt, ##__VA_ARGS__) |
#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) |
int | gdbpy_initialize_micommands () |
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 () |
Variables | |
static bool | pymicmd_debug |
static PyObject * | invoke_cst |
static gdb_PyGetSetDef | micmdpy_object_getset [] |
PyTypeObject | micmdpy_object_type |
#define pymicmd_debug_printf | ( | fmt, | |
... | |||
) | debug_prefixed_printf_cond (pymicmd_debug, "py-micmd", fmt, ##__VA_ARGS__) |
Definition at line 47 of file py-micmd.c.
#define PYMICMD_SCOPED_DEBUG_ENTER_EXIT scoped_debug_enter_exit (pymicmd_debug, "py-micmd") |
Definition at line 52 of file py-micmd.c.
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 729 of file py-micmd.c.
Referenced by initialize_all_files().
|
static |
Definition at line 398 of file py-micmd.c.
Referenced by gdbpy_finalize_micommands(), and micmdpy_install_command().
PyTypeObject micmdpy_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "micmdpy_object" | ) |
void gdbpy_finalize_micommands | ( | ) |
Definition at line 618 of file py-micmd.c.
References as_mi_command_py(), and remove_mi_cmd_entries().
Referenced by finalize_python().
int gdbpy_initialize_micommands | ( | void | ) |
Definition at line 599 of file py-micmd.c.
References gdb_module, gdb_pymodule_addobject(), invoke_cst, and micmdpy_object_type.
Referenced by do_start_initialization().
|
static |
Definition at line 570 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 647 of file py-micmd.c.
References micmdpy_object::mi_command.
|
static |
Definition at line 633 of file py-micmd.c.
References micmdpy_object::mi_command_name.
|
static |
Definition at line 485 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 438 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 663 of file py-micmd.c.
References micmdpy_object::mi_command, micmdpy_install_command(), and micmdpy_uninstall_command().
|
static |
Definition at line 408 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 316 of file py-micmd.c.
References gdbpy_error(), py_object_to_mi_key(), and serialize_mi_result_1().
Referenced by mi_command_py::invoke().
|
static |
Definition at line 248 of file py-micmd.c.
References current_uiout, field_name(), ui_out::field_string(), gdbpy_handle_exception(), gdbpy_obj_to_string(), get(), py_object_to_mi_key(), and serialize_mi_result_1().
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 679 of file py-micmd.c.
PyTypeObject micmdpy_object_type |
Definition at line 688 of file py-micmd.c.
Referenced by gdbpy_initialize_micommands().
|
static |
Definition at line 34 of file py-micmd.c.