2008-10-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com> gdb/ * Makefile.in (SUBDIR_PYTHON_OBS): Add python-value.o. (SUBDIR_PYTHON_SRCS): Add python-value.c. (python-value.o): New target. * configure.ac (CONFIG_OBS): Add python-value.o. (CONFIG_SRCS): Add python/python-value.c * configure: Regenerate. * python-internal.h (value_object_type): Add external declaration. (gdbpy_get_value_from_history, value_to_value_object, convert_value_from_python, gdbpy_initialize_values): Add function prototype. * python/python-value.c: New file. * python/python.c (GdbMethods): Add gdbpy_get_value_from_history. (_initialize_python): Call gdbpy_initialize_values. * python/python.h (values_in_python): Add external declaration. * value.c (value_prepend_to_list, value_remove_from_list): New functions. (preserve_values): Iterate over values_in_python list as well. * value.h (value_prepend_to_list, value_remove_from_list): Add function prototypes. gdb/doc/ * gdb.texinfo. (Values From Inferior): New subsubsection. gdb/testsuite/ * gdb.python/python-value.c: New file. * gdb.python/python-value.exp: New file.
This commit is contained in:
parent
eff85da5fb
commit
a08702d647
13 changed files with 430 additions and 15 deletions
|
@ -43,11 +43,18 @@ typedef Py_intptr_t Py_ssize_t;
|
|||
#error "Unable to find usable Python.h"
|
||||
#endif
|
||||
|
||||
struct block;
|
||||
struct symbol;
|
||||
struct symtab_and_line;
|
||||
struct value;
|
||||
|
||||
extern PyObject *gdb_module;
|
||||
extern PyTypeObject value_object_type;
|
||||
|
||||
PyObject *gdbpy_get_value_from_history (PyObject *self, PyObject *args);
|
||||
|
||||
PyObject *value_to_value_object (struct value *v);
|
||||
|
||||
struct value *convert_value_from_python (PyObject *obj);
|
||||
|
||||
void gdbpy_initialize_values (void);
|
||||
|
||||
struct cleanup *make_cleanup_py_decref (PyObject *py);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue