I'm tracing a OS X application, I hope can find a way like this way on iOS:
lldb Xcode: error: 'printf' is not a valid command
Is there a way to do like this? I tried
expr -- (void)printf("[%s, %s]
",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) )
I think OS X is used 64bit registers. So this command cann't work(Indeed, it doesn't work). How should I write this command? Or there is a simple way to do the same? Just tracing the class and method called
See Question&Answers more detail:os