8000 Support for metaclass information by LXPDY · Pull Request #33 · gdbinit/MachOView · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support for metaclass information #33

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ObjC.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3290,6 +3290,20 @@ -(void)parseObjC2Class64Pointers:(Pointer64Vector const *)classes
caption:caption
location:location
class:class64_t];
// access metaclass information via the isa pointer
uint64_t isaPointer = class64_t->isa;
MVNode * isaNode = nil;
if (isaPointer && (isaNode = [self sectionNodeContainsRVA:isaPointer]))
{
uint64_t isaLocation = [self RVAToFileOffset:isaPointer];
NSString * isaCaption = [self findSymbolAtRVA:isaPointer];
MATCH_STRUCT(isaClass64_t,isaLocation)
[self createObjC2Class64Node:isaNode
caption:isaCaption
location:isaLocation
class:(struct class64_t const *)isaClass64_t];
}

}
}

Expand Down
0