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'])
73 def __init__(self, val): argument
74 self.val = val
78 return self.format_type(self.val)
81 for field in self.val.type.fields():
82 yield (field.name, self.val[field.name])
129 def __init__(self, val): argument
130 self.val = val
133 return self.val.cast(gdb.lookup_type('enum _zend_ast_kind'))
141 def __init__(self, val): argument
142 self.val = val
145 return '((%s*)0x%x)' % (str(self.cast().type), self.val.address)
148 val = self.cast()
149 for field in val.type.fields():
151 children = val[field.name]
163 … yield (field.name, ZendStringPrettyPrinter(val[field.name].dereference()).to_string())
165 yield (field.name, ZvalPrettyPrinter(val[field.name]).to_string())
167 yield (field.name, val[field.name])
171 kind = self.val['kind']
175 return self.is_special() and int(self.val['kind']) >= enum_value('ZEND_AST_FUNC_DECL')
179 kind = self.val['kind']
183 kind = int(self.val['kind'])
186 return self.val.cast(gdb.lookup_type('zend_ast_zval'))
188 return self.val.cast(gdb.lookup_type('zend_ast_znode'))
190 return self.val.cast(gdb.lookup_type('zend_ast_decl'))
192 return self.val.cast(gdb.lookup_type('zend_ast_list'))
194 return self.val
207 kind = self.val['kind']
216 def __init__(self, val): argument
217 self.val = val
224 t = int(self.val['u1']['v']['type'])
234 return str(self.val['value']['lval'])
236 return str(self.val['value']['dval'])
238 return ZendStringPrettyPrinter(self.val['value']['str'].dereference()).to_string()
242 …return 'object(%s)' % ZendStringPrettyPrinter(self.val['value']['obj']['ce']['name'].dereference()…
250 return 'zval of type %d' % int(self.val['u1']['v']['type'])
253 for field in self.val.type.fields():
255 value = self.val['value']
256 t = int(self.val['u1']['v']['type'])
285 yield ('u2', self.val[field.name]['extra'])
287 yield (field.name, self.val[field.name])