GDB (xrefs)
|
#include "defs.h"
#include "python-internal.h"
#include "process-stratum-target.h"
#include "inferior.h"
#include "observable.h"
#include "target-connection.h"
#include "py-events.h"
#include "py-event.h"
#include "arch-utils.h"
#include "remote.h"
#include "charset.h"
#include <map>
Go to the source code of this file.
Classes | |
struct | connection_object |
struct | py_send_packet_callbacks |
Macros | |
#define | CONNPY_REQUIRE_VALID(connection) |
Functions | |
PyTypeObject connection_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("connection_object") |
PyTypeObject remote_connection_object_type | CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("remote_connection_object") |
gdbpy_ref | target_to_connection_object (process_stratum_target *target) |
PyObject * | gdbpy_connections (PyObject *self, PyObject *args) |
static int | emit_connection_event (process_stratum_target *target, eventregistry_object *registry) |
static void | connpy_connection_removed (process_stratum_target *target) |
static void | connpy_connection_dealloc (PyObject *obj) |
static PyObject * | connpy_repr (PyObject *obj) |
static PyObject * | connpy_is_valid (PyObject *self, PyObject *args) |
static PyObject * | connpy_get_connection_num (PyObject *self, void *closure) |
static PyObject * | connpy_get_connection_type (PyObject *self, void *closure) |
static PyObject * | connpy_get_description (PyObject *self, void *closure) |
static PyObject * | connpy_get_connection_details (PyObject *self, void *closure) |
int | gdbpy_initialize_connection (void) |
static PyObject * | connpy_send_packet (PyObject *self, PyObject *args, PyObject *kw) |
void | _initialize_py_connection () |
Variables | |
static std::map< process_stratum_target *, gdbpy_ref< connection_object > > | all_connection_objects |
static PyMethodDef | connection_object_methods [] |
static PyMethodDef | remote_connection_object_methods [] |
static gdb_PyGetSetDef | connection_object_getset [] |
PyTypeObject | connection_object_type |
PyTypeObject | remote_connection_object_type |
#define CONNPY_REQUIRE_VALID | ( | connection | ) |
Definition at line 56 of file py-connection.c.
void _initialize_py_connection | ( | ) |
Definition at line 444 of file py-connection.c.
Referenced by initialize_all_files().
|
static |
Definition at line 182 of file py-connection.c.
References connection_object::target.
|
static |
Definition at line 159 of file py-connection.c.
References all_connection_objects, emit_connection_event(), evregpy_no_listeners_p(), gdb_py_events, gdb_python_initialized, and gdbpy_print_stack().
|
static |
Definition at line 273 of file py-connection.c.
References process_stratum_target::connection_string(), CONNPY_REQUIRE_VALID, host_string_to_python_string(), and connection_object::target.
|
static |
Definition at line 233 of file py-connection.c.
References process_stratum_target::connection_number, CONNPY_REQUIRE_VALID, gdb_py_object_from_longest(), and connection_object::target.
|
static |
Definition at line 246 of file py-connection.c.
References CONNPY_REQUIRE_VALID, host_string_to_python_string(), target_ops::shortname(), and connection_object::target.
|
static |
Definition at line 259 of file py-connection.c.
References CONNPY_REQUIRE_VALID, host_string_to_python_string(), target_ops::longname(), and connection_object::target.
|
static |
Definition at line 220 of file py-connection.c.
References connection_object::target.
|
static |
Definition at line 201 of file py-connection.c.
References process_stratum_target::connection_number, make_target_connection_string(), and connection_object::target.
|
static |
Definition at line 374 of file py-connection.c.
References CONNPY_REQUIRE_VALID, gdb_PyArg_ParseTupleAndKeywords(), gdbpy_convert_exception(), py_send_packet_callbacks::result(), send_remote_packet(), switch_to_target_no_thread(), and connection_object::target.
PyTypeObject connection_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "connection_object" | ) |
PyTypeObject remote_connection_object_type CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF | ( | "remote_connection_object" | ) |
|
static |
Definition at line 141 of file py-connection.c.
References create_event_object(), evpy_add_attribute(), evpy_emit_event(), and target_to_connection_object().
Referenced by connpy_connection_removed().
PyObject * gdbpy_connections | ( | PyObject * | self, |
PyObject * | args | ||
) |
Definition at line 115 of file py-connection.c.
References all_non_exited_process_targets(), and target_to_connection_object().
int gdbpy_initialize_connection | ( | void | ) |
Definition at line 289 of file py-connection.c.
References connection_object_type, gdb_module, gdb_pymodule_addobject(), and remote_connection_object_type.
Referenced by do_start_initialization().
gdbpy_ref target_to_connection_object | ( | process_stratum_target * | target | ) |
Definition at line 80 of file py-connection.c.
References all_connection_objects, connection_object_type, is_remote_target(), and remote_connection_object_type.
Referenced by emit_connection_event(), gdbpy_connections(), and infpy_get_connection().
|
static |
Definition at line 70 of file py-connection.c.
Referenced by connpy_connection_removed(), and target_to_connection_object().
|
static |
Definition at line 473 of file py-connection.c.
|
static |
Definition at line 452 of file py-connection.c.
PyTypeObject connection_object_type |
Definition at line 488 of file py-connection.c.
Referenced by gdbpy_initialize_connection(), and target_to_connection_object().
|
static |
Definition at line 462 of file py-connection.c.
PyTypeObject remote_connection_object_type |
Definition at line 531 of file py-connection.c.
Referenced by gdbpy_initialize_connection(), and target_to_connection_object().