summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.h
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2010-11-25 13:10:04 +0000
committerPedro Alves <pedro@codesourcery.com>2010-11-25 13:10:04 +0000
commit6f8883e65614cae34cc7a9eb29fb9d3528c9cc85 (patch)
tree7483593707d42414789c3eaf1ab0687e699aad68 /gdb/breakpoint.h
parenta24ff2e26f4da78f60bd5aa5b7f87df2fb11ca82 (diff)
downloadgdb-6f8883e65614cae34cc7a9eb29fb9d3528c9cc85.tar.gz
* 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 e34c2d3e842..0fb6830ab06 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;