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

Missing proper documentation for gdbbridge -> get_casted_pointer #314

Open
tonitch opened this issue Apr 28, 2024 · 0 comments
Open

Missing proper documentation for gdbbridge -> get_casted_pointer #314

tonitch opened this issue Apr 28, 2024 · 0 comments

Comments

@tonitch
Copy link

tonitch commented Apr 28, 2024

def get_casted_pointer(self, typename, gdb_object):
typename_obj = gdb.lookup_type(typename)
typename_pointer_obj = typename_obj.pointer()
return gdb_object.cast(typename_pointer_obj)

This function seems to be quite important for managing gdb type inspectors, but I had a hard time understanding what it did exactly (and I don't think I understand it quite yet). IMO it would deserve a bit more highlight and documentation ^^

(This is not fact, only opinion though haha)

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

No branches or pull requests

1 participant