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. # QLocale data array from variable in qlocale.cpp.
# Default is 368 in Qt 4.8, 438 in Qt 5.0.1, the last one # Default is 368 in Qt 4.8, 438 in Qt 5.0.1, the last one
# being 'System'. # being 'System'.
global qqLocalesCount #global qqLocalesCount
if qqLocalesCount is None: #if qqLocalesCount is None:
try: # #try:
qqLocalesCount = int(value(d.ns + 'locale_data_size')) # qqLocalesCount = int(value(d.ns + 'locale_data_size'))
except: # #except:
qqLocalesCount = 438 # qqLocalesCount = 438
try: #try:
index = int(value["p"]["index"]) # index = int(value["p"]["index"])
except: #except:
index = int(value["d"]["d"]["m_index"]) # try:
check(index >= 0) # index = int(value["d"]["d"]["m_index"])
check(index <= qqLocalesCount) # except:
# index = int(value["d"]["d"]["m_data"]...)
#check(index >= 0)
#check(index <= qqLocalesCount)
d.putStringValue(call(value, "name")) d.putStringValue(call(value, "name"))
d.putNumChild(0) d.putNumChild(0)
return return