Beispiel #1
0
 def set_metadata(self, lldb_obj: lldb.SBValue):
     self.__dict__["@type_name"] = lldb_obj.GetTypeName()
     self.__dict__["@location"] = lldb_obj.GetLocation()
     if lldb_obj.GetNumChildren() == 0:
         self.__dict__["@value"] = lldb_obj.GetValue()
         self.__dict__["@value_unsigned"] = lldb_obj.GetValueAsUnsigned()
         self.__dict__["@value_signed"] = lldb_obj.GetValueAsSigned()
Beispiel #2
0
def boolOfSBValue(val: lldb.SBValue) -> bool:
    result = val.GetValue()
    if result == "True" or result == "true" or result == "YES":
        return True
    return False
Beispiel #3
0
def judgeSBValueHasValue(val: lldb.SBValue) -> bool:
    if val.GetValue() is None or val.GetValueAsSigned() == 0:
        return False
    return True