aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index c2ac96d..06357cc 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -290,6 +290,18 @@ extern PyTypeObject frame_object_type
extern PyTypeObject thread_object_type
CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF ("thread_object");
+/* Ensure that breakpoint_object_type is initialized and return true. If
+ breakpoint_object_type can't be initialized then set a suitable Python
+ error and return false.
+
+ This function needs to be called from any gdbpy_initialize_* function
+ that wants to reference breakpoint_object_type. After all the
+ gdbpy_initialize_* functions have been called then breakpoint_object_type
+ is guaranteed to have been initialized, and this function does not need
+ calling before referencing breakpoint_object_type. */
+
+extern bool gdbpy_breakpoint_init_breakpoint_type ();
+
struct gdbpy_breakpoint_object
{
PyObject_HEAD