Debugger: Make QLocale dumper test pass

Still requires an inferior call.

Change-Id: I98000f0236ec09094e7792f8d6fa3e156f324fcb
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2013-06-07 08:49:01 +02:00
parent 49687f7167
commit b00bb2c57c

View File

@@ -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