File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -831,6 +831,21 @@ def HLRep(original_class):
831831 return original_class
832832
833833
834+ @HLRep
835+ class EspressoSymbol :
836+ target_type = 'com.oracle.svm.espresso.classfile.descriptors.Symbol'
837+
838+ def __init__ (self , svm_util : SVMUtil , obj : gdb .Value ):
839+ trace (f'<EspressoSymbol> - __init__({ obj .type } @ { hex (svm_util .get_adr (obj ))} )' )
840+ value = svm_util .get_obj_field (obj , 'value' )
841+ self .__length = svm_util .get_int_field (value , 'len' )
842+ self .__array = svm_util .get_obj_field (value , 'data' , None )
843+
844+ def to_string (self ) -> str :
845+ trace ('<EspressoSymbol> - to_string' )
846+ byte_list = [self .__array [i ] for i in range (self .__length )]
847+ return f'EspressoSymbol({ str (bytes (byte_list ))} )'
848+
834849@HLRep
835850class ArrayList :
836851 target_type = 'java.util.ArrayList'
You can’t perform that action at this time.
0 commit comments