Add a new 'info proc files' subcommand of 'info proc'.
[deliverable/binutils-gdb.git] / gdb / python / py-event.h
index 22bab108ed15c5164c8cce1e11cad528f6e8c6ac..96be83b44c52f02509b8b151c71bcbba613c2fda 100644 (file)
@@ -63,8 +63,17 @@ extern int evpy_emit_event (PyObject *event,
                             eventregistry_object *registry);
 
 extern gdbpy_ref<> create_event_object (PyTypeObject *py_type);
+
+/* thread events can either be thread specific or process wide.  If gdb is
+   running in non-stop mode then the event is thread specific, otherwise
+   it is process wide.
+   This function returns the currently stopped thread in non-stop mode and
+   Py_None otherwise.  */
+extern gdbpy_ref<> py_get_event_thread (ptid_t ptid);
+
 extern gdbpy_ref<> create_thread_event_object (PyTypeObject *py_type,
-                                              PyObject *thread = nullptr);
+                                              PyObject *thread);
+
 extern int emit_new_objfile_event (struct objfile *objfile);
 extern int emit_clear_objfiles_event (void);
 
This page took 0.03629 seconds and 4 git commands to generate.