From 5038964414cb7f8350b1b89bd95ef78125effb33 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 25 Nov 2010 13:10:07 +0000 Subject: * 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. --- gdb/defs.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb/defs.h') 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 */ -- cgit v1.1