-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About small methods , can not dump the instanceMethod name and types . #34
Comments
Are you seeing this issue with a standard framework/library? If so which one? Or, are you otherwise able to provide a reproduction? |
Thanks for reply , i got this problem which in a new project demo created in Xcode12 . I put it in this respository . When you try to get the instance method of 'ViewController' or 'LBObj' , you will get this issue . or you can create a new on use Xcode12 and get a Test. |
I meant to say here that I don't presently have time to take a look at this. I will as time permits. |
I am able to reproduce the issue. |
It looks like there is a layer of indirection that is not being interpreted correctly. The pointers are being interpreted as pointing into |
After merge this change , i can get the class but i can not dump the small method name and types .
debug info : in CDObjectiveC2Processor.m , when i try to get a class instance method ,
objc2Method.name = [cursor readPtr:small];
objc2Method.types = [cursor readPtr:small];
objc2Method.imp = [cursor readPtr:small];
NSString *name = [self.machOFile stringAtAddress:objc2Method.name];
NSString *types = [self.machOFile stringAtAddress:objc2Method.types];
i got a nil value . All the instance method is this . It look like the offset or mask did not right .
The text was updated successfully, but these errors were encountered: