1class Issue11581SyntheticProvider(object): 2 def __init__(self, valobj, dict): 3 self.valobj = valobj 4 self.addrOf = valobj.AddressOf() 5 self.addr = valobj.GetAddress() 6 self.load_address = valobj.GetLoadAddress() 7 8 def num_children(self): 9 return 3; 10 11 def get_child_at_index(self, index): 12 if index == 0: 13 return self.addrOf 14 if index == 1: 15 return self.valobj.CreateValueFromExpression("addr", str(self.addr)) 16 if index == 2: 17 return self.valobj.CreateValueFromExpression("load_address", str(self.load_address)) 18 19 def get_child_index(self, name): 20 if name == "addrOf": 21 return 0 22 if name == "addr": 23 return 1 24 if name == "load_address": 25 return 2 26 27