Commit faa733d 1 parent 4d8310c commit faa733d Copy full SHA for faa733d
File tree 1 file changed +5
-3
lines changed
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):
322
322
def children (self ):
323
323
(length , data_ptr ) = \
324
324
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 )
326
327
manually_drop_keys = maybe_uninit_keys .get_child_at_index (1 )
327
328
keys = manually_drop_keys .get_child_at_index (0 )
328
329
gdb_ptr = keys .get_wrapped_value ()
@@ -347,11 +348,12 @@ def to_string(self):
347
348
def children (self ):
348
349
(length , data_ptr ) = \
349
350
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 )
351
353
manually_drop_keys = maybe_uninit_keys .get_child_at_index (1 )
352
354
keys = manually_drop_keys .get_child_at_index (0 )
353
355
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 )
355
357
manually_drop_vals = maybe_uninit_vals .get_child_at_index (1 )
356
358
vals = manually_drop_vals .get_child_at_index (0 )
357
359
vals_ptr = vals .get_wrapped_value ()
You can’t perform that action at this time.
0 commit comments