This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lldb | |
def rhptest(debugger, command, result, internal_dict): | |
frame = lldb.debugger.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame() | |
value = frame.EvaluateExpression(command) | |
string_value = value.GetObjectDescription() | |
print >>result, string_value.upper() | |
def __lldb_init_module(debugger, internal_dict): | |
debugger.HandleCommand('command script add -f rhptest.rhptest rhptest') |