aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-11-25 13:10:07 +0000
committerPedro Alves <palves@redhat.com>2010-11-25 13:10:07 +0000
commit5038964414cb7f8350b1b89bd95ef78125effb33 (patch)
treefd1248d281ccd6ef531e25372644e79eba1ab678 /gdb/defs.h
parentd9a88323fe1c249d1b2338ad58fbe9ebcbe80fd3 (diff)
downloadbinutils-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/defs.h')
-rw-r--r--gdb/defs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index d36f7c1..489de74 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1240,8 +1240,4 @@ void dummy_obstack_deallocate (void *object, void *data);
extern void initialize_progspace (void);
extern void initialize_inferiors (void);
-#ifndef HAVE_PYTHON
-typedef int PyObject;
-#endif
-
#endif /* #ifndef DEFS_H */