예제 #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()
예제 #2
0
def judgeSBValueHasValue(val: lldb.SBValue) -> bool:
    if val.GetValue() is None or val.GetValueAsSigned() == 0:
        return False
    return True
예제 #3
0
def logRedirectResult(val: lldb.SBValue, stream: str) -> None:
    if val.GetValueAsSigned() == 0:
        HM.DPrint(f"redirect {stream} failed")
    else:
        HM.DPrint(f"redirect {stream} successful")