diff options
author | Pedro Alves <palves@redhat.com> | 2010-11-25 13:10:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-11-25 13:10:07 +0000 |
commit | 5038964414cb7f8350b1b89bd95ef78125effb33 (patch) | |
tree | fd1248d281ccd6ef531e25372644e79eba1ab678 /gdb/varobj.c | |
parent | * ld/testsuite/ld-arm/arm-elf.exp (armeabitests): Replace --defsym argument in (diff) | |
download | binutils-gdb-5038964414cb7f8350b1b89bd95ef78125effb33.tar.gz binutils-gdb-5038964414cb7f8350b1b89bd95ef78125effb33.tar.bz2 binutils-gdb-5038964414cb7f8350b1b89bd95ef78125effb33.zip |
* breakpoint.h: No longer include python.h or python-internal.h.
(struct breakpoint_object): Forward declare.
* defs.h (PyObject) [!HAVE_PYTHON]: Don't define.
* varobj.c (PyObject) [!HAVE_PYTHON]: Define.
* python/py-breakpoint.c (build_bp_list): Cast py_bp_object to
PyObject pointer.
(gdbpy_breakpoint_created): Remove casts around py_bp_object
accesses.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 25518d4dafc..e87d399cee2 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -39,6 +39,8 @@ #if HAVE_PYTHON #include "python/python.h" #include "python/python-internal.h" +#else +typedef int PyObject; #endif /* Non-zero if we want to see trace of varobj level stuff. */ |