summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:33:24 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-08 17:33:24 (GMT)
commit3c0c5f29dd0726afd91e5d79343706690459bd44 (patch)
tree45bc65d8dce9d7c44190e541ffd34ad171a47548 /Tools/gdb
parent388349add2566823ed18b50b790feaca3559197c (diff)
downloadcpython-3c0c5f29dd0726afd91e5d79343706690459bd44.zip
cpython-3c0c5f29dd0726afd91e5d79343706690459bd44.tar.gz
cpython-3c0c5f29dd0726afd91e5d79343706690459bd44.tar.bz2
Fix test_gdb following the small unicode struct change in c25262e97304 (issue #13130)
Diffstat (limited to 'Tools/gdb')
-rw-r--r--Tools/gdb/libpython.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index 4b42c8b..43a0f20 100644
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1152,7 +1152,7 @@ class PyUnicodeObjectPtr(PyObjectPtr):
field_str = field_str.cast(_type_unsigned_char_ptr)
elif repr_kind == 2:
field_str = field_str.cast(_type_unsigned_short_ptr)
- elif repr_kind == 3:
+ elif repr_kind == 4:
field_str = field_str.cast(_type_unsigned_int_ptr)
else:
# Python 3.2 and earlier