Home
last modified time | relevance | path

Searched refs:PyObject (Results 1 – 25 of 35) sorted by relevance

12

/dflybsd-src/contrib/gdb-7/gdb/python/
H A Dpython-internal.h93 #define Py_TYPE(ob) (((PyObject*)(ob))->ob_type)
152 extern PyObject *gdb_module;
153 extern PyObject *gdb_python_module;
214 PyObject *inf_obj;
220 PyObject *gdbpy_history (PyObject *self, PyObject *args);
221 PyObject *gdbpy_breakpoints (PyObject *, PyObject *);
222 PyObject *gdbpy_frame_stop_reason_string (PyObject *, PyObject *);
223 PyObject *gdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw);
224 PyObject *gdbpy_lookup_global_symbol (PyObject *self, PyObject *args,
225 PyObject *kw);
[all …]
H A Dpy-value.c65 PyObject *address;
66 PyObject *type;
67 PyObject *dynamic_type;
79 valpy_dealloc (PyObject *obj) in valpy_dealloc()
125 static PyObject *
126 valpy_new (PyTypeObject *subtype, PyObject *args, PyObject *keywords) in valpy_new()
160 return (PyObject *) value_obj; in valpy_new()
175 static PyObject *
176 valpy_dereference (PyObject *self, PyObject *args) in valpy_dereference()
179 PyObject *result = NULL; in valpy_dereference()
[all …]
H A Dpy-frame.c62 frame_object_to_frame_info (PyObject *obj) in frame_object_to_frame_info()
80 static PyObject *
81 frapy_str (PyObject *self) in frapy_str()
84 PyObject *result; in frapy_str()
100 static PyObject *
101 frapy_is_valid (PyObject *self, PyObject *args) in frapy_is_valid()
121 static PyObject *
122 frapy_name (PyObject *self, PyObject *args) in frapy_name()
127 PyObject *result; in frapy_name()
152 static PyObject *
[all …]
H A Dpy-utils.c32 PyObject *py = p; in py_decref()
46 make_cleanup_py_decref (PyObject *py) in make_cleanup_py_decref()
62 PyObject *
63 python_string_to_unicode (PyObject *obj) in python_string_to_unicode()
65 PyObject *unicode_str; in python_string_to_unicode()
94 unicode_to_encoded_string (PyObject *unicode_str, const char *charset) in unicode_to_encoded_string()
97 PyObject *string; in unicode_to_encoded_string()
119 static PyObject *
120 unicode_to_encoded_python_string (PyObject *unicode_str, const char *charset) in unicode_to_encoded_python_string()
132 unicode_to_target_string (PyObject *unicode_str) in unicode_to_target_string()
[all …]
H A Dpy-type.c55 PyObject *dict;
83 static PyObject *typy_make_iter (PyObject *self, enum gdbpy_iter_kind kind);
121 field_dealloc (PyObject *obj) in field_dealloc()
129 static PyObject *
143 return (PyObject *) result; in field_new()
149 static PyObject *
150 typy_get_code (PyObject *self, void *closure) in typy_get_code()
160 static PyObject *
163 PyObject *result = field_new (); in convert_field()
164 PyObject *arg; in convert_field()
[all …]
H A Dpy-breakpoint.c76 static PyObject *
77 bppy_is_valid (PyObject *self, PyObject *args) in bppy_is_valid()
87 static PyObject *
88 bppy_get_enabled (PyObject *self, void *closure) in bppy_get_enabled()
101 static PyObject *
102 bppy_get_silent (PyObject *self, void *closure) in bppy_get_silent()
114 bppy_set_enabled (PyObject *self, PyObject *newvalue, void *closure) in bppy_set_enabled()
154 bppy_set_silent (PyObject *self, PyObject *newvalue, void *closure) in bppy_set_silent()
185 bppy_set_thread (PyObject *self, PyObject *newvalue, void *closure) in bppy_set_thread()
226 bppy_set_task (PyObject *self, PyObject *newvalue, void *closure) in bppy_set_task()
[all …]
H A Dpy-infthread.c59 thpy_dealloc (PyObject *self) in thpy_dealloc()
65 static PyObject *
66 thpy_get_name (PyObject *self, void *ignore) in thpy_get_name()
84 thpy_set_name (PyObject *self, PyObject *newvalue, void *ignore) in thpy_set_name()
122 static PyObject *
123 thpy_get_num (PyObject *self, void *closure) in thpy_get_num()
134 static PyObject *
135 thpy_get_ptid (PyObject *self, void *closure) in thpy_get_ptid()
140 PyObject *ret; in thpy_get_ptid()
161 static PyObject *
[all …]
H A Dpy-symtab.c86 static PyObject *
87 stpy_str (PyObject *self) in stpy_str()
89 PyObject *result; in stpy_str()
99 static PyObject *
100 stpy_get_filename (PyObject *self, void *closure) in stpy_get_filename()
102 PyObject *str_obj; in stpy_get_filename()
114 static PyObject *
115 stpy_get_objfile (PyObject *self, void *closure) in stpy_get_objfile()
118 PyObject *result; in stpy_get_objfile()
127 static PyObject *
[all …]
H A Dpy-symbol.c55 static PyObject *
56 sympy_str (PyObject *self) in sympy_str()
58 PyObject *result; in sympy_str()
68 static PyObject *
69 sympy_get_type (PyObject *self, void *closure) in sympy_get_type()
84 static PyObject *
85 sympy_get_symtab (PyObject *self, void *closure) in sympy_get_symtab()
94 static PyObject *
95 sympy_get_name (PyObject *self, void *closure) in sympy_get_name()
104 static PyObject *
[all …]
H A Dpy-block.c84 static PyObject *
85 blpy_iter (PyObject *self) in blpy_iter()
102 return (PyObject *) block_iter_obj; in blpy_iter()
105 static PyObject *
106 blpy_get_start (PyObject *self, void *closure) in blpy_get_start()
115 static PyObject *
116 blpy_get_end (PyObject *self, void *closure) in blpy_get_end()
125 static PyObject *
126 blpy_get_function (PyObject *self, void *closure) in blpy_get_function()
140 static PyObject *
[all …]
H A Dpy-inferior.c152 PyObject *
172 Py_INCREF ((PyObject *)inf_obj); in inferior_to_inferior_object()
174 return (PyObject *) inf_obj; in inferior_to_inferior_object()
180 PyObject *
196 PyObject *inf_obj; in find_thread_object()
296 static PyObject *
297 infpy_threads (PyObject *self, PyObject *args) in infpy_threads()
302 PyObject *tuple; in infpy_threads()
319 PyTuple_SET_ITEM (tuple, i, (PyObject *) entry->thread_obj); in infpy_threads()
325 static PyObject *
[all …]
H A Dpython.c82 PyObject *gdb_module;
83 PyObject *gdb_python_module;
86 PyObject *gdbpy_to_string_cst;
87 PyObject *gdbpy_children_cst;
88 PyObject *gdbpy_display_hint_cst;
89 PyObject *gdbpy_doc_cst;
90 PyObject *gdbpy_enabled_cst;
91 PyObject *gdbpy_value_cst;
94 PyObject *gdbpy_gdberror_exc;
97 PyObject *gdbpy_gdb_error;
[all …]
H A Dpy-objfile.c34 PyObject *printers;
37 PyObject *type_printers;
47 static PyObject *
48 objfpy_get_filename (PyObject *self, void *closure) in objfpy_get_filename()
59 objfpy_dealloc (PyObject *o) in objfpy_dealloc()
68 static PyObject *
69 objfpy_new (PyTypeObject *type, PyObject *args, PyObject *keywords) in objfpy_new()
91 return (PyObject *) self; in objfpy_new()
94 PyObject *
95 objfpy_get_printers (PyObject *o, void *ignore) in objfpy_get_printers()
[all …]
H A Dpy-prettyprint.c50 static PyObject *
51 search_pp_list (PyObject *list, PyObject *value) in search_pp_list()
54 PyObject *function, *printer = NULL; in search_pp_list()
66 PyObject *attr = PyObject_GetAttr (function, gdbpy_enabled_cst); in search_pp_list()
97 static PyObject *
98 find_pretty_printer_from_objfiles (PyObject *value) in find_pretty_printer_from_objfiles()
100 PyObject *pp_list; in find_pretty_printer_from_objfiles()
101 PyObject *function; in find_pretty_printer_from_objfiles()
106 PyObject *objf = objfile_to_objfile_object (obj); in find_pretty_printer_from_objfiles()
137 static PyObject *
[all …]
H A Dpy-progspace.c36 PyObject *printers;
39 PyObject *type_printers;
50 static PyObject *
51 pspy_get_filename (PyObject *self, void *closure) in pspy_get_filename()
67 pspy_dealloc (PyObject *self) in pspy_dealloc()
76 static PyObject *
77 pspy_new (PyTypeObject *type, PyObject *args, PyObject *keywords) in pspy_new()
99 return (PyObject *) self; in pspy_new()
102 PyObject *
103 pspy_get_printers (PyObject *o, void *ignore) in pspy_get_printers()
[all …]
H A Dpy-lazy-string.c52 static PyObject *
53 stpy_get_address (PyObject *self, void *closure) in stpy_get_address()
60 static PyObject *
61 stpy_get_encoding (PyObject *self, void *closure) in stpy_get_encoding()
64 PyObject *result; in stpy_get_encoding()
79 static PyObject *
80 stpy_get_length (PyObject *self, void *closure) in stpy_get_length()
87 static PyObject *
88 stpy_get_type (PyObject *self, void *closure) in stpy_get_type()
95 static PyObject *
[all …]
H A Dpy-evtregistry.c31 static PyObject *
32 evregpy_connect (PyObject *self, PyObject *function) in evregpy_connect()
34 PyObject *func; in evregpy_connect()
35 PyObject *callback_list = (((eventregistry_object *) self)->callbacks); in evregpy_connect()
55 static PyObject *
56 evregpy_disconnect (PyObject *self, PyObject *function) in evregpy_disconnect()
58 PyObject *func; in evregpy_disconnect()
60 PyObject *callback_list = (((eventregistry_object *) self)->callbacks); in evregpy_disconnect()
97 evregpy_dealloc (PyObject *self) in evregpy_dealloc()
113 (PyObject *) &eventregistry_object_type); in gdbpy_initialize_eventregistry()
H A Dpy-function.c36 static PyObject *
40 PyObject *result = PyTuple_New (argc); in convert_values_to_python()
47 PyObject *elt = value_to_value_object (argv[i]); in convert_values_to_python()
67 PyObject *result = NULL; in fnpy_call()
68 PyObject *callable, *args; in fnpy_call()
82 callable = PyObject_GetAttrString ((PyObject *) cookie, "invoke"); in fnpy_call()
96 PyObject *ptype, *pvalue, *ptraceback; in fnpy_call()
165 fnpy_init (PyObject *self, PyObject *args, PyObject *kwds) in fnpy_init()
176 PyObject *ds_obj = PyObject_GetAttrString (self, "__doc__"); in fnpy_init()
204 PyModule_AddObject (gdb_module, "Function", (PyObject *) &fnpy_object_type); in gdbpy_initialize_functions()
[all …]
H A Dpy-arch.c54 arch_object_to_gdbarch (PyObject *obj) in arch_object_to_gdbarch()
65 PyObject *
68 PyObject *new_ref = (PyObject *) gdbarch_data (gdbarch, arch_object_data); in gdbarch_to_arch_object()
80 static PyObject *
81 archpy_name (PyObject *self, PyObject *args) in archpy_name()
85 PyObject *py_name = PyString_FromString (name); in archpy_name()
96 static PyObject *
97 archpy_disassemble (PyObject *self, PyObject *args, PyObject *kw) in archpy_disassemble()
104 PyObject *result_list, *end_obj = NULL, *count_obj = NULL; in archpy_disassemble()
173 PyObject *insn_dict = PyDict_New (); in archpy_disassemble()
[all …]
H A Dpy-param.c95 static PyObject *set_doc_cst;
96 static PyObject *show_doc_cst;
101 static PyObject *
102 get_attr (PyObject *obj, PyObject *attr_name) in get_attr()
122 set_parameter_value (parmpy_object *self, PyObject *value) in set_parameter_value()
280 set_attr (PyObject *obj, PyObject *attr_name, PyObject *val) in set_attr()
305 get_doc_string (PyObject *object, PyObject *attr) in get_doc_string()
311 PyObject *ds_obj = PyObject_GetAttr (object, attr); in get_doc_string()
331 call_doc_function (PyObject *obj, PyObject *method, PyObject *arg) in call_doc_function()
334 PyObject *result = PyObject_CallMethodObjArgs (obj, method, arg, NULL); in call_doc_function()
[all …]
H A Dpy-cmd.c74 static PyObject *invoke_cst;
75 static PyObject *complete_cst;
80 static PyObject *
81 cmdpy_dont_repeat (PyObject *self, PyObject *args) in cmdpy_dont_repeat()
119 PyObject *argobj, *ttyobj, *result; in cmdpy_function()
126 if (! PyObject_HasAttr ((PyObject *) obj, invoke_cst)) in cmdpy_function()
148 result = PyObject_CallMethodObjArgs ((PyObject *) obj, invoke_cst, argobj, in cmdpy_function()
155 PyObject *ptype, *pvalue, *ptraceback; in cmdpy_function()
213 PyObject *textobj, *wordobj, *resultobj = NULL; in VEC()
221 if (! PyObject_HasAttr ((PyObject *) obj, complete_cst)) in VEC()
[all …]
H A Dpy-finishbreakpoint.c48 PyObject *return_type;
51 PyObject *function_value;
55 PyObject *return_value;
61 static PyObject *
62 bpfinishpy_get_returnvalue (PyObject *self, void *closure) in bpfinishpy_get_returnvalue()
77 bpfinishpy_dealloc (PyObject *self) in bpfinishpy_dealloc()
155 bpfinishpy_init (PyObject *self, PyObject *args, PyObject *kwargs) in bpfinishpy_init()
161 PyObject *frame_obj = NULL; in bpfinishpy_init()
166 PyObject *internal = NULL; in bpfinishpy_init()
323 PyObject *py_obj = (PyObject *) bp_obj; in bpfinishpy_out_of_scope()
[all …]
H A Dpy-event.c24 evpy_dealloc (PyObject *self) in evpy_dealloc()
30 PyObject *
43 return (PyObject*) event_obj; in create_event_object()
56 evpy_add_attribute (PyObject *event, char *name, PyObject *attr) in evpy_add_attribute()
82 if (PyModule_AddObject (gdb_module, name, (PyObject *) type) < 0) in gdbpy_initialize_event_generic()
97 evpy_emit_event (PyObject *event, in evpy_emit_event()
100 PyObject *callback_list_copy = NULL; in evpy_emit_event()
113 PyObject *func = PyList_GetItem (callback_list_copy, i); in evpy_emit_event()
H A Dpy-event.h101 PyObject *dict;
107 extern int evpy_emit_event (PyObject *event,
110 extern PyObject *create_event_object (PyTypeObject *py_type);
111 extern PyObject *create_thread_event_object (PyTypeObject *py_type);
114 extern void evpy_dealloc (PyObject *self);
115 extern int evpy_add_attribute (PyObject *event,
116 char *name, PyObject *attr);
H A Dpy-stopevent.h25 extern PyObject *create_stop_event_object (PyTypeObject *py_type);
26 extern void stop_evpy_dealloc (PyObject *self);
31 extern PyObject *create_breakpoint_event_object (PyObject *breakpoint_list,
32 PyObject *first_bp);
34 extern PyObject *create_signal_event_object (enum gdb_signal stop_signal);

12