Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9028a10 commit f16a350Copy full SHA for f16a350
1 file changed
Tools/gdb/libpython.py
@@ -1130,12 +1130,13 @@ def proxyval(self, visited):
1130
ascii = compact['_base']
1131
state = ascii['state']
1132
is_compact_ascii = (int(state['ascii']) and int(state['compact']))
1133
- field_length = long(ascii['length'])
1134
if not int(state['ready']):
1135
# string is not ready
+ field_length = long(compact['wstr_length'])
1136
may_have_surrogates = True
1137
field_str = ascii['wstr']
1138
else:
1139
+ field_length = long(ascii['length'])
1140
if is_compact_ascii:
1141
field_str = ascii.address + 1
1142
elif int(state['compact']):
0 commit comments