Commit b00bb2c5 authored by hjk's avatar hjk
Browse files

Debugger: Make QLocale dumper test pass



Still requires an inferior call.

Change-Id: I98000f0236ec09094e7792f8d6fa3e156f324fcb
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 49687f71
......@@ -761,18 +761,21 @@ def qdump__QLocale(d, value):
# QLocale data array from variable in qlocale.cpp.
# Default is 368 in Qt 4.8, 438 in Qt 5.0.1, the last one
# being 'System'.
global qqLocalesCount
if qqLocalesCount is None:
try:
qqLocalesCount = int(value(d.ns + 'locale_data_size'))
except:
qqLocalesCount = 438
try:
index = int(value["p"]["index"])
except:
index = int(value["d"]["d"]["m_index"])
check(index >= 0)
check(index <= qqLocalesCount)
#global qqLocalesCount
#if qqLocalesCount is None:
# #try:
# qqLocalesCount = int(value(d.ns + 'locale_data_size'))
# #except:
# qqLocalesCount = 438
#try:
# index = int(value["p"]["index"])
#except:
# try:
# index = int(value["d"]["d"]["m_index"])
# except:
# index = int(value["d"]["d"]["m_data"]...)
#check(index >= 0)
#check(index <= qqLocalesCount)
d.putStringValue(call(value, "name"))
d.putNumChild(0)
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment