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 | d9a88323fe1c249d1b2338ad58fbe9ebcbe80fd3 (diff) | |
download | binutils-5038964414cb7f8350b1b89bd95ef78125effb33.zip binutils-5038964414cb7f8350b1b89bd95ef78125effb33.tar.gz binutils-5038964414cb7f8350b1b89bd95ef78125effb33.tar.bz2 |
* 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 25518d4..e87d399 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. */ |