Skip to content
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

Add debug support symbols #244

Open
weliveindetail opened this issue Mar 16, 2023 · 1 comment
Open

Add debug support symbols #244

weliveindetail opened this issue Mar 16, 2023 · 1 comment

Comments

@weliveindetail
Copy link
Contributor

Proper ObjC support in debuggers requires the runtime to provide a few support symbols. Grepping the Apple V2 runtime in upstream LLDB brings up these candidates:

I am not sure whether the referenced open-source declaration are the relevant sources or whether they are up-to-date.

@davidchisnall
Copy link
Member

My understanding is that gdb_object_getClass is equivalent to object_getClass but doesn't acquire locks. Our implementation of this class never acquires locks, so we probably don't need it. I'm not sure what the others are for. I think the tampoline ones are specifically related to how Apple implements the objc_msgSend family, so I'd need to understand what the debugger wants from these to see what an equivalent would look like. gdb_objc_realized_classes depends on NXHashTable, which we don't implement (and I thought Apple removed with ObjC2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants