aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-06-28 13:09:12 +0000
committerTom Tromey <tromey@redhat.com>2011-06-28 13:09:12 +0000
commit1c033f8c7197bfb01ee804876589b4fb5ca61290 (patch)
treefaf0b978ee959bd648d1a03d0e28718dd745dc82 /gdb
parente1f4d6bd07bd37201961f3efc3705cdd3b1611bf (diff)
downloadgdb-1c033f8c7197bfb01ee804876589b4fb5ca61290.zip
gdb-1c033f8c7197bfb01ee804876589b4fb5ca61290.tar.gz
gdb-1c033f8c7197bfb01ee804876589b4fb5ca61290.tar.bz2
* python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/python/python-internal.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8abff1f..157b82d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2011-06-28 Tom Tromey <tromey@redhat.com>
+
+ * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
+
2011-06-27 Tom Tromey <tromey@redhat.com>
* valops.c (find_overload_match): Call do_cleanups before early
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index b65109d..996b23b 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -41,6 +41,9 @@
around technique as above. */
#undef _FILE_OFFSET_BITS
+/* Request clean size types from Python. */
+#define PY_SSIZE_T_CLEAN
+
/* Include the Python header files using angle brackets rather than
double quotes. On case-insensitive filesystems, this prevents us
from including our python/python.h header file. */