Lines Matching refs:val

38     def __init__(self, val):  argument
39 self.val = val
45 for field in self.val.type.fields():
49 yield (field.name, self.val[field.name])
52 len = int(self.val['len'])
60 str = self.val['val'].cast(ptr_type).dereference().cast(ary_type)
63 str += ' (%d bytes total)' % int(self.val['len'])
79 def __init__(self, val): argument
80 self.val = val
84 return self.format_type(self.val)
87 for field in self.val.type.fields():
88 yield (field.name, self.val[field.name])
135 def __init__(self, val): argument
136 self.val = val
139 return self.val.cast(gdb.lookup_type('enum _zend_ast_kind'))
147 def __init__(self, val): argument
148 self.val = val
151 return '((%s*)0x%x)' % (str(self.cast().type), self.val.address)
154 val = self.cast()
155 for field in val.type.fields():
157 children = val[field.name]
169 … yield (field.name, ZendStringPrettyPrinter(val[field.name].dereference()).to_string())
171 yield (field.name, ZvalPrettyPrinter(val[field.name]).to_string())
173 yield (field.name, val[field.name])
177 kind = self.val['kind']
181 return self.is_special() and int(self.val['kind']) >= enum_value('ZEND_AST_FUNC_DECL')
185 kind = self.val['kind']
189 kind = int(self.val['kind'])
192 return self.val.cast(gdb.lookup_type('zend_ast_zval'))
194 return self.val.cast(gdb.lookup_type('zend_ast_znode'))
196 return self.val.cast(gdb.lookup_type('zend_ast_decl'))
198 return self.val.cast(gdb.lookup_type('zend_ast_list'))
200 return self.val
213 kind = self.val['kind']
222 def __init__(self, val): argument
223 self.val = val
230 t = int(self.val['u1']['v']['type'])
240 return str(self.val['value']['lval'])
242 return str(self.val['value']['dval'])
244 return ZendStringPrettyPrinter(self.val['value']['str'].dereference()).to_string()
248 …return 'object(%s)' % ZendStringPrettyPrinter(self.val['value']['obj']['ce']['name'].dereference()…
256 return 'zval of type %d' % int(self.val['u1']['v']['type'])
259 for field in self.val.type.fields():
261 value = self.val['value']
262 t = int(self.val['u1']['v']['type'])
291 yield ('u2', self.val[field.name]['extra'])
293 yield (field.name, self.val[field.name])
304 def __init__(self, val): argument
305 self.val = val
308 return zendStringPointerPrinter(self.val['name'])
311 for field in self.val.type.fields():
314 yield (field.name, zendStringPointerPrinter(self.val[field.name]))
316 yield (field.name, self.val[field.name])
323 yield ('<anonymous>', self.val[field])
330 def __init__(self, val): argument
331 self.val = val
334 for field in self.val.type.fields():
336 yield ('doc_comment', zendStringPointerPrinter(self.val['doc_comment']))
338 yield ('ce', zendStringPointerPrinter(self.val['ce']['name']))
340 yield (field.name, self.val[field.name])