Ide/Debuggers/Gdb_MI2 : adapted python Value inspectors to Core changes

git-svn-id: svn://ultimatepp.org/upp/trunk@4978 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
micio 2012-05-20 17:05:33 +00:00
parent 3bb6114fd2
commit 6be69ebb10

View file

@ -182,10 +182,10 @@ class UppValuePrinter(object):
def to_string(self):
try:
magic = self.val['MAGIC']
magic = self.val['magic']
except Exception as inst:
return '<value inspectors not supported>'
if magic != 0xdeadbeef:
if magic[0] != 0xc436d851 or magic[1] != 0x72f67c76 or magic[2] != 0x3e5e10fd or magic[3] != 0xc90d370b:
return '<value not initialized>'
typeId = Upp_Value_GetType(self.val)
if typeId == 0: