File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,8 @@ def to_string(self):
322322 def children (self ):
323323 (length , data_ptr ) = \
324324 rustpp .extract_length_and_ptr_from_std_btreeset (self .__val )
325- maybe_uninit_keys = GdbValue (data_ptr .get_wrapped_value ().dereference ()).get_child_at_index (3 )
325+ leaf_node = GdbValue (data_ptr .get_wrapped_value ().dereference ())
326+ maybe_uninit_keys = leaf_node .get_child_at_index (3 )
326327 manually_drop_keys = maybe_uninit_keys .get_child_at_index (1 )
327328 keys = manually_drop_keys .get_child_at_index (0 )
328329 gdb_ptr = keys .get_wrapped_value ()
@@ -347,11 +348,12 @@ def to_string(self):
347348 def children (self ):
348349 (length , data_ptr ) = \
349350 rustpp .extract_length_and_ptr_from_std_btreemap (self .__val )
350- maybe_uninit_keys = GdbValue (data_ptr .get_wrapped_value ().dereference ()).get_child_at_index (3 )
351+ leaf_node = GdbValue (data_ptr .get_wrapped_value ().dereference ())
352+ maybe_uninit_keys = leaf_node .get_child_at_index (3 )
351353 manually_drop_keys = maybe_uninit_keys .get_child_at_index (1 )
352354 keys = manually_drop_keys .get_child_at_index (0 )
353355 keys_ptr = keys .get_wrapped_value ()
354- maybe_uninit_vals = GdbValue ( data_ptr . get_wrapped_value (). dereference ()) .get_child_at_index (4 )
356+ maybe_uninit_vals = leaf_node .get_child_at_index (4 )
355357 manually_drop_vals = maybe_uninit_vals .get_child_at_index (1 )
356358 vals = manually_drop_vals .get_child_at_index (0 )
357359 vals_ptr = vals .get_wrapped_value ()
You can’t perform that action at this time.
0 commit comments