aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-12 23:18:11 -0600
committerTom Tromey <tom@tromey.com>2018-09-16 07:25:57 -0600
commit94c8b7253a5e165ee92f7302f3247764d69b55e5 (patch)
tree043af8a7ff45e037e1b4952e1ebb0cb4760476b3
parentdb1337cc8300bb44f8ccf9dced3e122b6e50b4c9 (diff)
downloadgdb-94c8b7253a5e165ee92f7302f3247764d69b55e5.zip
gdb-94c8b7253a5e165ee92f7302f3247764d69b55e5.tar.gz
gdb-94c8b7253a5e165ee92f7302f3247764d69b55e5.tar.bz2
Remove CPYCHECKER_RETURNS_BORROWED_REF
CPYCHECKER_RETURNS_BORROWED_REF is not used, and I think should never be used. This patch removes it. gdb/ChangeLog 2018-09-16 Tom Tromey <tom@tromey.com> * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): Remove.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/python-internal.h11
2 files changed, 8 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d4e2ca3..d36f6cd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-09-16 Tom Tromey <tom@tromey.com>
+ * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
+ Remove.
+
+2018-09-16 Tom Tromey <tom@tromey.com>
+
* python/python-internal.h (thread_to_thread_object): Change
return type.
* python/py-inferior.c (thread_to_thread_object): Return a new
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index 0b42603..dc42978 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -27,14 +27,9 @@
comes with the Python plugin for GCC. See:
https://gcc-python-plugin.readthedocs.org/en/latest/cpychecker.html
The checker defines a WITH_ macro for each attribute it
- exposes. */
-
-#ifdef WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE
-#define CPYCHECKER_RETURNS_BORROWED_REF \
- __attribute__ ((cpychecker_returns_borrowed_ref))
-#else
-#define CPYCHECKER_RETURNS_BORROWED_REF
-#endif
+ exposes. Note that we intentionally do not use
+ 'cpychecker_returns_borrowed_ref' -- that idiom is forbidden in
+ gdb. */
#ifdef WITH_CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF_ATTRIBUTE
#define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG) \