Index: gdb-8.2/gdb/python/python-internal.h =================================================================== --- gdb-8.2.orig/gdb/python/python-internal.h +++ gdb-8.2/gdb/python/python-internal.h @@ -534,7 +534,7 @@ PyObject *gdbpy_lookup_objfile (PyObject PyObject *gdbarch_to_arch_object (struct gdbarch *gdbarch); thread_object *create_thread_object (struct thread_info *tp); -thread_object *thread_to_thread_object (thread_info *thr) +thread_object *thread_to_thread_object (struct thread_info *thr) CPYCHECKER_RETURNS_BORROWED_REF; inferior_object *inferior_to_inferior_object (inferior *inf);