From 9b08f22510e19e1f5d8d3849a4ffdd6090c9bfea Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 20 May 2013 20:16:57 +0000 Subject: * python/py-event.h (evpy_emit_event): Use CPYCHECKER_STEALS_REFERENCE_TO_ARG. * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): New macro. --- gdb/python/python-internal.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/python/python-internal.h') diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 8552c87..2792562 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -40,6 +40,13 @@ #define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG) #endif +#ifdef WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE +#define CPYCHECKER_STEALS_REFERENCE_TO_ARG(n) \ + __attribute__ ((cpychecker_steals_reference_to_arg (n))) +#else +#define CPYCHECKER_STEALS_REFERENCE_TO_ARG(n) +#endif + #include /* Python 2.4 doesn't include stdint.h soon enough to get {u,}intptr_t -- cgit v1.1