Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block robinhp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
robinhp /
Created Nov 5, 2014
manipulate NSStrings via python and LLDB
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')
You can’t perform that action at this time.