aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.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/breakpoint.h
parentd9a88323fe1c249d1b2338ad58fbe9ebcbe80fd3 (diff)
downloadgdb-5038964414cb7f8350b1b89bd95ef78125effb33.zip
gdb-5038964414cb7f8350b1b89bd95ef78125effb33.tar.gz
gdb-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/breakpoint.h')
-rw-r--r--gdb/breakpoint.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index e34c2d3..0fb6830 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -24,13 +24,9 @@
#include "value.h"
#include "vec.h"
-#if HAVE_PYTHON
-#include "python/python.h"
-#include "python/python-internal.h"
-#endif
-
struct value;
struct block;
+struct breakpoint_object;
/* This is the maximum number of bytes a breakpoint instruction can take.
Feel free to increase it. It's just used in a few places to size
@@ -568,7 +564,7 @@ struct breakpoint
This is always NULL for a GDB that is not script enabled. It
can sometimes be NULL for enabled GDBs as not all breakpoint
types are tracked by the Python scripting API. */
- PyObject *py_bp_object;
+ struct breakpoint_object *py_bp_object;
};
typedef struct breakpoint *breakpoint_p;