From: Antoine Pitrou Date: Sat, 8 Oct 2011 17:33:24 +0000 (+0200) Subject: Fix test_gdb following the small unicode struct change in c25262e97304 (issue #13130) X-Git-Tag: v3.3.0a1~1248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c0c5f29dd0726afd91e5d79343706690459bd44;p=thirdparty%2FPython%2Fcpython.git Fix test_gdb following the small unicode struct change in c25262e97304 (issue #13130) --- diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index 4b42c8bff836..43a0f20ec140 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