aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-threadevent.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-20 20:10:03 +0000
committerTom Tromey <tromey@redhat.com>2013-05-20 20:10:03 +0000
commit634c58be55bc36d8b568057263352a64cc7478a5 (patch)
tree7997e3f309e556a7e4d21c99def5973668c6ce84 /gdb/python/py-threadevent.c
parent62eec1a534a27c721360713b21e14fb800e21e36 (diff)
downloadgdb-634c58be55bc36d8b568057263352a64cc7478a5.zip
gdb-634c58be55bc36d8b568057263352a64cc7478a5.tar.gz
gdb-634c58be55bc36d8b568057263352a64cc7478a5.tar.bz2
* python/py-threadevent.c (get_event_thread): Use
CPYCHECKER_RETURNS_BORROWED_REF. * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): New define. (pspace_to_pspace_object, objfile_to_objfile_object) (find_thread_object): Use it.
Diffstat (limited to 'gdb/python/py-threadevent.c')
-rw-r--r--gdb/python/py-threadevent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/python/py-threadevent.c b/gdb/python/py-threadevent.c
index 7e13f14..ea9de89 100644
--- a/gdb/python/py-threadevent.c
+++ b/gdb/python/py-threadevent.c
@@ -24,6 +24,9 @@
This function returns the currently stopped thread in non-stop mode and
Py_None otherwise. In each case it returns a borrowed reference. */
+static PyObject *get_event_thread (void)
+ CPYCHECKER_RETURNS_BORROWED_REF;
+
static PyObject *
get_event_thread (void)
{