File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -761,7 +761,8 @@ def get_child_index(self, name: str) -> int:
761
761
762
762
def get_child_at_index (self , index : int ) -> SBValue :
763
763
child : SBValue = self .valobj .GetChildAtIndex (index )
764
- return child .CreateChildAtOffset (str (index ), 0 , child .GetType ())
764
+ offset = self .valobj .GetType ().GetFieldAtIndex (index ).byte_offset
765
+ return self .valobj .CreateChildAtOffset (str (index ), offset , child .GetType ())
765
766
766
767
def update (self ):
767
768
pass
@@ -772,7 +773,7 @@ def has_children(self) -> bool:
772
773
def get_type_name (self ) -> str :
773
774
name = self .valobj .GetTypeName ()
774
775
# remove "tuple$<" and ">", str.removeprefix and str.removesuffix require python 3.9+
775
- name = name [7 :- 1 ]
776
+ name = name [7 :- 1 ]. strip ()
776
777
return "(" + name + ")"
777
778
778
779
You can’t perform that action at this time.
0 commit comments